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
-
Constructor Summary
ConstructorDescriptionClusterTagPermission
(String tag, String actions) Defines the authority to add a tag to the NodeStatus service. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines the equality of twoClusterTagPermission
objects.Returns the canonical string representation of theClusterTagPermission
action.int
hashCode()
Returns the hash code value for this object.boolean
Determines if the specified permission is implied by this object.Returns a newPermissionCollection
object suitable for storingClusterTagPermission
objects.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:
implies
in classPermission
- Parameters:
p
- The target permission to interrogate.- Returns:
true
if the specifiedClusterTagPermission
action is implied by this object;false
otherwise.
-
getActions
Returns the canonical string representation of theClusterTagPermission
action.Always returns the ADD action.
- Specified by:
getActions
in classPermission
- Returns:
- Canonical string representation of the
ClusterTagPermission
actions.
-
newPermissionCollection
Returns a newPermissionCollection
object suitable for storingClusterTagPermission
objects.- Overrides:
newPermissionCollection
in classPermission
- Returns:
- A new
PermissionCollection
object.
-
equals
Determines the equality of twoClusterTagPermission
objects. This method checks that specifiedClusterTagPermission
has the same tag as thisClusterTagPermission
object.- Specified by:
equals
in classPermission
- Parameters:
obj
- The object to test for equality with thisClusterTagPermission
object.- Returns:
true
ifobj
is aClusterTagPermission
, and has the same tag as thisClusterTagPermission
object;false
otherwise.
-
hashCode
public int hashCode()Returns the hash code value for this object.- Specified by:
hashCode
in classPermission
- Returns:
- A hash code value for this object.
-