Class ClusterTagPermission

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Guard

    public final class ClusterTagPermission
    extends java.security.Permission
    A bundle's authority to add a tag to a NodeStatus service.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ADD
      The action string add.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClusterTagPermission​(java.lang.String tag, java.lang.String actions)
      Defines the authority to add a tag to the NodeStatus service.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Determines the equality of two ClusterTagPermission objects.
      java.lang.String getActions()
      Returns the canonical string representation of the ClusterTagPermission action.
      int hashCode()
      Returns the hash code value for this object.
      boolean implies​(java.security.Permission p)
      Determines if the specified permission is implied by this object.
      java.security.PermissionCollection newPermissionCollection()
      Returns a new PermissionCollection object suitable for storing ClusterTagPermission objects.
      • Methods inherited from class java.security.Permission

        checkGuard, getName, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • ClusterTagPermission

        public ClusterTagPermission​(java.lang.String tag,
                                    java.lang.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 Detail

      • implies

        public boolean implies​(java.security.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 java.security.Permission
        Parameters:
        p - The target permission to interrogate.
        Returns:
        true if the specified ClusterTagPermission action is implied by this object; false otherwise.
      • getActions

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

        Always returns the ADD action.

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

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

        public boolean equals​(java.lang.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 java.security.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 java.security.Permission
        Returns:
        A hash code value for this object.