Package com.logicaldoc.core.security
Enum Class Permission
- All Implemented Interfaces:
Serializable
,Comparable<Permission>
,Constable
Models a permission, that is the ability to do something
- READ: ability to read the folder and its documents
- WRITE: ability to insert and delete folder's documents
- ADD: ability to add child elements
- SECURITY: ability to change security rules
- IMMUTABILE: ability to mark a document as immutable
- DELETE: ability to delete the entity
- RENAME: ability to rename the entity
- IMPORT: ability to import documents
- EXPORT: ability to export documents
- SIGN: ability to digitally sign documents
- ARCHIVE: ability to archive documents
- WORKFLOW: ability to handle workflow
- CALENDAR: ability to handle calendar events
- SUBSCRIPTION: ability to handle events subscription
- PRINT: ability to print
- PASSWORD: ability to put a password in a document
- MOVE: ability to move documents
- EMAIL: ability to send emails
- AUTOMATION: ability to handle the automation
- STORAGE: ability to handle the storage
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<Permission>
all()
static Set<Permission>
int
getMask()
getName()
boolean
match
(int permission) toString()
static Permission
valueOf
(int mask) Returns the enum constant of this class with the specified name.static Permission
Returns the enum constant of this class with the specified name.static Permission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
READ
-
DOWNLOAD
-
WRITE
-
ADD
-
SECURITY
-
IMMUTABLE
-
DELETE
-
RENAME
-
IMPORT
-
EXPORT
-
SIGN
-
ARCHIVE
-
WORKFLOW
-
CALENDAR
-
SUBSCRIPTION
-
PRINT
-
PASSWORD
-
MOVE
-
EMAIL
-
AUTOMATION
-
STORAGE
-
-
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 nameNullPointerException
- if the argument is null
-
getName
-
getMask
public int getMask() -
match
public boolean match(int permission) -
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:
mask
- 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 nameNullPointerException
- if the argument is null
-
all
-
forGuests
-
toString
- Overrides:
toString
in classEnum<Permission>
-