Enum Class WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode
java.lang.Object
java.lang.Enum<WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode>
edu.internet2.middleware.grouper.ws.soap_v2_4.WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode
- All Implemented Interfaces:
WsResultCode
,Serializable
,Comparable<WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode>
,Constable
- Enclosing class:
- WsAttributeDefSaveLiteResult
public static enum WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode
extends Enum<WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode>
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 ConstantsEnum ConstantDescriptionthe attribute def was not found (lite http status code 404) (success: F)either overall exception, or one or more attribute defs had exceptions (lite http status code 500) (success: F)user not allowed (lite http status code 403) (success: F)invalid query (e.g.the stem was not found (lite http status code 404) (success: F)didnt find the attribute defs, inserted them (lite http status code 201) (success: T)found the attribute defs, no changes needed (lite http status code 201) (success: T)found the attribute defs, saved them (lite http status code 201) (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
(edu.internet2.middleware.grouper.misc.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_INSERTED
didnt find the attribute defs, inserted them (lite http status code 201) (success: T) -
SUCCESS_UPDATED
found the attribute defs, saved them (lite http status code 201) (success: T) -
SUCCESS_NO_CHANGES_NEEDED
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode SUCCESS_NO_CHANGES_NEEDEDfound the attribute defs, no changes needed (lite http status code 201) (success: T) -
EXCEPTION
either overall exception, or one or more attribute defs had exceptions (lite http status code 500) (success: F) -
INVALID_QUERY
invalid query (e.g. if everything blank) (lite http status code 400) (success: F) -
ATTRIBUTE_DEF_NOT_FOUND
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode ATTRIBUTE_DEF_NOT_FOUNDthe attribute def was not found (lite http status code 404) (success: F) -
INSUFFICIENT_PRIVILEGES
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode INSUFFICIENT_PRIVILEGESuser not allowed (lite http status code 403) (success: F) -
STEM_NOT_FOUND
the stem was not found (lite http status code 404) (success: F)
-
-
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
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
-
isSuccess
public boolean isSuccess()if this is a successful result- Specified by:
isSuccess
in interfaceWsResultCode
- 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 interfaceWsResultCode
- Returns:
- the status code e.g. 200
- See Also:
-