edu.internet2.middleware.grouper.ws.coresoap
Enum WsGroupLookup.GroupFindResult

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

public static enum WsGroupLookup.GroupFindResult
extends java.lang.Enum<WsGroupLookup.GroupFindResult>

result of group find


Enum Constant Summary
GROUP_NOT_FOUND
          cant find the group
GROUP_UUID_DOESNT_MATCH_NAME
          uuid doesnt match name
INVALID_QUERY
          incvalid query (e.g.
SUCCESS
          found the group
 
Method Summary
static WsGetMembersResult.WsGetMembersResultCode convertToGetMembersCodeStatic(WsGroupLookup.GroupFindResult groupFindResult)
          null safe equivalent to convertToGetMembersResultCode
abstract  WsGetMembersResult.WsGetMembersResultCode convertToGetMembersResultCode()
          convert this code to a get members code
static WsGroupDeleteResult.WsGroupDeleteResultCode convertToGroupDeleteCodeStatic(WsGroupLookup.GroupFindResult groupFindResult)
          null safe equivalent to convertToDeleteCode
abstract  WsGroupDeleteResult.WsGroupDeleteResultCode convertToGroupDeleteResultCode()
          convert this code to a delete code
 boolean isSuccess()
          if this is a successful result
static WsGroupLookup.GroupFindResult valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WsGroupLookup.GroupFindResult[] 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
 

Enum Constant Detail

SUCCESS

public static final WsGroupLookup.GroupFindResult SUCCESS
found the group


GROUP_UUID_DOESNT_MATCH_NAME

public static final WsGroupLookup.GroupFindResult GROUP_UUID_DOESNT_MATCH_NAME
uuid doesnt match name


GROUP_NOT_FOUND

public static final WsGroupLookup.GroupFindResult GROUP_NOT_FOUND
cant find the group


INVALID_QUERY

public static final WsGroupLookup.GroupFindResult INVALID_QUERY
incvalid query (e.g. if everything blank)

Method Detail

values

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

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

valueOf

public static WsGroupLookup.GroupFindResult 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

Returns:
true if success

convertToGroupDeleteResultCode

public abstract WsGroupDeleteResult.WsGroupDeleteResultCode convertToGroupDeleteResultCode()
convert this code to a delete code

Returns:
the code

convertToGetMembersResultCode

public abstract WsGetMembersResult.WsGetMembersResultCode convertToGetMembersResultCode()
convert this code to a get members code

Returns:
the code

convertToGroupDeleteCodeStatic

public static WsGroupDeleteResult.WsGroupDeleteResultCode convertToGroupDeleteCodeStatic(WsGroupLookup.GroupFindResult groupFindResult)
null safe equivalent to convertToDeleteCode

Parameters:
groupFindResult - to convert
Returns:
the code

convertToGetMembersCodeStatic

public static WsGetMembersResult.WsGetMembersResultCode convertToGetMembersCodeStatic(WsGroupLookup.GroupFindResult groupFindResult)
null safe equivalent to convertToGetMembersResultCode

Parameters:
groupFindResult - to convert
Returns:
the code