Enum 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 Detail

      • VIEW_ACCOUNT_INFORMATION

        public static final MobileOperation VIEW_ACCOUNT_INFORMATION
      • MAKE_SYSTEM_PAYMENT

        public static final MobileOperation MAKE_SYSTEM_PAYMENT
      • CREATE_TICKET

        public static final MobileOperation CREATE_TICKET
        Generate a QR Code for receiving a payment
      • 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_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).
      • 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 name
        NullPointerException - if the argument is null