public enum Privilege extends Enum<Privilege> implements Serializable
Enum Constant and Description |
---|
createfolder
Permission to create folders
|
createpage
Permission to create pages
|
createtemplate
Permission to create templates
|
deletefolder
Permission to delete a folder
|
deletepage
Permission to delete pages
|
deletetemplate
Permission to delete templates
|
linktemplate
Permission to link templates
|
publishpage
Permission to publish pages
|
updatefolder
Permission to update a folder
|
updatepage
Permission to update pages
|
updatetemplate
Permission to update templates
|
viewfolder
Permission to view a folder
|
viewpage
Permission to view pages
|
viewtemplate
Permission to view templates
|
Modifier and Type | Method and Description |
---|---|
int |
getPermBit()
Get the perm bit
|
static Privilege |
getPrivilege(int permBit)
Get the privilege by perm bit
|
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 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 viewtemplate
public static final Privilege createtemplate
public static final Privilege linktemplate
public static final Privilege updatetemplate
public static final Privilege deletetemplate
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 static Privilege getPrivilege(int permBit)
permBit
- perm bitCopyright © 2015 Gentics Software GmbH. All rights reserved.