Class ConfigurationPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.osgi.service.cm.ConfigurationPermission
- All Implemented Interfaces:
Serializable, Guard
Indicates a bundle's authority to configure bundles.
This permission has only a single action: CONFIGURE.
- Since:
- 1.2
- Version:
- $Revision: 6381 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationPermission(String name, String actions) Create a new ConfigurationPermission. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines the equality of twoConfigurationPermissionobjects.Returns the canonical string representation of theConfigurationPermissionactions.inthashCode()Returns the hash code value for this object.booleanDetermines if aConfigurationPermissionobject "implies" the specified permission.Returns a newPermissionCollectionobject suitable for storingConfigurationPermissions.Methods inherited from class Permission
checkGuard, getName, toString
-
Field Details
-
CONFIGURE
-
TARGET
The permission to be updated, that is, act as a Managed Service or Managed Service Factory. The action string "target".- Since:
- 1.4
- See Also:
-
-
Constructor Details
-
ConfigurationPermission
-
-
Method Details
-
implies
Determines if aConfigurationPermissionobject "implies" the specified permission.- Overrides:
impliesin classBasicPermission- Parameters:
p- The target permission to check.- Returns:
trueif the specified permission is implied by this object;falseotherwise.
-
equals
Determines the equality of twoConfigurationPermissionobjects.Two
ConfigurationPermissionobjects are equal.- Overrides:
equalsin classBasicPermission- Parameters:
obj- The object being compared for equality with this object.- Returns:
trueifobjis equivalent to thisConfigurationPermission;falseotherwise.
-
hashCode
public int hashCode()Returns the hash code value for this object.- Overrides:
hashCodein classBasicPermission- Returns:
- Hash code value for this object.
-
getActions
Returns the canonical string representation of theConfigurationPermissionactions.Always returns present
ConfigurationPermissionactions in the following order:CONFIGURE- Overrides:
getActionsin classBasicPermission- Returns:
- Canonical string representation of the
ConfigurationPermissionactions.
-
newPermissionCollection
Returns a newPermissionCollectionobject suitable for storingConfigurationPermissions.- Overrides:
newPermissionCollectionin classBasicPermission- Returns:
- A new
PermissionCollectionobject.
-