public final class ClusterTagPermission extends Permission
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD
The action string
add. |
| Constructor and Description |
|---|
ClusterTagPermission(String tag,
String actions)
Defines the authority to add a tag to the NodeStatus service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines the equality of two
ClusterTagPermission objects. |
String |
getActions()
Returns the canonical string representation of the
ClusterTagPermission action. |
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Permission p)
Determines if the specified permission is implied by this object.
|
PermissionCollection |
newPermissionCollection()
Returns a new
PermissionCollection object suitable for storing
ClusterTagPermission objects. |
checkGuard, getName, toStringpublic static final String ADD
add.public boolean implies(Permission p)
This method checks that the tag of the target is implied by the tag name of this object.
implies in class Permissionp - The target permission to interrogate.true if the specified ClusterTagPermission action
is implied by this object; false otherwise.public String getActions()
ClusterTagPermission action.
Always returns the ADD action.
getActions in class PermissionClusterTagPermission actions.public PermissionCollection newPermissionCollection()
PermissionCollection object suitable for storing
ClusterTagPermission objects.newPermissionCollection in class PermissionPermissionCollection object.public boolean equals(Object obj)
ClusterTagPermission objects. This
method checks that specified ClusterTagPermission has the same
tag as this ClusterTagPermission object.equals in class Permissionobj - 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.public int hashCode()
hashCode in class PermissionCopyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0