public static enum WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode extends java.lang.Enum<WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode> implements WsResultCode
Enum Constant and Description |
---|
ATTRIBUTE_DEF_NOT_FOUND
the attribute def was not found (lite http status code 404) (success: F)
|
EXCEPTION
either overall exception, or one or more attribute defs 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 defs, inserted them (lite http status code 201) (success: T)
|
SUCCESS_NO_CHANGES_NEEDED
found the attribute defs, no changes needed (lite http status code 201) (success: T)
|
SUCCESS_UPDATED
found the attribute defs, saved them (lite http status code 201) (success: T)
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode()
get the http status code associated with this status code, e.g.
|
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 WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode SUCCESS_INSERTED
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode SUCCESS_UPDATED
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode SUCCESS_NO_CHANGES_NEEDED
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode EXCEPTION
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode INVALID_QUERY
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode ATTRIBUTE_DEF_NOT_FOUND
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode INSUFFICIENT_PRIVILEGES
public static final WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode STEM_NOT_FOUND
public static WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode[] values()
for (WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode c : WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode.values()) System.out.println(c);
public static WsAttributeDefSaveLiteResult.WsAttributeDefSaveLiteResultCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String nameForVersion(GrouperVersion clientVersion)
nameForVersion
in interface WsResultCode
clientVersion
- public boolean isSuccess()
isSuccess
in interface WsResultCode
public int getHttpStatusCode()
WsResultCode
getHttpStatusCode
in interface WsResultCode
WsResultCode.getHttpStatusCode()