edu.internet2.middleware.grouper.ws.coresoap
Enum WsGroupSaveResult.WsGroupSaveResultCode

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

public static enum WsGroupSaveResult.WsGroupSaveResultCode
extends Enum<WsGroupSaveResult.WsGroupSaveResultCode>

result code of a request


Enum Constant Summary
EXCEPTION
          problem with saving (success: F)
GROUP_ALREADY_EXISTS
          problem with saving (success: F)
GROUP_NOT_FOUND
          the group was not found (success: F)
INSUFFICIENT_PRIVILEGES
          user not allowed (success: F)
INVALID_QUERY
          invalid query, can only happen if Lite query (success: F)
STEM_NOT_FOUND
          the stem was not found (success: F)
SUCCESS_INSERTED
          successful addition (success: T)
SUCCESS_NO_CHANGES_NEEDED
          successful addition (success: T)
SUCCESS_UPDATED
          successful addition (success: T)
TRANSACTION_ROLLED_BACK
          was a success but rolled back
 
Method Summary
abstract  WsGroupSaveLiteResult.WsGroupSaveLiteResultCode 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 WsGroupSaveResult.WsGroupSaveResultCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WsGroupSaveResult.WsGroupSaveResultCode[] 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_INSERTED

public static final WsGroupSaveResult.WsGroupSaveResultCode SUCCESS_INSERTED
successful addition (success: T)


SUCCESS_UPDATED

public static final WsGroupSaveResult.WsGroupSaveResultCode SUCCESS_UPDATED
successful addition (success: T)


SUCCESS_NO_CHANGES_NEEDED

public static final WsGroupSaveResult.WsGroupSaveResultCode SUCCESS_NO_CHANGES_NEEDED
successful addition (success: T)


INVALID_QUERY

public static final WsGroupSaveResult.WsGroupSaveResultCode INVALID_QUERY
invalid query, can only happen if Lite query (success: F)


GROUP_NOT_FOUND

public static final WsGroupSaveResult.WsGroupSaveResultCode GROUP_NOT_FOUND
the group was not found (success: F)


STEM_NOT_FOUND

public static final WsGroupSaveResult.WsGroupSaveResultCode STEM_NOT_FOUND
the stem was not found (success: F)


EXCEPTION

public static final WsGroupSaveResult.WsGroupSaveResultCode EXCEPTION
problem with saving (success: F)


GROUP_ALREADY_EXISTS

public static final WsGroupSaveResult.WsGroupSaveResultCode GROUP_ALREADY_EXISTS
problem with saving (success: F)


INSUFFICIENT_PRIVILEGES

public static final WsGroupSaveResult.WsGroupSaveResultCode INSUFFICIENT_PRIVILEGES
user not allowed (success: F)


TRANSACTION_ROLLED_BACK

public static final WsGroupSaveResult.WsGroupSaveResultCode TRANSACTION_ROLLED_BACK
was a success but rolled back

Method Detail

values

public static WsGroupSaveResult.WsGroupSaveResultCode[] 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 (WsGroupSaveResult.WsGroupSaveResultCode c : WsGroupSaveResult.WsGroupSaveResultCode.values())
    System.out.println(c);

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

valueOf

public static WsGroupSaveResult.WsGroupSaveResultCode 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

isSuccess

public boolean isSuccess()
if this is a successful result

Returns:
true if success

nameForVersion

public String nameForVersion(GrouperVersion clientVersion)
get the name label for a certain version of client

Parameters:
clientVersion -
Returns:

convertToLiteCode

public abstract WsGroupSaveLiteResult.WsGroupSaveLiteResultCode convertToLiteCode()
if there is one result, convert to the results code

Returns:
result code