Package org.cyclos.model.users.dashboard
Enum QuickAccessType
- java.lang.Object
-
- java.lang.Enum<QuickAccessType>
-
- org.cyclos.model.users.dashboard.QuickAccessType
-
- All Implemented Interfaces:
Serializable,Comparable<QuickAccessType>,HasMessageKey
public enum QuickAccessType extends Enum<QuickAccessType> implements HasMessageKey
Indicates the type of quick access displayed in the user home
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallows(Role role)Indicates whether this quick access type allows the given rolestatic Set<QuickAccessType>getByRole(Role role)SvgIcongetIcon()MessageKeygetMessageKey()booleanhasEntity()Indicates whether this quick access type uses another entitybooleanshowIn(Frontend frontend)Indicates whether the current quick access is shown in the given frontendstatic QuickAccessTypevalueOf(String name)Returns the enum constant of this type with the specified name.static QuickAccessType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCOUNT
public static final QuickAccessType ACCOUNT
-
SCHEDULED_PAYMENTS
public static final QuickAccessType SCHEDULED_PAYMENTS
-
TRANSFERS_OVERVIEW
public static final QuickAccessType TRANSFERS_OVERVIEW
-
TOKEN
public static final QuickAccessType TOKEN
-
PAY_USER
public static final QuickAccessType PAY_USER
-
PAY_SYSTEM
public static final QuickAccessType PAY_SYSTEM
-
PAY_SELF
public static final QuickAccessType PAY_SELF
-
POS
public static final QuickAccessType POS
-
RECEIVE_QR_PAYMENT
public static final QuickAccessType RECEIVE_QR_PAYMENT
-
TRANSACTION_FEEDBACKS
public static final QuickAccessType TRANSACTION_FEEDBACKS
-
PAYMENT_REQUESTS
public static final QuickAccessType PAYMENT_REQUESTS
-
REQUEST_PAYMENT_FROM_USER
public static final QuickAccessType REQUEST_PAYMENT_FROM_USER
-
REQUEST_PAYMENT_FROM_SYSTEM
public static final QuickAccessType REQUEST_PAYMENT_FROM_SYSTEM
-
EXTERNAL_PAYMENTS
public static final QuickAccessType EXTERNAL_PAYMENTS
-
PAY_EXTERNAL_USER
public static final QuickAccessType PAY_EXTERNAL_USER
-
OPERATION
public static final QuickAccessType OPERATION
-
WIZARD
public static final QuickAccessType WIZARD
-
VOUCHERS
public static final QuickAccessType VOUCHERS
-
BUY_VOUCHER
public static final QuickAccessType BUY_VOUCHER
-
SEND_VOUCHER
public static final QuickAccessType SEND_VOUCHER
-
VOUCHER_TRANSACTIONS
public static final QuickAccessType VOUCHER_TRANSACTIONS
-
REDEEM_VOUCHER
public static final QuickAccessType REDEEM_VOUCHER
-
TOP_UP_VOUCHER
public static final QuickAccessType TOP_UP_VOUCHER
-
SEARCH_USERS
public static final QuickAccessType SEARCH_USERS
-
BALANCES_OVERVIEW
public static final QuickAccessType BALANCES_OVERVIEW
-
PENDING_USERS
public static final QuickAccessType PENDING_USERS
-
CONTACTS
public static final QuickAccessType CONTACTS
-
BROKERED_USERS
public static final QuickAccessType BROKERED_USERS
-
REGISTER_USER
public static final QuickAccessType REGISTER_USER
-
INVITE_USER
public static final QuickAccessType INVITE_USER
-
SEARCH_ADS
public static final QuickAccessType SEARCH_ADS
-
AD_INTERESTS
public static final QuickAccessType AD_INTERESTS
-
PURCHASES
public static final QuickAccessType PURCHASES
-
MY_ADS
public static final QuickAccessType MY_ADS
-
CREATE_AD
public static final QuickAccessType CREATE_AD
-
MY_WEBSHOP
public static final QuickAccessType MY_WEBSHOP
-
CREATE_WEBSHOP_AD
public static final QuickAccessType CREATE_WEBSHOP_AD
-
SALES
public static final QuickAccessType SALES
-
EDIT_PROFILE
public static final QuickAccessType EDIT_PROFILE
-
PASSWORDS
public static final QuickAccessType PASSWORDS
-
REFERENCES
public static final QuickAccessType REFERENCES
-
MESSAGES
public static final QuickAccessType MESSAGES
-
SEND_MESSAGE
public static final QuickAccessType SEND_MESSAGE
-
DOCUMENTS
public static final QuickAccessType DOCUMENTS
-
RECORD
public static final QuickAccessType RECORD
-
SETTINGS
public static final QuickAccessType SETTINGS
-
NOTIFICATIONS
public static final QuickAccessType NOTIFICATIONS
-
HELP
public static final QuickAccessType HELP
-
SWITCH_FRONTEND
public static final QuickAccessType SWITCH_FRONTEND
-
SWITCH_THEME
public static final QuickAccessType SWITCH_THEME
-
-
Method Detail
-
values
public static QuickAccessType[] 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 (QuickAccessType c : QuickAccessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuickAccessType 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
-
getByRole
public static Set<QuickAccessType> getByRole(Role role)
-
allows
public boolean allows(Role role)
Indicates whether this quick access type allows the given role
-
getIcon
public SvgIcon getIcon()
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
hasEntity
public boolean hasEntity()
Indicates whether this quick access type uses another entity
-
showIn
public boolean showIn(Frontend frontend)
Indicates whether the current quick access is shown in the given frontend
-
-