Enum Privilege

    • 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 name
        NullPointerException - 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
      • forRoleCheckType

        public static Set<Privilege> forRoleCheckType​(int roleCheckType)
        Get the privileges for the given role check type
        Parameters:
        roleCheckType - role check type
        Returns:
        set of privileges