Package org.osgi.service.clusterinfo
Class ClusterTagPermission
java.lang.Object
java.security.Permission
org.osgi.service.clusterinfo.ClusterTagPermission
- All Implemented Interfaces:
Serializable,Guard
A bundle's authority to add a tag to a NodeStatus service.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClusterTagPermission(String tag, String actions) Defines the authority to add a tag to the NodeStatus service. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines the equality of twoClusterTagPermissionobjects.Returns the canonical string representation of theClusterTagPermissionaction.inthashCode()Returns the hash code value for this object.booleanDetermines if the specified permission is implied by this object.Returns a newPermissionCollectionobject suitable for storingClusterTagPermissionobjects.Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
Field Details
-
ADD
The action stringadd.- See Also:
-
-
Constructor Details
-
ClusterTagPermission
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
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 classPermission- Parameters:
p- The target permission to interrogate.- Returns:
trueif the specifiedClusterTagPermissionaction is implied by this object;falseotherwise.
-
getActions
Returns the canonical string representation of theClusterTagPermissionaction.Always returns the ADD action.
- Specified by:
getActionsin classPermission- Returns:
- Canonical string representation of the
ClusterTagPermissionactions.
-
newPermissionCollection
Returns a newPermissionCollectionobject suitable for storingClusterTagPermissionobjects.- Overrides:
newPermissionCollectionin classPermission- Returns:
- A new
PermissionCollectionobject.
-
equals
Determines the equality of twoClusterTagPermissionobjects. This method checks that specifiedClusterTagPermissionhas the same tag as thisClusterTagPermissionobject.- Specified by:
equalsin classPermission- 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 classPermission- Returns:
- A hash code value for this object.
-