edu.internet2.middleware.grouper.ws.coresoap
Enum WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode

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

public static enum WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode
extends java.lang.Enum<WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode>
implements WsResultCode

result code of a request. The possible result codes of WsAttributeDefNameDeleteResultsCode (with http status codes) are: SUCCESS(200), EXCEPTION(500), INVALID_QUERY(400), INSUFFICIENT_PRIVILEGES(403)


Enum Constant Summary
EXCEPTION
          something bad happened (lite status code 500) (success: F)
INSUFFICIENT_PRIVILEGES
          not allowed to assign or remove attribute def name inheritance based on privileges on the attribute definition
INVALID_QUERY
          invalid query (e.g.
PROBLEM_DELETING_ATTRIBUTE_DEF_NAMES
          if one or more attribute def names could not be deleted (e.g.
SUCCESS
          deleted attribute def names (lite status code 200) (success: T)
 
Method Summary
 int getHttpStatusCode()
          get the http result code for this status code
 boolean isSuccess()
          if this is a successful result
 java.lang.String nameForVersion(GrouperVersion clientVersion)
          get the name label for a certain version of client
static WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode[] 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

public static final WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode SUCCESS
deleted attribute def names (lite status code 200) (success: T)


EXCEPTION

public static final WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode EXCEPTION
something bad happened (lite status code 500) (success: F)


INVALID_QUERY

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


PROBLEM_DELETING_ATTRIBUTE_DEF_NAMES

public static final WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode PROBLEM_DELETING_ATTRIBUTE_DEF_NAMES
if one or more attribute def names could not be deleted (e.g. if everything blank) (lite status code 500) (success: F)


INSUFFICIENT_PRIVILEGES

public static final WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode INSUFFICIENT_PRIVILEGES
not allowed to assign or remove attribute def name inheritance based on privileges on the attribute definition

Method Detail

values

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

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

valueOf

public static WsAttributeDefNameDeleteResults.WsAttributeDefNameDeleteResultsCode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

nameForVersion

public java.lang.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()
get the http result code for this status code

Specified by:
getHttpStatusCode in interface WsResultCode
Returns:
the status code