Class ClusterTagPermission

All Implemented Interfaces:
Serializable, Guard

public final class ClusterTagPermission extends Permission
A bundle's authority to add a tag to a NodeStatus service.
See Also:
  • Field Details

  • Constructor Details

    • ClusterTagPermission

      public ClusterTagPermission(String tag, String actions)
      Defines the authority to add a tag to the NodeStatus service.
      tag - Give permission to add this tag, use * wildcard to give permission to add any tag.
      actions - add.
  • Method Details

    • implies

      public boolean implies(Permission p)
      Determines if the specified permission is implied by this object.

      This method checks that the tag of the target is implied by the tag name of this object.

      Specified by:
      implies in class Permission
      p - The target permission to interrogate.
      true if the specified ClusterTagPermission action is implied by this object; false otherwise.
    • getActions

      public String getActions()
      Returns the canonical string representation of the ClusterTagPermission action.

      Always returns the ADD action.

      Specified by:
      getActions in class Permission
      Canonical string representation of the ClusterTagPermission actions.
    • newPermissionCollection

      public PermissionCollection newPermissionCollection()
      Returns a new PermissionCollection object suitable for storing ClusterTagPermission objects.
      newPermissionCollection in class Permission
      A new PermissionCollection object.
    • equals

      public boolean equals(Object obj)
      Determines the equality of two ClusterTagPermission objects. This method checks that specified ClusterTagPermission has the same tag as this ClusterTagPermission object.
      Specified by:
      equals in class Permission
      obj - The object to test for equality with this ClusterTagPermission object.
      true if obj is a ClusterTagPermission, and has the same tag as this ClusterTagPermission object; false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash code value for this object.
      Specified by:
      hashCode in class Permission
      A hash code value for this object.