edu.internet2.middleware.grouper.ws.coresoap
Enum WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode

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

public static enum WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode
extends Enum<WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode>

result code of a request


Enum Constant Summary
ATTRIBUTE_DEF_NAME_ALREADY_EXISTS
          problem with saving (success: F)
ATTRIBUTE_DEF_NAME_NOT_FOUND
          the group was not found (success: F)
EXCEPTION
          problem with saving (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  WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode 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 WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode[] 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 WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode SUCCESS_INSERTED
successful addition (success: T)


SUCCESS_UPDATED

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode SUCCESS_UPDATED
successful addition (success: T)


SUCCESS_NO_CHANGES_NEEDED

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode SUCCESS_NO_CHANGES_NEEDED
successful addition (success: T)


INVALID_QUERY

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


ATTRIBUTE_DEF_NAME_NOT_FOUND

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode ATTRIBUTE_DEF_NAME_NOT_FOUND
the group was not found (success: F)


STEM_NOT_FOUND

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode STEM_NOT_FOUND
the stem was not found (success: F)


EXCEPTION

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode EXCEPTION
problem with saving (success: F)


ATTRIBUTE_DEF_NAME_ALREADY_EXISTS

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode ATTRIBUTE_DEF_NAME_ALREADY_EXISTS
problem with saving (success: F)


INSUFFICIENT_PRIVILEGES

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode INSUFFICIENT_PRIVILEGES
user not allowed (success: F)


TRANSACTION_ROLLED_BACK

public static final WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode TRANSACTION_ROLLED_BACK
was a success but rolled back

Method Detail

values

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

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

valueOf

public static WsAttributeDefNameSaveResult.WsAttributeDefNameSaveResultCode 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:
name

convertToLiteCode

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

Returns:
result code