edu.internet2.middleware.grouper.ws.coresoap
Enum WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode

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

public static enum WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode
extends Enum<WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode>
implements WsResultCode

result code of a request


Enum Constant Summary
ATTRIBUTE_DEF_NAME_ALREADY_EXISTS
          problem, attribute def name already exists (lite http status code 500) (success: F)
ATTRIBUTE_DEF_NAME_NOT_FOUND
          the group was not found (lite http status code 404) (success: F)
EXCEPTION
          either overall exception, or one or more attribute def names had exceptions (lite http status code 500) (success: F)
INSUFFICIENT_PRIVILEGES
          user not allowed (lite http status code 403) (success: F)
INVALID_QUERY
          invalid query (e.g.
STEM_NOT_FOUND
          the stem was not found (lite http status code 404) (success: F)
SUCCESS_INSERTED
          didnt find the attribute def names, inserted them (lite http status code 201) (success: T)
SUCCESS_NO_CHANGES_NEEDED
          found the attribute def names, no changes needed (lite http status code 201) (success: T)
SUCCESS_UPDATED
          found the attribute def names, saved them (lite http status code 201) (success: T)
 
Method Summary
 int getHttpStatusCode()
          get the http status code associated with this status code, e.g.
 boolean isSuccess()
          if this is a successful result
 String nameForVersion(GrouperVersion clientVersion)
          get the name label for a certain version of client
static WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode[] 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
 
Methods inherited from interface edu.internet2.middleware.grouper.ws.WsResultCode
name
 

Enum Constant Detail

SUCCESS_INSERTED

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode SUCCESS_INSERTED
didnt find the attribute def names, inserted them (lite http status code 201) (success: T)


SUCCESS_UPDATED

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode SUCCESS_UPDATED
found the attribute def names, saved them (lite http status code 201) (success: T)


SUCCESS_NO_CHANGES_NEEDED

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode SUCCESS_NO_CHANGES_NEEDED
found the attribute def names, no changes needed (lite http status code 201) (success: T)


EXCEPTION

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode EXCEPTION
either overall exception, or one or more attribute def names had exceptions (lite http status code 500) (success: F)


ATTRIBUTE_DEF_NAME_ALREADY_EXISTS

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode ATTRIBUTE_DEF_NAME_ALREADY_EXISTS
problem, attribute def name already exists (lite http status code 500) (success: F)


INVALID_QUERY

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode INVALID_QUERY
invalid query (e.g. if everything blank) (lite http status code 400) (success: F)


ATTRIBUTE_DEF_NAME_NOT_FOUND

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode ATTRIBUTE_DEF_NAME_NOT_FOUND
the group was not found (lite http status code 404) (success: F)


INSUFFICIENT_PRIVILEGES

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode INSUFFICIENT_PRIVILEGES
user not allowed (lite http status code 403) (success: F)


STEM_NOT_FOUND

public static final WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode STEM_NOT_FOUND
the stem was not found (lite http status code 404) (success: F)

Method Detail

values

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

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

valueOf

public static WsAttributeDefNameSaveLiteResult.WsAttributeDefNameSaveLiteResultCode 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

Specified by:
nameForVersion in interface WsResultCode
Parameters:
clientVersion -
Returns:
name

isSuccess

public boolean isSuccess()
if this is a successful result

Specified by:
isSuccess in interface WsResultCode
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 interface WsResultCode
Returns:
the status code e.g. 200
See Also:
WsResultCode.getHttpStatusCode()