public final class ConfigurationPermission extends BasicPermission
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURE
Provides permission to create new configurations for other bundles as
well as manipulate them.
|
static String |
TARGET
The permission to be updated, that is, act as a Managed Service or
Managed Service Factory.
|
Constructor and Description |
---|
ConfigurationPermission(String name,
String actions)
Create a new ConfigurationPermission.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines the equality of two
ConfigurationPermission objects. |
String |
getActions()
Returns the canonical string representation of the
ConfigurationPermission actions. |
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Permission p)
Determines if a
ConfigurationPermission object "implies" the
specified permission. |
PermissionCollection |
newPermissionCollection()
Returns a new
PermissionCollection object suitable for storing
ConfigurationPermission s. |
checkGuard, getName, toString
public static final String CONFIGURE
public static final String TARGET
public ConfigurationPermission(String name, String actions)
name
- Name of the permission. Wildcards ('*'
) are allowed
in the name. During implies(Permission)
, the name is
matched to the requested permission using the substring matching
rules used by Filter
s.actions
- Comma separated list of CONFIGURE
,
TARGET
(case insensitive).public boolean implies(Permission p)
ConfigurationPermission
object "implies" the
specified permission.implies
in class BasicPermission
p
- The target permission to check.true
if the specified permission is implied by this
object; false
otherwise.public boolean equals(Object obj)
ConfigurationPermission
objects.
Two ConfigurationPermission
objects are equal.
equals
in class BasicPermission
obj
- The object being compared for equality with this object.true
if obj
is equivalent to this
ConfigurationPermission
; false
otherwise.public int hashCode()
hashCode
in class BasicPermission
public String getActions()
ConfigurationPermission
actions.
Always returns present ConfigurationPermission
actions in the
following order: "configure", "target"
getActions
in class BasicPermission
ConfigurationPermission
actions.public PermissionCollection newPermissionCollection()
PermissionCollection
object suitable for storing
ConfigurationPermission
s.newPermissionCollection
in class BasicPermission
PermissionCollection
object.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0