|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Privilege>
com.gentics.contentnode.rest.model.Privilege
public enum Privilege
Enumeration for privileges (permissions)
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic int getPermBit()
public static Privilege getPrivilege(int permBit)
permBit
- perm bit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |