public enum Privilege extends Enum<Privilege> implements Serializable
Enum Constant and Description |
---|
assignpermissions
Permission to assign permissions
|
createfile
Permission to create files/images
|
createfolder
Permission to create folders
|
createpage
Permission to create pages
|
createtemplate
Permission to create templates
|
deletefile
Permission to delete files
|
deletefolder
Permission to delete a folder
|
deletepage
Permission to delete pages
|
deletetemplate
Permission to delete templates
|
importpage
Permission to import pages
|
inheritance
Permission to change object inheritance
|
linktemplate
Permission to link templates
|
linkworkflow
Permission to link workflows
|
publishpage
Permission to publish pages
|
synchronizechannel
Permission to synchronize objects between channels
|
translatepage
Permission to translate pages
|
updatefile
Permission to update files
|
updatefolder
Permission to update a folder
|
updatepage
Permission to update pages
|
updatetagtypes
Permission to update tag types
|
updatetemplate
Permission to update templates
|
viewfile
Permission to view files/images
|
viewfolder
Permission to view a folder
|
viewpage
Permission to view pages
|
viewtemplate
Permission to view templates
|
wastebin
Permission to view the wastebin
|
Modifier and Type | Method and Description |
---|---|
static Set<Privilege> |
forRoleCheckType(int roleCheckType)
Get the privileges for the given role check type
|
static Set<Privilege> |
getAvailable(int objType)
Get the privileges available on objects of the given type
|
int |
getPermBit()
Get the perm bit
|
static Privilege |
getPrivilege(int permBit)
Get the privilege by perm bit
|
int |
getRoleBit()
Get the role bit
|
int |
getRoleCheckType()
Get the role check type
|
static 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.
|
public static final Privilege viewfolder
public static final Privilege createfolder
public static final Privilege updatefolder
public static final Privilege deletefolder
public static final Privilege assignpermissions
public static final Privilege viewpage
public static final Privilege createpage
public static final Privilege updatepage
public static final Privilege deletepage
public static final Privilege publishpage
public static final Privilege translatepage
public static final Privilege viewfile
public static final Privilege createfile
public static final Privilege updatefile
public static final Privilege deletefile
public static final Privilege viewtemplate
public static final Privilege createtemplate
public static final Privilege linktemplate
public static final Privilege updatetemplate
public static final Privilege deletetemplate
public static final Privilege updatetagtypes
public static final Privilege inheritance
public static final Privilege importpage
public static final Privilege linkworkflow
public static final Privilege synchronizechannel
public static final Privilege wastebin
public static Privilege[] values()
for (Privilege c : Privilege.values()) System.out.println(c);
public static Privilege valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getPermBit()
public int getRoleCheckType()
public int getRoleBit()
public static Privilege getPrivilege(int permBit)
permBit
- perm bitpublic static Set<Privilege> getAvailable(int objType)
objType
- object typeCopyright © 2024 Gentics Software. All rights reserved.