org.geebis.books.model.partner.permission
Enum Permission
java.lang.Object
java.lang.Enum<Permission>
org.geebis.books.model.partner.permission.Permission
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Permission>
public enum Permission
- extends java.lang.Enum<Permission>
The Permission enum lists all the permissions in the Geebis Books system.
Permissions are often associated with a particular module, and there are usually two permissions per module:
one to READ records in the module, and one to WRITE records in the module.
When the permissions follow this pattern, use this naming scheme:
<READ|WRITE>_<MODULE>
|
Method Summary |
static Permission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
READ_CUSTOMERS
public static final Permission READ_CUSTOMERS
WRITE_CUSTOMERS
public static final Permission WRITE_CUSTOMERS
READ_VENDORS
public static final Permission READ_VENDORS
WRITE_VENDORS
public static final Permission WRITE_VENDORS
READ_PRODUCTS
public static final Permission READ_PRODUCTS
WRITE_PRODUCTS
public static final Permission WRITE_PRODUCTS
READ_SERVICES
public static final Permission READ_SERVICES
WRITE_SERVICES
public static final Permission WRITE_SERVICES
READ_EMPLOYEES
public static final Permission READ_EMPLOYEES
WRITE_EMPLOYEES
public static final Permission WRITE_EMPLOYEES
READ_ACCOUNTS
public static final Permission READ_ACCOUNTS
WRITE_ACCOUNTS
public static final Permission WRITE_ACCOUNTS
READ_INVOICES
public static final Permission READ_INVOICES
WRITE_INVOICES
public static final Permission WRITE_INVOICES
READ_JOBS
public static final Permission READ_JOBS
WRITE_JOBS
public static final Permission WRITE_JOBS
READ_PURCHASE_ORDERS
public static final Permission READ_PURCHASE_ORDERS
WRITE_PURCHASE_ORDERS
public static final Permission WRITE_PURCHASE_ORDERS
READ_TRANSACTIONS
public static final Permission READ_TRANSACTIONS
WRITE_TRANSACTIONS
public static final Permission WRITE_TRANSACTIONS
READ_SALES_ORDERS
public static final Permission READ_SALES_ORDERS
WRITE_SALES_ORDERS
public static final Permission WRITE_SALES_ORDERS
READ_SERVICE_ORDERS
public static final Permission READ_SERVICE_ORDERS
WRITE_SERVICE_ORDERS
public static final Permission WRITE_SERVICE_ORDERS
LOGIN
public static final Permission LOGIN
values
public static final Permission[] values()
- Returns an array containing the constants of this enum type, in
the order they're 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're declared
valueOf
public static Permission valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name