Enum Class WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode
java.lang.Object
java.lang.Enum<WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode>
edu.internet2.middleware.grouper.ws.coresoap.WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode
- All Implemented Interfaces:
Serializable
,Comparable<WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode>
,Constable
- Enclosing class:
- WsAssignGrouperPrivilegesResult
public static enum WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode
extends Enum<WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode>
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)invalid query (e.g.if one request, and that is a duplicate (rest http status code 409) (success: F)if one request, and that is a subject not found (rest http status code 404) (success: F)made the update to allow (rest http status code 200) (success: T)privilege allow already existed (rest http status code 200) (success: T)made the update to deny (rest http status code 200) (success: T)privilege deny already existed (rest http status code 200) (success: T)privilege deny already existed (rest http status code 200) (success: T)made the update to deny the immediate privilege, though the user still has an effective privilege, so is still allowed (rest http status code 200) (success: T)if one item failed in the transaction, then roll back (success: F) -
Method Summary
Modifier and TypeMethodDescriptionif there is one result, convert to the results 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.
-
Enum Constant Details
-
SUCCESS_ALLOWED
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_ALLOWEDmade the update to allow (rest http status code 200) (success: T) -
SUCCESS_ALLOWED_ALREADY_EXISTED
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_ALLOWED_ALREADY_EXISTEDprivilege allow already existed (rest http status code 200) (success: T) -
SUCCESS_NOT_ALLOWED
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_NOT_ALLOWEDmade the update to deny (rest http status code 200) (success: T) -
SUCCESS_NOT_ALLOWED_EXISTS_EFFECTIVE
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_NOT_ALLOWED_EXISTS_EFFECTIVEmade the update to deny the immediate privilege, though the user still has an effective privilege, so is still allowed (rest http status code 200) (success: T) -
SUCCESS_NOT_ALLOWED_DIDNT_EXIST
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_NOT_ALLOWED_DIDNT_EXISTprivilege deny already existed (rest http status code 200) (success: T) -
SUCCESS_NOT_ALLOWED_DIDNT_EXIST_BUT_EXISTS_EFFECTIVE
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_NOT_ALLOWED_DIDNT_EXIST_BUT_EXISTS_EFFECTIVEprivilege deny already existed (rest http status code 200) (success: T) -
EXCEPTION
some exception occurred (rest http status code 500) (success: F) -
SUBJECT_DUPLICATE
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUBJECT_DUPLICATEif one request, and that is a duplicate (rest http status code 409) (success: F) -
SUBJECT_NOT_FOUND
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUBJECT_NOT_FOUNDif one request, and that is a subject not found (rest http status code 404) (success: F) -
TRANSACTION_ROLLED_BACK
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode TRANSACTION_ROLLED_BACKif one item failed in the transaction, then roll back (success: F) -
INVALID_QUERY
public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode INVALID_QUERYinvalid query (e.g. if everything blank) (rest http status code 400) (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 WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode 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- Parameters:
clientVersion
-- Returns:
- name
-
convertToLiteCode
public abstract WsAssignGrouperPrivilegesLiteResult.WsAssignGrouperPrivilegesLiteResultCode convertToLiteCode()if there is one result, convert to the results code- Returns:
- result code
-
isSuccess
public boolean isSuccess()if this is a successful result- Returns:
- true if success
-