Enum Class WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode
java.lang.Object
java.lang.Enum<WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode>
edu.internet2.middleware.grouper.ws.soap_v2_3.WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode
- All Implemented Interfaces:
WsResultCode
,Serializable
,Comparable<WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode>
,Constable
- Enclosing class:
- WsAttributeDefAssignActionResults
public static enum WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode
extends Enum<WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode>
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 ConstantsEnum ConstantDescriptionsomething bad happened (status code 500) (success: F)insufficient privilegesinvalid query (e.g.assigned action(s) (status code 200) (success: T) -
Method Summary
Modifier and TypeMethodDescriptionint
get the http result code for this status codeboolean
if this is a successful resultnameForVersion
(edu.internet2.middleware.grouper.misc.GrouperVersion clientVersion) get the name label for a certain version of clientReturns the enum constant of this class with the specified name.valueOfIgnoreCase
(String string, boolean exceptionOnNull) do a case-insensitive matchingvalues()
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
public static final WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode SUCCESSassigned action(s) (status code 200) (success: T) -
EXCEPTION
public static final WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode EXCEPTIONsomething bad happened (status code 500) (success: F) -
INVALID_QUERY
public static final WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode INVALID_QUERYinvalid query (e.g. if everything blank) (status code 400) (success: F) -
INSUFFICIENT_PRIVILEGES
public static final WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode INSUFFICIENT_PRIVILEGESinsufficient privileges
-
-
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
public static WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode valueOf(String name) 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
-
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
-
valueOfIgnoreCase
public static WsAttributeDefAssignActionResults.WsAttributeDefAssignActionsResultsCode valueOfIgnoreCase(String string, boolean exceptionOnNull) do a case-insensitive matching- Parameters:
string
-exceptionOnNull
- will not allow null or blank entries- Returns:
- the enum or null or exception if not found
-