Package com.logicaldoc.core.security
Enum Permission
- java.lang.Object
- 
- java.lang.Enum<Permission>
- 
- com.logicaldoc.core.security.Permission
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Permission>
 
 public enum Permission extends Enum<Permission> 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
 - Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<Permission>all()static Set<Permission>forGuests()intgetMask()StringgetName()booleanmatch(int permission)StringtoString()static PermissionvalueOf(int mask)Returns the enum constant of this type with the specified name.static PermissionvalueOf(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 are declared.
 
- 
- 
- 
Enum Constant Detail- 
READpublic static final Permission READ 
 - 
DOWNLOADpublic static final Permission DOWNLOAD 
 - 
WRITEpublic static final Permission WRITE 
 - 
ADDpublic static final Permission ADD 
 - 
SECURITYpublic static final Permission SECURITY 
 - 
IMMUTABLEpublic static final Permission IMMUTABLE 
 - 
DELETEpublic static final Permission DELETE 
 - 
RENAMEpublic static final Permission RENAME 
 - 
IMPORTpublic static final Permission IMPORT 
 - 
EXPORTpublic static final Permission EXPORT 
 - 
SIGNpublic static final Permission SIGN 
 - 
ARCHIVEpublic static final Permission ARCHIVE 
 - 
WORKFLOWpublic static final Permission WORKFLOW 
 - 
CALENDARpublic static final Permission CALENDAR 
 - 
SUBSCRIPTIONpublic static final Permission SUBSCRIPTION 
 - 
PRINTpublic static final Permission PRINT 
 - 
PASSWORDpublic static final Permission PASSWORD 
 - 
MOVEpublic static final Permission MOVE 
 - 
EMAILpublic static final Permission EMAIL 
 - 
AUTOMATIONpublic static final Permission AUTOMATION 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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
 
 - 
getNamepublic String getName() 
 - 
getMaskpublic int getMask() 
 - 
matchpublic boolean match(int permission) 
 - 
valueOfpublic static Permission valueOf(int mask) 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:
- mask- 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
 
 - 
allpublic static Set<Permission> all() 
 - 
forGuestspublic static Set<Permission> forGuests() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- Enum<Permission>
 
 
- 
 
-