Enum Class WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode
java.lang.Object
java.lang.Enum<WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode>
edu.internet2.middleware.grouper.ws.coresoap.WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode
- All Implemented Interfaces:
WsResultCode
,Serializable
,Comparable<WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode>
,Constable
- Enclosing class:
- WsAttributeDefNameDeleteLiteResult
public static enum WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode
extends Enum<WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode>
implements WsResultCode
result code of a request
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionin attribute def name lookup, the uuid doesnt match name (lite status code 400) (success: F)either overall exception, or one or more attribute def names had exceptions (lite status code 500) (success: F)user not allowed (lite status code 403) (success: F)invalid query (e.g.if parent stem cant be found (lite status code 404) (success: F)problem deleting existing attribute def names (lite status code 500) (success: F)found the attribute def names, deleted them (lite status code 200) (success: T)the parent stem exists but the attribute def name was not found (lite status code 200) (success: T) -
Method Summary
Modifier and TypeMethodDescriptionint
get the http status code associated with this status code, e.g.boolean
if this is a successful resultnameForVersion
(GrouperVersion clientVersion) get the name label for a certain version of clientReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface edu.internet2.middleware.grouper.ws.WsResultCode
name
-
Enum Constant Details
-
SUCCESS
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode SUCCESSfound the attribute def names, deleted them (lite status code 200) (success: T) -
EXCEPTION
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode EXCEPTIONeither overall exception, or one or more attribute def names had exceptions (lite status code 500) (success: F) -
PROBLEM_DELETING_ATTRIBUTE_DEF_NAMES
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode PROBLEM_DELETING_ATTRIBUTE_DEF_NAMESproblem deleting existing attribute def names (lite status code 500) (success: F) -
INVALID_QUERY
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode INVALID_QUERYinvalid query (e.g. if everything blank) (lite status code 400) (success: F) -
ATTRIBUTE_DEF_NAME_UUID_DOESNT_MATCH_NAME
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode ATTRIBUTE_DEF_NAME_UUID_DOESNT_MATCH_NAMEin attribute def name lookup, the uuid doesnt match name (lite status code 400) (success: F) -
INSUFFICIENT_PRIVILEGES
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode INSUFFICIENT_PRIVILEGESuser not allowed (lite status code 403) (success: F) -
PARENT_STEM_NOT_FOUND
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode PARENT_STEM_NOT_FOUNDif parent stem cant be found (lite status code 404) (success: F) -
SUCCESS_ATTRIBUTE_DEF_NAME_NOT_FOUND
public static final WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode SUCCESS_ATTRIBUTE_DEF_NAME_NOT_FOUNDthe parent stem exists but the attribute def name was not found (lite status code 200) (success: T)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static WsAttributeDefNameDeleteLiteResult.WsAttributeDefNameDeleteLiteResultCode valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
nameForVersion
get the name label for a certain version of client- Specified by:
nameForVersion
in interfaceWsResultCode
- Parameters:
clientVersion
-- Returns:
- name
-
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 interfaceWsResultCode
- Returns:
- the status code e.g. 200
- See Also:
-
isSuccess
public boolean isSuccess()if this is a successful result- Specified by:
isSuccess
in interfaceWsResultCode
- Returns:
- true if success
-