Package org.cyclos.model.users.products
Enum ImportOperation
- java.lang.Object
-
- java.lang.Enum<ImportOperation>
-
- org.cyclos.model.users.products.ImportOperation
-
- All Implemented Interfaces:
Serializable,Comparable<ImportOperation>,PermissionOperation,HasMessageKey
public enum ImportOperation extends Enum<ImportOperation> implements PermissionOperation
Possible operations on imports
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMPORT_ADSIMPORT_GENERAL_REFERENCESIMPORT_PAYMENTSIMPORT_RECORDSIMPORT_TOKENSIMPORT_TRANSFERSIMPORT_USERS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static ImportOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static ImportOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMPORT_USERS
public static final ImportOperation IMPORT_USERS
-
IMPORT_ADS
public static final ImportOperation IMPORT_ADS
-
IMPORT_RECORDS
public static final ImportOperation IMPORT_RECORDS
-
IMPORT_GENERAL_REFERENCES
public static final ImportOperation IMPORT_GENERAL_REFERENCES
-
IMPORT_TRANSFERS
public static final ImportOperation IMPORT_TRANSFERS
-
IMPORT_PAYMENTS
public static final ImportOperation IMPORT_PAYMENTS
-
IMPORT_TOKENS
public static final ImportOperation IMPORT_TOKENS
-
-
Method Detail
-
values
public static ImportOperation[] 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 (ImportOperation c : ImportOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImportOperation 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
-
-