edu.internet2.middleware.grouper.ws.coresoap
Enum WsGetGroupsResult.WsGetGroupsResultCode

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

public static enum WsGetGroupsResult.WsGetGroupsResultCode
extends Enum<WsGetGroupsResult.WsGetGroupsResultCode>
implements WsResultCode

result code of a request


Enum Constant Summary
EXCEPTION
          problem (lite http status code 500) (success: F)
INVALID_QUERY
          problem (lite http status code 400) (success: F)
MEMBER_NOT_FOUND
          couldnt find the member to query (lite http status code 404) (success: F)
SUBJECT_DUPLICATE
          problem querying the subject, was duplicate (lite http status code 409) (success: F)
SUBJECT_NOT_FOUND
          couldnt find the subject to query (lite http status code 404) (success: F)
SUCCESS
          found the subject (lite http status code 200) (success: T)
 
Method Summary
abstract  WsGetGroupsLiteResult.WsGetGroupsLiteResultCode convertToLiteCode()
          if there is one result, convert to the results code
 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 WsGetGroupsResult.WsGetGroupsResultCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WsGetGroupsResult.WsGetGroupsResultCode[] 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 WsGetGroupsResult.WsGetGroupsResultCode SUCCESS
found the subject (lite http status code 200) (success: T)


EXCEPTION

public static final WsGetGroupsResult.WsGetGroupsResultCode EXCEPTION
problem (lite http status code 500) (success: F)


INVALID_QUERY

public static final WsGetGroupsResult.WsGetGroupsResultCode INVALID_QUERY
problem (lite http status code 400) (success: F)


MEMBER_NOT_FOUND

public static final WsGetGroupsResult.WsGetGroupsResultCode MEMBER_NOT_FOUND
couldnt find the member to query (lite http status code 404) (success: F)


SUBJECT_NOT_FOUND

public static final WsGetGroupsResult.WsGetGroupsResultCode SUBJECT_NOT_FOUND
couldnt find the subject to query (lite http status code 404) (success: F)


SUBJECT_DUPLICATE

public static final WsGetGroupsResult.WsGetGroupsResultCode SUBJECT_DUPLICATE
problem querying the subject, was duplicate (lite http status code 409) (success: F)

Method Detail

values

public static WsGetGroupsResult.WsGetGroupsResultCode[] 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 (WsGetGroupsResult.WsGetGroupsResultCode c : WsGetGroupsResult.WsGetGroupsResultCode.values())
    System.out.println(c);

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

valueOf

public static WsGetGroupsResult.WsGetGroupsResultCode 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:

getHttpStatusCode

public int getHttpStatusCode()
Description copied from interface: WsResultCode
get the http status code associated with this status code, e.g. 200

Specified by:
getHttpStatusCode in interface WsResultCode
Returns:
the status code e.g. 200
See Also:
WsResultCode.getHttpStatusCode()

isSuccess

public boolean isSuccess()
if this is a successful result

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

convertToLiteCode

public abstract WsGetGroupsLiteResult.WsGetGroupsLiteResultCode convertToLiteCode()
if there is one result, convert to the results code

Returns:
result code