Enum Class WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode
java.lang.Object
java.lang.Enum<WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode>
edu.internet2.middleware.grouper.ws.coresoap.WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode
- All Implemented Interfaces:
WsResultCode
,Serializable
,Comparable<WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode>
,Constable
- Enclosing class:
- WsAssignGrouperPrivilegesResults
public static enum WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode
extends Enum<WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode>
implements WsResultCode
result code of a request
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionsome exception occurred (rest http status code 500) (success: F)cant find group (rest http status code 404) (success: F)if one request, and that is a insufficient privileges (rest http status code 403) (success: F)invalid query (e.g.cant find name (rest http status code 404) (success: F)problem deleting members e.g.problem assigning privileges (rest http status code 500) (success: F)cant find stem (rest http status code 404) (success: F)assignments successful (rest http status code 200) (success: T)cant find type (rest http status code 404) (success: F) -
Method Summary
Modifier and TypeMethodDescriptionint
get the http status code associated with this status code, e.g.boolean
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
-
PROBLEM_DELETING_MEMBERS
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode PROBLEM_DELETING_MEMBERSproblem deleting members e.g. in replaceExisting (rest http status code 500) (success: F) -
SUCCESS
assignments successful (rest http status code 200) (success: T) -
EXCEPTION
some exception occurred (rest http status code 500) (success: F) -
GROUP_NOT_FOUND
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode GROUP_NOT_FOUNDcant find group (rest http status code 404) (success: F) -
STEM_NOT_FOUND
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode STEM_NOT_FOUNDcant find stem (rest http status code 404) (success: F) -
TYPE_NOT_FOUND
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode TYPE_NOT_FOUNDcant find type (rest http status code 404) (success: F) -
NAME_NOT_FOUND
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode NAME_NOT_FOUNDcant find name (rest http status code 404) (success: F) -
INSUFFICIENT_PRIVILEGES
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode INSUFFICIENT_PRIVILEGESif one request, and that is a insufficient privileges (rest http status code 403) (success: F) -
INVALID_QUERY
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode INVALID_QUERYinvalid query (e.g. if everything blank) (rest http status code 400) (success: F) -
PROBLEM_WITH_ASSIGNMENT
public static final WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode PROBLEM_WITH_ASSIGNMENTproblem assigning privileges (rest http status code 500) (success: F)
-
-
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 WsAssignGrouperPrivilegesResults.WsAssignGrouperPrivilegesResultsCode 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()Description copied from interface:WsResultCode
get the http status code associated with this status code, e.g. 200- Specified by:
getHttpStatusCode
in interfaceWsResultCode
- Returns:
- the status code e.g. 200
- See Also:
-