Class ClusterTagPermission

java.lang.Object
java.security.Permission
org.osgi.service.clusterinfo.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.
      Parameters:
      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
      Parameters:
      p - The target permission to interrogate.
      Returns:
      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
      Returns:
      Canonical string representation of the ClusterTagPermission actions.
    • newPermissionCollection

      public PermissionCollection newPermissionCollection()
      Returns a new PermissionCollection object suitable for storing ClusterTagPermission objects.
      Overrides:
      newPermissionCollection in class Permission
      Returns:
      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
      Parameters:
      obj - The object to test for equality with this ClusterTagPermission object.
      Returns:
      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
      Returns:
      A hash code value for this object.