Package org.forgerock.openam.cts
Enum CTSOperation
- java.lang.Object
-
- java.lang.Enum<CTSOperation>
-
- org.forgerock.openam.cts.CTSOperation
-
- All Implemented Interfaces:
Serializable,Comparable<CTSOperation>
public enum CTSOperation extends Enum<CTSOperation>
An Enum which contains constants for each of the possible CTS operations.- Since:
- 12.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CTSOperationgetOperationFromOrdinalIndex(int ordinalIndex)Retrieves the appropriate CTSOperation from the list of available enums that matches on the ordinal index.static CTSOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static CTSOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final CTSOperation CREATE
CTS Create Operation.
-
READ
public static final CTSOperation READ
CTS Read Operation.
-
UPDATE
public static final CTSOperation UPDATE
CTS Update Operation.
-
DELETE
public static final CTSOperation DELETE
CTS Delete Operation.
-
LIST
public static final CTSOperation LIST
CTS List/Query Operation.
-
-
Method Detail
-
values
public static CTSOperation[] 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 (CTSOperation c : CTSOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CTSOperation 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
-
getOperationFromOrdinalIndex
public static CTSOperation getOperationFromOrdinalIndex(int ordinalIndex)
Retrieves the appropriate CTSOperation from the list of available enums that matches on the ordinal index.- Parameters:
ordinalIndex- the ordinal index to look up- Returns:
- the CTSOperation this ordinal value represents, null otherwise
-
-