public static enum WsStemSaveLiteResult.WsStemSaveLiteResultCode extends Enum<WsStemSaveLiteResult.WsStemSaveLiteResultCode> implements WsResultCode
Enum Constant and Description |
---|
EXCEPTION
either overall exception, or one or more stems 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.
|
PROBLEM_SAVING_STEMS
problem deleting existing stems (lite http status code 500) (success: F)
|
STEM_NOT_FOUND
the save was not found (lite http status code 404) (success: F)
|
SUCCESS_INSERTED
inserted a new stem (lite http status code 201) (success: T)
|
SUCCESS_NO_CHANGES_NEEDED
found the stem, no changes needed (lite http status code 201) (success: T)
|
SUCCESS_UPDATED
found the stem, updated it (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
|
String |
nameForVersion(GrouperVersion clientVersion)
get the name label for a certain version of client
|
static WsStemSaveLiteResult.WsStemSaveLiteResultCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WsStemSaveLiteResult.WsStemSaveLiteResultCode[] |
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, valueOf
name
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode SUCCESS_INSERTED
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode SUCCESS_UPDATED
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode SUCCESS_NO_CHANGES_NEEDED
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode EXCEPTION
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode PROBLEM_SAVING_STEMS
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode INVALID_QUERY
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode INSUFFICIENT_PRIVILEGES
public static final WsStemSaveLiteResult.WsStemSaveLiteResultCode STEM_NOT_FOUND
public static WsStemSaveLiteResult.WsStemSaveLiteResultCode[] values()
for (WsStemSaveLiteResult.WsStemSaveLiteResultCode c : WsStemSaveLiteResult.WsStemSaveLiteResultCode.values()) System.out.println(c);
public static WsStemSaveLiteResult.WsStemSaveLiteResultCode 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(GrouperVersion clientVersion)
nameForVersion
in interface WsResultCode
clientVersion
- public int getHttpStatusCode()
WsResultCode
getHttpStatusCode
in interface WsResultCode
WsResultCode.getHttpStatusCode()
public boolean isSuccess()
isSuccess
in interface WsResultCode
Copyright © 2016 Internet2. All rights reserved.