Enum AccessPermission

java.lang.Object
java.lang.Enum<AccessPermission>
com.orchestranetworks.addon.dama.ext.enumeration.AccessPermission
All Implemented Interfaces:
Serializable, Comparable<AccessPermission>, Constable

public enum AccessPermission extends Enum<AccessPermission>
Defines permissions to allow upload or delete of the digital asset.

The possible types are:

  • ALLOWED Allow to upload/delete the digital asset.
  • NOT_ALLOWED Not allow to upload/delete the digital asset.
Since:
1.6.0
  • Enum Constant Details

    • ALLOWED

      public static final AccessPermission ALLOWED
      Allows execution of operations on digital asset.
    • NOT_ALLOWED

      public static final AccessPermission NOT_ALLOWED
      Prevents execution of operations on digital asset.
  • Method Details

    • values

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

      public static AccessPermission 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
    • parse

      public static AccessPermission parse(String flag)
      Parses the specified flag and returns the corresponding AccessPermission instance.
    • min

      public AccessPermission min(AccessPermission otherPermission)
      Compares permissions and returns the permission with the highest priority.
      Parameters:
      otherPermission - the additional permission used for comparison
    • convertBooleanToAccessPermission

      public static AccessPermission convertBooleanToAccessPermission(Boolean booleanValue)
      Converts a boolean value to an AccessPermission.
    • getFlag

      public String getFlag()
      Identifies this permission.
    • getLabel

      public com.onwbp.base.text.UserMessage getLabel()
      Returns a developer-friendly string label.
    • getPriority

      public int getPriority()
      Returns the permission's priority.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AccessPermission>
    • isAllowed

      public boolean isAllowed()
    • isNotAllowed

      public boolean isNotAllowed()