Enum ClientApproval.Status
- java.lang.Object
-
- java.lang.Enum<ClientApproval.Status>
-
- org.oa4mp.delegation.server.storage.ClientApproval.Status
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.util.StatusValue
,Serializable
,Comparable<ClientApproval.Status>
- Enclosing class:
- ClientApproval
public static enum ClientApproval.Status extends Enum<ClientApproval.Status> implements edu.uiuc.ncsa.security.core.util.StatusValue
This status enum has values that the elements assume. This is to control their actual internal values so that for instance, if the name changes, the associated value remains constant (which allows for much easier backwards compatibility in the future.)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStatus()
static ClientApproval.Status
resolveByStatusValue(String code)
static ClientApproval.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClientApproval.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ClientApproval.Status NONE
-
DENIED
public static final ClientApproval.Status DENIED
-
APPROVED
public static final ClientApproval.Status APPROVED
-
REVOKED
public static final ClientApproval.Status REVOKED
-
TEMPLATE
public static final ClientApproval.Status TEMPLATE
-
PENDING
public static final ClientApproval.Status PENDING
-
-
Method Detail
-
values
public static ClientApproval.Status[] 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 (ClientApproval.Status c : ClientApproval.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientApproval.Status 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 nameNullPointerException
- if the argument is null
-
getStatus
public String getStatus()
- Specified by:
getStatus
in interfaceedu.uiuc.ncsa.security.core.util.StatusValue
-
resolveByStatusValue
public static ClientApproval.Status resolveByStatusValue(String code)
-
-