edu.internet2.middleware.grouper.ws.coresoap
Enum WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode

java.lang.Object
  extended by java.lang.Enum<WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode>
      extended by edu.internet2.middleware.grouper.ws.coresoap.WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode
All Implemented Interfaces:
Serializable, Comparable<WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode>
Enclosing class:
WsAssignGrouperPrivilegesResult

public static enum WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode
extends Enum<WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode>

result code of a request


Enum Constant Summary
EXCEPTION
          some exception occurred (rest http status code 500) (success: F)
INVALID_QUERY
          invalid query (e.g.
SUBJECT_DUPLICATE
          if one request, and that is a duplicate (rest http status code 409) (success: F)
SUBJECT_NOT_FOUND
          if one request, and that is a subject not found (rest http status code 404) (success: F)
SUCCESS_ALLOWED
          made the update to allow (rest http status code 200) (success: T)
SUCCESS_ALLOWED_ALREADY_EXISTED
          privilege allow already existed (rest http status code 200) (success: T)
SUCCESS_NOT_ALLOWED
          made the update to deny (rest http status code 200) (success: T)
SUCCESS_NOT_ALLOWED_DIDNT_EXIST
          privilege deny already existed (rest http status code 200) (success: T)
SUCCESS_NOT_ALLOWED_DIDNT_EXIST_BUT_EXISTS_EFFECTIVE
          privilege deny already existed (rest http status code 200) (success: T)
SUCCESS_NOT_ALLOWED_EXISTS_EFFECTIVE
          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)
TRANSACTION_ROLLED_BACK
          if one item failed in the transaction, then roll back (success: F)
 
Method Summary
abstract  WsAssignGrouperPrivilegesLiteResult.WsAssignGrouperPrivilegesLiteResultCode convertToLiteCode()
          if there is one result, convert to the results code
 boolean isSuccess()
          if this is a successful result
 String nameForVersion(GrouperVersion clientVersion)
          get the name label for a certain version of client
static WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS_ALLOWED

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_ALLOWED
made the update to allow (rest http status code 200) (success: T)


SUCCESS_ALLOWED_ALREADY_EXISTED

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_ALLOWED_ALREADY_EXISTED
privilege allow already existed (rest http status code 200) (success: T)


SUCCESS_NOT_ALLOWED

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_NOT_ALLOWED
made 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_EFFECTIVE
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)


SUCCESS_NOT_ALLOWED_DIDNT_EXIST

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUCCESS_NOT_ALLOWED_DIDNT_EXIST
privilege 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_EFFECTIVE
privilege deny already existed (rest http status code 200) (success: T)


EXCEPTION

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode EXCEPTION
some exception occurred (rest http status code 500) (success: F)


SUBJECT_DUPLICATE

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUBJECT_DUPLICATE
if one request, and that is a duplicate (rest http status code 409) (success: F)


SUBJECT_NOT_FOUND

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode SUBJECT_NOT_FOUND
if 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_BACK
if one item failed in the transaction, then roll back (success: F)


INVALID_QUERY

public static final WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode INVALID_QUERY
invalid query (e.g. if everything blank) (rest http status code 400) (success: F)

Method Detail

values

public static WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode c : WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WsAssignGrouperPrivilegesResult.WsAssignGrouperPrivilegesResultCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

nameForVersion

public String nameForVersion(GrouperVersion clientVersion)
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