Enum Constant Summary
Enum Constants
Indicates that all interactions are permitted.
Indicates that CREATE_RESTRICTED interactions are permitted.
Indicates that DELETE_HISTORY_RESTRICTED interactions are permitted.
Indicates that DELETE_RESTRICTED interactions are permitted.
The none permission means 'no action', 'doing nothing'.
Indicates that READ_HISTORY_RESTRICTED interactions are permitted.
Indicates that READ_RESTRICTED interactions are permitted.
Indicates that UPDATE_RESTRICTED interactions are permitted.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
returns the name of the permission, ie.
returns the resource types which are allowed for this permission
int
returns the unique numeric value of the permission.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
NONE
The none permission means 'no action', 'doing nothing'.
It does not mean that no permissions are granted.
ALL
Indicates that all interactions are permitted.
If ALL is revoked it means that the user is not permitted
to do everything, which means that at least one permission
is revoked. This does not implicate that all individual
permissions are revoked.
Example: If the UPDATE permission is revoked then the ALL
permission is revoked as well, because the user is not authorized
to execute all actions anymore.
READ_RESTRICTED
Indicates that READ_RESTRICTED interactions are permitted.
READ_HISTORY_RESTRICTED
Indicates that READ_HISTORY_RESTRICTED interactions are permitted.
UPDATE_RESTRICTED
Indicates that UPDATE_RESTRICTED interactions are permitted.
CREATE_RESTRICTED
Indicates that CREATE_RESTRICTED interactions are permitted.
DELETE_RESTRICTED
Indicates that DELETE_RESTRICTED interactions are permitted.
DELETE_HISTORY_RESTRICTED
Indicates that DELETE_HISTORY_RESTRICTED interactions are permitted.
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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 class has no constant with the specified name
NullPointerException - if the argument is null
getName
returns the name of the permission, ie. 'UPDATE'
Specified by:
getName in interface Permission
getValue
public int getValue ()
returns the unique numeric value of the permission.
Must be a power of 2. ie 2^0, 2^1, 2^2, 2^3, 2^4 ...
Specified by:
getValue in interface Permission
getTypes
returns the resource types which are allowed for this permission
Specified by:
getTypes in interface Permission