Package org.cyclos.model.system.imports
Enum ImportType
- java.lang.Object
-
- java.lang.Enum<ImportType>
-
- org.cyclos.model.system.imports.ImportType
-
- All Implemented Interfaces:
Serializable,Comparable<ImportType>,HasMessageKey
public enum ImportType extends Enum<ImportType> implements HasMessageKey
Import type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADS_IMPORTGENERAL_REFERENCES_IMPORTPAYMENTS_IMPORTRECORDS_IMPORTTOKENS_IMPORTTRANSFERS_IMPORTUSER_PAYMENTS_IMPORTUSER_SEND_VOUCHERS_IMPORTUSERS_IMPORT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissiongetGeneralPermission()The permission used to control this import type.MessageKeygetMessageKey()PermissiongetMyPermission()The for the own user to access this import.PermissiongetUserManagePermission()The permission used to manage imports of this type for users managed by the logged user.PermissiongetUserViewPermission()The permission used to view imports of this type for users managed by the logged user.booleanisUserSpecific()Indicates whether this type will import data for a specific userbooleanrequiresConfirmationPassword()Indicates whether importing files of this type requires the confirmation password to proceedstatic ImportTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ImportType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USERS_IMPORT
public static final ImportType USERS_IMPORT
-
ADS_IMPORT
public static final ImportType ADS_IMPORT
-
RECORDS_IMPORT
public static final ImportType RECORDS_IMPORT
-
GENERAL_REFERENCES_IMPORT
public static final ImportType GENERAL_REFERENCES_IMPORT
-
PAYMENTS_IMPORT
public static final ImportType PAYMENTS_IMPORT
-
TRANSFERS_IMPORT
public static final ImportType TRANSFERS_IMPORT
-
TOKENS_IMPORT
public static final ImportType TOKENS_IMPORT
-
USER_PAYMENTS_IMPORT
public static final ImportType USER_PAYMENTS_IMPORT
-
USER_SEND_VOUCHERS_IMPORT
public static final ImportType USER_SEND_VOUCHERS_IMPORT
-
-
Method Detail
-
values
public static ImportType[] 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 (ImportType c : ImportType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImportType 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
-
getGeneralPermission
public Permission getGeneralPermission()
The permission used to control this import type. Only for general imports. For user-specific imports, returns null;
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
getMyPermission
public Permission getMyPermission()
The for the own user to access this import. Only for user-specific imports. For general imports, returns null;
-
getUserManagePermission
public Permission getUserManagePermission()
The permission used to manage imports of this type for users managed by the logged user. Only for user-specific imports. For general imports, returns null;
-
getUserViewPermission
public Permission getUserViewPermission()
The permission used to view imports of this type for users managed by the logged user. Only for user-specific imports. For general imports, returns null;
-
isUserSpecific
public boolean isUserSpecific()
Indicates whether this type will import data for a specific user
-
requiresConfirmationPassword
public boolean requiresConfirmationPassword()
Indicates whether importing files of this type requires the confirmation password to proceed
-
-