edu.internet2.middleware.grouper.ws.soap
Enum WsGetMembersLiteResult.WsGetMembersLiteResultCode

java.lang.Object
  extended by java.lang.Enum<WsGetMembersLiteResult.WsGetMembersLiteResultCode>
      extended by edu.internet2.middleware.grouper.ws.soap.WsGetMembersLiteResult.WsGetMembersLiteResultCode
All Implemented Interfaces:
WsResultCode, Serializable, Comparable<WsGetMembersLiteResult.WsGetMembersLiteResultCode>
Enclosing class:
WsGetMembersLiteResult

public static enum WsGetMembersLiteResult.WsGetMembersLiteResultCode
extends Enum<WsGetMembersLiteResult.WsGetMembersLiteResultCode>
implements WsResultCode

result code of a request. The possible result codes of WsGetMembersResultCode (with http status codes) are: SUCCESS(200), EXCEPTION(500), INVALID_QUERY(400)


Enum Constant Summary
EXCEPTION
          something bad happened (lite status code 500) (success: F)
GROUP_NOT_FOUND
          cant find group (lite status code 404) (success: F)
GROUP_UUID_DOESNT_MATCH_NAME
          if there is one result, convert to the results code (lite status code 400) (success: F)
INVALID_QUERY
          invalid query (e.g.
PROBLEM_GETTING_MEMBERS
          something bad happened with some of the member retrieval (lite status code 500) (success: F)
SUCCESS
          found the members (lite status code 200) (success: T)
 
Method Summary
 int getHttpStatusCode()
          get the http result code for this status code
 boolean isSuccess()
          if this is a successful result
 String nameForVersion(GrouperVersion clientVersion)
          get the name label for a certain version of client
static WsGetMembersLiteResult.WsGetMembersLiteResultCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WsGetMembersLiteResult.WsGetMembersLiteResultCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.internet2.middleware.grouper.ws.WsResultCode
name
 

Enum Constant Detail

SUCCESS

public static final WsGetMembersLiteResult.WsGetMembersLiteResultCode SUCCESS
found the members (lite status code 200) (success: T)


EXCEPTION

public static final WsGetMembersLiteResult.WsGetMembersLiteResultCode EXCEPTION
something bad happened (lite status code 500) (success: F)


PROBLEM_GETTING_MEMBERS

public static final WsGetMembersLiteResult.WsGetMembersLiteResultCode PROBLEM_GETTING_MEMBERS
something bad happened with some of the member retrieval (lite status code 500) (success: F)


INVALID_QUERY

public static final WsGetMembersLiteResult.WsGetMembersLiteResultCode INVALID_QUERY
invalid query (e.g. if everything blank) (lite status code 400) (success: F)


GROUP_NOT_FOUND

public static final WsGetMembersLiteResult.WsGetMembersLiteResultCode GROUP_NOT_FOUND
cant find group (lite status code 404) (success: F)


GROUP_UUID_DOESNT_MATCH_NAME

public static final WsGetMembersLiteResult.WsGetMembersLiteResultCode GROUP_UUID_DOESNT_MATCH_NAME
if there is one result, convert to the results code (lite status code 400) (success: F)

Method Detail

values

public static WsGetMembersLiteResult.WsGetMembersLiteResultCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WsGetMembersLiteResult.WsGetMembersLiteResultCode c : WsGetMembersLiteResult.WsGetMembersLiteResultCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WsGetMembersLiteResult.WsGetMembersLiteResultCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

nameForVersion

public String nameForVersion(GrouperVersion clientVersion)
get the name label for a certain version of client

Specified by:
nameForVersion in interface WsResultCode
Parameters:
clientVersion -
Returns:

isSuccess

public boolean isSuccess()
if this is a successful result

Specified by:
isSuccess in interface WsResultCode
Returns:
true if success

getHttpStatusCode

public int getHttpStatusCode()
get the http result code for this status code

Specified by:
getHttpStatusCode in interface WsResultCode
Returns:
the status code