public static enum WsGroupSaveLiteResult.WsGroupSaveLiteResultCode extends java.lang.Enum<WsGroupSaveLiteResult.WsGroupSaveLiteResultCode> implements WsResultCode
Enum Constant and Description |
---|
EXCEPTION
either overall exception, or one or more groups had exceptions (lite http status code 500) (success: F)
|
GROUP_ALREADY_EXISTS
problem, group already exists (lite http status code 500) (success: F)
|
GROUP_NOT_FOUND
the group was not found (lite http status code 404) (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 groups, inserted them (lite http status code 201) (success: T)
|
SUCCESS_NO_CHANGES_NEEDED
found the groups, saved them (lite http status code 201) (success: T)
|
SUCCESS_UPDATED
found the groups, 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 WsGroupSaveLiteResult.WsGroupSaveLiteResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WsGroupSaveLiteResult.WsGroupSaveLiteResultCode[] |
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 WsGroupSaveLiteResult.WsGroupSaveLiteResultCode SUCCESS_INSERTED
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode SUCCESS_UPDATED
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode SUCCESS_NO_CHANGES_NEEDED
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode EXCEPTION
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode GROUP_ALREADY_EXISTS
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode INVALID_QUERY
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode GROUP_NOT_FOUND
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode INSUFFICIENT_PRIVILEGES
public static final WsGroupSaveLiteResult.WsGroupSaveLiteResultCode STEM_NOT_FOUND
public static WsGroupSaveLiteResult.WsGroupSaveLiteResultCode[] values()
for (WsGroupSaveLiteResult.WsGroupSaveLiteResultCode c : WsGroupSaveLiteResult.WsGroupSaveLiteResultCode.values()) System.out.println(c);
public static WsGroupSaveLiteResult.WsGroupSaveLiteResultCode 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()