Enum Privilege
- java.lang.Object
-
- java.lang.Enum<Privilege>
-
- com.gentics.contentnode.rest.model.Privilege
-
- All Implemented Interfaces:
Serializable
,Comparable<Privilege>
public enum Privilege extends Enum<Privilege> implements Serializable
Enumeration for privileges (permissions)- Author:
- norbert
-
-
Enum Constant Summary
Enum Constants Enum Constant Description assignpermissions
Permission to assign permissionscreatefile
Permission to create files/imagescreatefolder
Permission to create folderscreatepage
Permission to create pagescreatetemplate
Permission to create templatesdeletefile
Permission to delete filesdeletefolder
Permission to delete a folderdeletepage
Permission to delete pagesdeletetemplate
Permission to delete templatesimportpage
Permission to import pagesinheritance
Permission to change object inheritancelinktemplate
Permission to link templateslinkworkflow
Permission to link workflowspublishpage
Permission to publish pagessynchronizechannel
Permission to synchronize objects between channelstranslatepage
Permission to translate pagesupdatefile
Permission to update filesupdatefolder
Permission to update a folderupdatepage
Permission to update pagesupdatetagtypes
Permission to update tag typesupdatetemplate
Permission to update templatesviewfile
Permission to view files/imagesviewfolder
Permission to view a folderviewpage
Permission to view pagesviewtemplate
Permission to view templateswastebin
Permission to view the wastebin
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<Privilege>
forRoleCheckType(int roleCheckType)
Get the privileges for the given role check typestatic Set<Privilege>
getAvailable(int objType)
Get the privileges available on objects of the given typeint
getPermBit()
Get the perm bitstatic Privilege
getPrivilege(int permBit)
Get the privilege by perm bitint
getRoleBit()
Get the role bitint
getRoleCheckType()
Get the role check typestatic Privilege
valueOf(String name)
Returns the enum constant of this type with the specified name.static Privilege[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
viewfolder
public static final Privilege viewfolder
Permission to view a folder
-
createfolder
public static final Privilege createfolder
Permission to create folders
-
updatefolder
public static final Privilege updatefolder
Permission to update a folder
-
deletefolder
public static final Privilege deletefolder
Permission to delete a folder
-
assignpermissions
public static final Privilege assignpermissions
Permission to assign permissions
-
viewpage
public static final Privilege viewpage
Permission to view pages
-
createpage
public static final Privilege createpage
Permission to create pages
-
updatepage
public static final Privilege updatepage
Permission to update pages
-
deletepage
public static final Privilege deletepage
Permission to delete pages
-
publishpage
public static final Privilege publishpage
Permission to publish pages
-
translatepage
public static final Privilege translatepage
Permission to translate pages
-
viewfile
public static final Privilege viewfile
Permission to view files/images
-
createfile
public static final Privilege createfile
Permission to create files/images
-
updatefile
public static final Privilege updatefile
Permission to update files
-
deletefile
public static final Privilege deletefile
Permission to delete files
-
viewtemplate
public static final Privilege viewtemplate
Permission to view templates
-
createtemplate
public static final Privilege createtemplate
Permission to create templates
-
linktemplate
public static final Privilege linktemplate
Permission to link templates
-
updatetemplate
public static final Privilege updatetemplate
Permission to update templates
-
deletetemplate
public static final Privilege deletetemplate
Permission to delete templates
-
updatetagtypes
public static final Privilege updatetagtypes
Permission to update tag types
-
inheritance
public static final Privilege inheritance
Permission to change object inheritance
-
importpage
public static final Privilege importpage
Permission to import pages
-
linkworkflow
public static final Privilege linkworkflow
Permission to link workflows
-
synchronizechannel
public static final Privilege synchronizechannel
Permission to synchronize objects between channels
-
wastebin
public static final Privilege wastebin
Permission to view the wastebin
-
-
Method Detail
-
values
public static Privilege[] 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 (Privilege c : Privilege.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Privilege 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 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
public static Privilege getPrivilege(int permBit)
Get the privilege by perm bit- Parameters:
permBit
- perm bit- Returns:
- privilege or null
-
getAvailable
public static Set<Privilege> getAvailable(int objType)
Get the privileges available on objects of the given type- Parameters:
objType
- object type- Returns:
- set of available privileges
-
-