Enum Class WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode
java.lang.Object
java.lang.Enum<WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode>
edu.internet2.middleware.grouper.ws.coresoap.WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode
- All Implemented Interfaces:
WsResultCode
,Serializable
,Comparable<WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode>
,Constable
- Enclosing class:
- WsAssignAttributeBatchResult
public static enum WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode
extends Enum<WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode>
implements WsResultCode
result code of a request. The possible result codes
of WsGetMembersResultCode (with http status codes) are:
SUCCESS(200), EXCEPTION(500), INVALID_QUERY(400)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionsomething bad happened (lite status code 500) (success: F)not allowed to the privileges on the inputs.invalid query (e.g.found the attributeAssignments (lite status code 200) (success: T)in tx, but another item had problem (lite status code 500) (success: F) -
Method Summary
Modifier and TypeMethodDescriptionconvertFromWsAssignAttributesResultCode
(WsAssignAttributesResults.WsAssignAttributesResultsCode wsAssignAttributesResultsCode) int
get the http result code for this status codeboolean
if this is a successful resultnameForVersion
(GrouperVersion clientVersion) get the name label for a certain version of clientReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface edu.internet2.middleware.grouper.ws.WsResultCode
name
-
Enum Constant Details
-
SUCCESS
found the attributeAssignments (lite status code 200) (success: T) -
EXCEPTION
something bad happened (lite status code 500) (success: F) -
TRANSACTION_ROLLED_BACK
public static final WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode TRANSACTION_ROLLED_BACKin tx, but another item had problem (lite status code 500) (success: F) -
INVALID_QUERY
invalid query (e.g. if everything blank) (lite status code 400) (success: F) -
INSUFFICIENT_PRIVILEGES
public static final WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode INSUFFICIENT_PRIVILEGESnot allowed to the privileges on the inputs. Note if broad search, then the results wont contain items not allowed. If a specific search e.g. on a group, then if you cant read the group then you cant read the privs
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
convertFromWsAssignAttributesResultCode
public static WsAssignAttributeBatchResult.WsAssignAttributeBatchResultCode convertFromWsAssignAttributesResultCode(WsAssignAttributesResults.WsAssignAttributesResultsCode wsAssignAttributesResultsCode) - Parameters:
wsAssignAttributesResultsCode
-- Returns:
- the code
-
nameForVersion
get the name label for a certain version of client- Specified by:
nameForVersion
in interfaceWsResultCode
- Parameters:
clientVersion
-- Returns:
- name
-
isSuccess
public boolean isSuccess()if this is a successful result- Specified by:
isSuccess
in interfaceWsResultCode
- Returns:
- true if success
-
getHttpStatusCode
public int getHttpStatusCode()get the http result code for this status code- Specified by:
getHttpStatusCode
in interfaceWsResultCode
- Returns:
- the status code
-