Enum SmsOperationExecution
- java.lang.Object
-
- java.lang.Enum<SmsOperationExecution>
-
- org.cyclos.model.system.smsoperationconfigurations.SmsOperationExecution
-
- All Implemented Interfaces:
Serializable,Comparable<SmsOperationExecution>,HasMessageKey
public enum SmsOperationExecution extends Enum<SmsOperationExecution> implements HasMessageKey
Indicates if an operation can be executed only by registered users, guests or all.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLThere is no restriction to the execution of an operationONLY_BY_GUESTSOnly guests can execute an operation.ONLY_BY_REGISTERED_USERSOnly already registered users can execute an operation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static SmsOperationExecutionvalueOf(String name)Returns the enum constant of this type with the specified name.static SmsOperationExecution[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final SmsOperationExecution ALL
There is no restriction to the execution of an operation
-
ONLY_BY_REGISTERED_USERS
public static final SmsOperationExecution ONLY_BY_REGISTERED_USERS
Only already registered users can execute an operation.
-
ONLY_BY_GUESTS
public static final SmsOperationExecution ONLY_BY_GUESTS
Only guests can execute an operation.
-
-
Method Detail
-
values
public static SmsOperationExecution[] 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 (SmsOperationExecution c : SmsOperationExecution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SmsOperationExecution 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-