edu.internet2.middleware.grouper.ws.coresoap
Enum WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode

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

public static enum WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode
extends java.lang.Enum<WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode>
implements WsResultCode

result code of a request


Enum Constant Summary
EXCEPTION
          some exception occurred (rest http status code 500) (success: F)
INSUFFICIENT_PRIVILEGES
          if one request, and that is a insufficient privileges (rest http status code 403) (success: F)
INVALID_QUERY
          invalid query (e.g.
MEMBER_NOT_FOUND
          cant find group (rest http status code 404) (success: F)
SUBJECT_DUPLICATE
          if one request, and that is a duplicate (rest http status code 409) (success: F)
SUBJECT_NOT_FOUND
          if one request, and that is a subject not found (rest http status code 404) (success: F)
SUCCESS
          made the update (rest http status code 200) (success: T)
 
Method Summary
 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 WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode[] 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

MEMBER_NOT_FOUND

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode MEMBER_NOT_FOUND
cant find group (rest http status code 404) (success: F)


SUCCESS

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode SUCCESS
made the update (rest http status code 200) (success: T)


EXCEPTION

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode EXCEPTION
some exception occurred (rest http status code 500) (success: F)


SUBJECT_DUPLICATE

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode SUBJECT_DUPLICATE
if one request, and that is a duplicate (rest http status code 409) (success: F)


SUBJECT_NOT_FOUND

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode SUBJECT_NOT_FOUND
if one request, and that is a subject not found (rest http status code 404) (success: F)


INSUFFICIENT_PRIVILEGES

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode INSUFFICIENT_PRIVILEGES
if one request, and that is a insufficient privileges (rest http status code 403) (success: F)


INVALID_QUERY

public static final WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode INVALID_QUERY
invalid query (e.g. if everything blank) (rest http status code 400) (success: F)

Method Detail

values

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

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

valueOf

public static WsMemberChangeSubjectLiteResult.WsMemberChangeSubjectLiteResultCode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isSuccess

public boolean isSuccess()
if this is a successful result

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

nameForVersion

public java.lang.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()