public static enum WsGetGroupsResults.WsGetGroupsResultsCode extends java.lang.Enum<WsGetGroupsResults.WsGetGroupsResultsCode> implements WsResultCode
Enum Constant and Description |
---|
EXCEPTION
found the subject (rest http status code 500) (success: F)
|
INVALID_QUERY
invalid query (e.g.
|
PROBLEM_RETRIEVING_GROUPS
problem deleting existing members (rest http status code 500) (success: F)
|
SUCCESS
found the subject (rest http status code 201) (success: T)
CH 20120210: Why is this a 201???? shouldnt it be 200????
|
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 WsGetGroupsResults.WsGetGroupsResultsCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WsGetGroupsResults.WsGetGroupsResultsCode[] |
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 WsGetGroupsResults.WsGetGroupsResultsCode SUCCESS
public static final WsGetGroupsResults.WsGetGroupsResultsCode EXCEPTION
public static final WsGetGroupsResults.WsGetGroupsResultsCode PROBLEM_RETRIEVING_GROUPS
public static final WsGetGroupsResults.WsGetGroupsResultsCode INVALID_QUERY
public static WsGetGroupsResults.WsGetGroupsResultsCode[] values()
for (WsGetGroupsResults.WsGetGroupsResultsCode c : WsGetGroupsResults.WsGetGroupsResultsCode.values()) System.out.println(c);
public static WsGetGroupsResults.WsGetGroupsResultsCode 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()