Enum Permission

    • Enum Constant Detail

      • ORDERS_R

        public static final Permission ORDERS_R
      • ORDERS_W

        public static final Permission ORDERS_W
      • INVENTORY_R

        public static final Permission INVENTORY_R
      • INVENTORY_W

        public static final Permission INVENTORY_W
      • PAYMENTS_R

        public static final Permission PAYMENTS_R
      • PAYMENTS_W

        public static final Permission PAYMENTS_W
      • CUSTOMERS_R

        public static final Permission CUSTOMERS_R
      • CUSTOMERS_W

        public static final Permission CUSTOMERS_W
      • EMPLOYEES_R

        public static final Permission EMPLOYEES_R
      • EMPLOYEES_W

        public static final Permission EMPLOYEES_W
      • MERCHANT_R

        public static final Permission MERCHANT_R
      • MERCHANT_W

        public static final Permission MERCHANT_W
    • Method Detail

      • values

        public static Permission[] 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 (Permission c : Permission.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Permission 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