Package org.cyclos.model.access
Enum MobileOperation
- java.lang.Object
-
- java.lang.Enum<MobileOperation>
-
- org.cyclos.model.access.MobileOperation
-
- All Implemented Interfaces:
Serializable,Comparable<MobileOperation>
public enum MobileOperation extends Enum<MobileOperation>
The mobile application doesn't work with the permissions directly.
Instead it use a higher abstraction level: operations. The operations are a king of flags that are on or off according to a (set of) related permission(s).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_TICKETAccepts a generated QR code for performing a paymentBUY_VOUCHERCARD_FORMATCARD_INITIALIZECARD_PERSONALIZEIf the logged user can personalize cards for other users (as manager or member)CARD_PERSONALIZE_SELFIf the logged user can personalize cards for himself or its operators (only as member).CARD_READCREATE_TICKETGenerate a QR Code for receiving a paymentMAKE_SYSTEM_PAYMENTMAKE_USER_PAYMENTMANAGE_CONTACTSMANAGE_OPERATORSIf the logged user can manage operators (i.e.MANAGE_PASSWORDSIf the logged user can manage his passwordsMAP_DIRECTORYNFC_ACTIVATEActivate the phone to allow make payments using it as identifier.NFC_DEACTIVATEDeactivate the phone not allowing making payments.PAYMENT_REQUESTSIf the logged user can search and view payment requestsPOS_ASSIGNA.k.a access client assignPOS_UNASSIGNA.k.a access client unassignsPURCHASESIf the logged user can buy and see purchasesRECEIVE_PAYMENTREDEEM_VOUCHERREGISTER_USERS_AS_MANAGERIf the logged user (user manager) can register other membersREGISTER_USERS_AS_MEMBERIf the logged user or POS owner can register other users (member/broker) as member (member/operator not broker).SEND_PAYMENT_REQUEST_TO_SYSTEMIf the logged can send payment requests to systemSEND_PAYMENT_REQUEST_TO_USERIf the logged can send payment requests to usersUSERS_SEARCHVIEW_ACCOUNT_INFORMATIONVIEW_ADVERTISEMENTSIf the logged user can view ads or webshopVIEW_REDEEMEDVIEW_USER_PROFILEVOUCHERS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MobileOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static MobileOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIEW_USER_PROFILE
public static final MobileOperation VIEW_USER_PROFILE
-
VIEW_ACCOUNT_INFORMATION
public static final MobileOperation VIEW_ACCOUNT_INFORMATION
-
MAKE_USER_PAYMENT
public static final MobileOperation MAKE_USER_PAYMENT
-
MAKE_SYSTEM_PAYMENT
public static final MobileOperation MAKE_SYSTEM_PAYMENT
-
RECEIVE_PAYMENT
public static final MobileOperation RECEIVE_PAYMENT
-
CREATE_TICKET
public static final MobileOperation CREATE_TICKET
Generate a QR Code for receiving a payment
-
VOUCHERS
public static final MobileOperation VOUCHERS
-
BUY_VOUCHER
public static final MobileOperation BUY_VOUCHER
-
REDEEM_VOUCHER
public static final MobileOperation REDEEM_VOUCHER
-
VIEW_REDEEMED
public static final MobileOperation VIEW_REDEEMED
-
MANAGE_CONTACTS
public static final MobileOperation MANAGE_CONTACTS
-
USERS_SEARCH
public static final MobileOperation USERS_SEARCH
-
MAP_DIRECTORY
public static final MobileOperation MAP_DIRECTORY
-
NFC_ACTIVATE
public static final MobileOperation NFC_ACTIVATE
Activate the phone to allow make payments using it as identifier.
-
NFC_DEACTIVATE
public static final MobileOperation NFC_DEACTIVATE
Deactivate the phone not allowing making payments.
-
POS_ASSIGN
public static final MobileOperation POS_ASSIGN
A.k.a access client assign
-
POS_UNASSIGN
public static final MobileOperation POS_UNASSIGN
A.k.a access client unassigns
-
CARD_INITIALIZE
public static final MobileOperation CARD_INITIALIZE
-
CARD_PERSONALIZE
public static final MobileOperation CARD_PERSONALIZE
If the logged user can personalize cards for other users (as manager or member)
-
CARD_PERSONALIZE_SELF
public static final MobileOperation CARD_PERSONALIZE_SELF
If the logged user can personalize cards for himself or its operators (only as member).
-
CARD_READ
public static final MobileOperation CARD_READ
-
CARD_FORMAT
public static final MobileOperation CARD_FORMAT
-
ACCEPT_TICKET
public static final MobileOperation ACCEPT_TICKET
Accepts a generated QR code for performing a payment
-
MANAGE_OPERATORS
public static final MobileOperation MANAGE_OPERATORS
If the logged user can manage operators (i.e. a member/manager with permission to manage its own/user operators)
-
REGISTER_USERS_AS_MEMBER
public static final MobileOperation REGISTER_USERS_AS_MEMBER
If the logged user or POS owner can register other users (member/broker) as member (member/operator not broker).
-
REGISTER_USERS_AS_MANAGER
public static final MobileOperation REGISTER_USERS_AS_MANAGER
If the logged user (user manager) can register other members
-
PAYMENT_REQUESTS
public static final MobileOperation PAYMENT_REQUESTS
If the logged user can search and view payment requests
-
SEND_PAYMENT_REQUEST_TO_SYSTEM
public static final MobileOperation SEND_PAYMENT_REQUEST_TO_SYSTEM
If the logged can send payment requests to system
-
SEND_PAYMENT_REQUEST_TO_USER
public static final MobileOperation SEND_PAYMENT_REQUEST_TO_USER
If the logged can send payment requests to users
-
MANAGE_PASSWORDS
public static final MobileOperation MANAGE_PASSWORDS
If the logged user can manage his passwords
-
VIEW_ADVERTISEMENTS
public static final MobileOperation VIEW_ADVERTISEMENTS
If the logged user can view ads or webshop
-
PURCHASES
public static final MobileOperation PURCHASES
If the logged user can buy and see purchases
-
-
Method Detail
-
values
public static MobileOperation[] 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 (MobileOperation c : MobileOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MobileOperation 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
-
-