Enum Class ACEType

java.lang.Object
java.lang.Enum<ACEType>
org.alfresco.repo.security.permissions.ACEType
All Implemented Interfaces:
Serializable, Comparable<ACEType>, Constable

public enum ACEType extends Enum<ACEType>
The ACE Type
Author:
andyh
  • Enum Constant Details

    • ALL

      public static final ACEType ALL
      ACE applies to the object and its children
    • OBJECT

      public static final ACEType OBJECT
      ACE applies to the object only
    • CHILDREN

      public static final ACEType CHILDREN
      ACE only applies to children
  • Method Details

    • values

      public static ACEType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ACEType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public abstract int getId()
      Get the id for the ACEType stored in the DB.
      Returns:
      int
    • getACETypeFromId

      public static ACEType getACETypeFromId(int id)
      Get the ACEType from the value stored in the DB.
      Parameters:
      id - int
      Returns:
      ACEType