Package org.osgi.service.clusterinfo
Class ClusterTagPermission
- java.lang.Object
-
- java.security.Permission
-
- org.osgi.service.clusterinfo.ClusterTagPermission
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Guard
public final class ClusterTagPermission extends java.security.PermissionA 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.StringADDThe action stringadd.
-
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 booleanequals(java.lang.Object obj)Determines the equality of twoClusterTagPermissionobjects.java.lang.StringgetActions()Returns the canonical string representation of theClusterTagPermissionaction.inthashCode()Returns the hash code value for this object.booleanimplies(java.security.Permission p)Determines if the specified permission is implied by this object.java.security.PermissionCollectionnewPermissionCollection()Returns a newPermissionCollectionobject suitable for storingClusterTagPermissionobjects.
-
-
-
Field Detail
-
ADD
public static final java.lang.String ADD
The action stringadd.- See Also:
- Constant Field Values
-
-
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:
impliesin classjava.security.Permission- Parameters:
p- The target permission to interrogate.- Returns:
trueif the specifiedClusterTagPermissionaction is implied by this object;falseotherwise.
-
getActions
public java.lang.String getActions()
Returns the canonical string representation of theClusterTagPermissionaction.Always returns the ADD action.
- Specified by:
getActionsin classjava.security.Permission- Returns:
- Canonical string representation of the
ClusterTagPermissionactions.
-
newPermissionCollection
public java.security.PermissionCollection newPermissionCollection()
Returns a newPermissionCollectionobject suitable for storingClusterTagPermissionobjects.- Overrides:
newPermissionCollectionin classjava.security.Permission- Returns:
- A new
PermissionCollectionobject.
-
equals
public boolean equals(java.lang.Object obj)
Determines the equality of twoClusterTagPermissionobjects. This method checks that specifiedClusterTagPermissionhas the same tag as thisClusterTagPermissionobject.- Specified by:
equalsin classjava.security.Permission- Parameters:
obj- The object to test for equality with thisClusterTagPermissionobject.- Returns:
trueifobjis aClusterTagPermission, and has the same tag as thisClusterTagPermissionobject;falseotherwise.
-
hashCode
public int hashCode()
Returns the hash code value for this object.- Specified by:
hashCodein classjava.security.Permission- Returns:
- A hash code value for this object.
-
-