com.gentics.contentnode.rest.model
Enum Privilege

java.lang.Object
  extended by java.lang.Enum<Privilege>
      extended by 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
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

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


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


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

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 name
NullPointerException - if the argument is null

getPermBit

public int getPermBit()
Get the perm bit

Returns:
perm bit

getPrivilege

public static Privilege getPrivilege(int permBit)
Get the privilege by perm bit

Parameters:
permBit - perm bit
Returns:
privilege or null


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.