Class Privileges.CreateTag

All Implemented Interfaces:
Privilege
Enclosing class:
Privileges

public static class Privileges.CreateTag extends Privileges.GenericPrivilege<Privileges.CreateTag>
The privilege to create a tag
  • Constructor Details

    • CreateTag

      protected CreateTag(Privilege.Condition condition, Privilege.Name name)
      Constructor for GenericPrivilege.
      Parameters:
      condition - the condition of the privilege
      name - the name of the privilege
  • Method Details

    • allow

      public static Privileges.CreateTag allow()
      Returns:
      The instance with allow condition of the privilege.
    • deny

      public static Privileges.CreateTag deny()
      Returns:
      The instance with deny condition of the privilege.
    • canBindTo

      public boolean canBindTo(MetadataObject.Type type)
      Description copied from interface: Privilege
      If the privilege can bind to a securable object, then this method will return true, otherwise false.
      Parameters:
      type - The securable object type.
      Returns:
      It will return true if the privilege can bind to a securable object, otherwise false.