Enum Class Privilege
- All Implemented Interfaces:
Serializable
,Comparable<Privilege>
,java.lang.constant.Constable
Enumeration for privileges (permissions)
- Author:
- norbert
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPermission to assign permissionsPermission to create files/imagesPermission to create foldersPermission to create pagesPermission to create templatesPermission to delete filesPermission to delete a folderPermission to delete pagesPermission to delete templatesPermission to import pagesPermission to change object inheritancePermission to link templatesPermission to link workflowsPermission to publish pagesPermission to synchronize objects between channelsPermission to translate pagesPermission to update filesPermission to update a folderPermission to update pagesPermission to update tag typesPermission to update templatesPermission to view files/imagesPermission to view a folderPermission to view pagesPermission to view templatesPermission to view the wastebin -
Method Summary
Modifier and TypeMethodDescriptionforRoleCheckType
(int roleCheckType) Get the privileges for the given role check typegetAvailable
(int objType) Get the privileges available on objects of the given typeint
Get the perm bitstatic Privilege
getPrivilege
(int permBit) Get the privilege by perm bitint
Get the role bitint
Get the role check typestatic Privilege
Returns the enum constant of this class with the specified name.static Privilege[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
viewfolder
Permission to view a folder -
createfolder
Permission to create folders -
updatefolder
Permission to update a folder -
deletefolder
Permission to delete a folder -
assignpermissions
Permission to assign permissions -
viewpage
Permission to view pages -
createpage
Permission to create pages -
updatepage
Permission to update pages -
deletepage
Permission to delete pages -
publishpage
Permission to publish pages -
translatepage
Permission to translate pages -
viewfile
Permission to view files/images -
createfile
Permission to create files/images -
updatefile
Permission to update files -
deletefile
Permission to delete files -
viewtemplate
Permission to view templates -
createtemplate
Permission to create templates -
linktemplate
Permission to link templates -
updatetemplate
Permission to update templates -
deletetemplate
Permission to delete templates -
updatetagtypes
Permission to update tag types -
inheritance
Permission to change object inheritance -
importpage
Permission to import pages -
linkworkflow
Permission to link workflows -
synchronizechannel
Permission to synchronize objects between channels -
wastebin
Permission to view the wastebin
-
-
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
-
getPermBit
public int getPermBit()Get the perm bit- Returns:
- perm bit
-
getRoleCheckType
public int getRoleCheckType()Get the role check type- Returns:
- role check type
-
getRoleBit
public int getRoleBit()Get the role bit- Returns:
- role bit
-
getPrivilege
Get the privilege by perm bit- Parameters:
permBit
- perm bit- Returns:
- privilege or null
-
getAvailable
Get the privileges available on objects of the given type- Parameters:
objType
- object type- Returns:
- set of available privileges
-
forRoleCheckType
Get the privileges for the given role check type- Parameters:
roleCheckType
- role check type- Returns:
- set of privileges
-