public static enum WsFindStemsResults.WsFindStemsResultsCode extends Enum<WsFindStemsResults.WsFindStemsResultsCode> implements WsResultCode
| Enum Constant and Description |
|---|
EXCEPTION
found the subject (lite http status code 500) (success: F)
|
INVALID_QUERY
invalid query (e.g.
|
PARENT_STEM_NOT_FOUND
if the parent was not found in a search by parent (lite http status code 404) (success: F)
|
SUCCESS
found the stem (or not) (lite http status code 200) (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
|
String |
nameForVersion(edu.internet2.middleware.grouper.misc.GrouperVersion clientVersion)
get the name label for a certain version of client
|
static WsFindStemsResults.WsFindStemsResultsCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WsFindStemsResults.WsFindStemsResultsCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final WsFindStemsResults.WsFindStemsResultsCode SUCCESS
public static final WsFindStemsResults.WsFindStemsResultsCode EXCEPTION
public static final WsFindStemsResults.WsFindStemsResultsCode INVALID_QUERY
public static final WsFindStemsResults.WsFindStemsResultsCode PARENT_STEM_NOT_FOUND
public static WsFindStemsResults.WsFindStemsResultsCode[] values()
for (WsFindStemsResults.WsFindStemsResultsCode c : WsFindStemsResults.WsFindStemsResultsCode.values()) System.out.println(c);
public static WsFindStemsResults.WsFindStemsResultsCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String nameForVersion(edu.internet2.middleware.grouper.misc.GrouperVersion clientVersion)
nameForVersion in interface WsResultCodeclientVersion - public int getHttpStatusCode()
WsResultCodegetHttpStatusCode in interface WsResultCodeWsResultCode.getHttpStatusCode()public boolean isSuccess()
isSuccess in interface WsResultCodeCopyright © 2016 Internet2. All rights reserved.