Additional top-level class in compilation unit: AdminPermissionCollection.
Action Methods
class Bundle.loadClass
execute Bundle.start
Bundle.stop
BundleStartLevel.setStartLevel
extensionLifecycle BundleContext.installBundle for extension bundles
Bundle.update for extension bundles
Bundle.uninstall for extension bundles
lifecycle BundleContext.installBundle
Bundle.update
Bundle.uninstall
listener BundleContext.addBundleListener for
SynchronousBundleListener
BundleContext.removeBundleListener for
SynchronousBundleListener
metadata Bundle.getHeaders
Bundle.getLocation
resolve FrameworkWiring.refreshBundles
FrameworkWiring.resolveBundles
resource Bundle.getResource
Bundle.getResources
Bundle.getEntry
Bundle.getEntryPaths
Bundle.findEntries
Bundle resource/entry URL creation
startlevel FrameworkStartLevel.setStartLevel
FrameworkStartLevel.setInitialBundleStartLevel
context Bundle.getBundleContext
weave WovenClass.getBytes
WovenClass.setBytes
WovenClass.getDynamicImports for modification
The special action "*" will represent all actions. The
resolve action is implied by the class, execute and
resource actions.
The name of this permission is a filter expression. The filter gives access to the following attributes:
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv transient int | action_mask
The actions mask. |
| private static final int | |
| pack-priv static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private volatile String | actions
The actions in canonical form. |
| pack-priv final transient Bundle | bundle
The bundle governed by this AdminPermission - only used if filter == null |
| public static final String | CLASS
The action string |
| public static final String | CONTEXT
The action string |
| public static final String | EXECUTE
The action string |
| public static final String | EXTENSIONLIFECYCLE
The action string |
| pack-priv transient Filter | filter
If this AdminPermission was constructed with a filter, this holds a Filter matching object used to evaluate the filter in implies. |
| public static final String | LIFECYCLE
The action string |
| public static final String | LISTENER
The action string |
| public static final String | METADATA
The action string |
| private transient volatile Map | properties
This map holds the properties of the permission, used to match a filter in implies. |
| private static final ThreadLocal | recurse
ThreadLocal used to determine if we have recursively called getProperties. |
| public static final String | RESOLVE
The action string |
| public static final String | RESOURCE
The action string |
| pack-priv static final long | |
| public static final String | STARTLEVEL
The action string |
| public static final String | WEAVE
The action string |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AdminPermission(String
A filter expression that can use signer, location, id, and
name keys. A value of "*" or filter, String null matches all
bundle. Filter attribute names are processed in a case sensitive
manner.class, execute, extensionLifecycle
, lifecycle, listener, metadata,
resolve , resource, startlevel,
context or weave. A value of "*" or null
indicates all actions.Create a new AdminPermission. |
| public | AdminPermission(Bundle
A bundle. bundle, String class, execute, extensionLifecycle
, lifecycle, listener, metadata,
resolve , resource, startlevel,
context, weave. A value of "*" or null
indicates all actions.Creates a new requested |
| pack-priv | AdminPermission(Filter
name filter or filter, int null for wildcard.action mask mask)Package private constructor used by AdminPermissionCollection. |
| Modifier and Type | Method and Description |
|---|---|
| private static String | Returns: permission name.Bundle to use to create permission name. bundle)Create a permission name from a Bundle |
| public boolean | Returns: true if obj is equivalent to this
AdminPermission; false otherwise.The object being compared for equality with this object. obj)Overrides java. Determines the equality of two |
| public String | Returns: Canonical string representation of theAdminPermission
actions.Overrides java. Returns the canonical string representation of the
|
| private Map | Returns: a map of properties for this bundleCalled by |
| public int | Returns: Hash code value for this object.Overrides java. Returns the hash code value for this object. |
| public boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The requested permission. p)Overrides java. Determines if the specified permission is implied by this object. |
| pack-priv boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The requested AdminPermision which has already be
validated as a proper argument. The requested AdminPermission must
not have a filter expression. requested, int The effective actions with which to start. effective)Internal implies method. |
| public PermissionCollection | Returns: A newPermissionCollection object.Overrides java. Returns a new |
| private static int | Returns: action mask.Action string. actions)Parse action string into action mask. |
| private static Filter | Returns: a Filter for this bundle. If the specified filterString isnull or equals "*", then null is returned to
indicate a wildcard.The filter string to parse. filterString)Parse filter string into a Filter object. |
| private synchronized void | readObject(ObjectInputStream
the s)ObjectInputStream from which data is readHides java. readObject is called to restore the state of this permission from a stream. |
| private void | setTransients(Filter
Permission's filter or filter, int null for wildcard.action mask mask)Called by constructors and when deserialized. |
| private synchronized void | writeObject(ObjectOutputStream s)
WriteObject is called to save the state of this permission object to a stream. |
| ACTION_ALL | back to summary |
|---|---|
| private static final int ACTION_ALL | |
| ACTION_CLASS | back to summary |
|---|---|
| private static final int ACTION_CLASS | |
| ACTION_CONTEXT | back to summary |
|---|---|
| private static final int ACTION_CONTEXT | |
| ACTION_EXECUTE | back to summary |
|---|---|
| private static final int ACTION_EXECUTE | |
| ACTION_EXTENSIONLIFECYCLE | back to summary |
|---|---|
| private static final int ACTION_EXTENSIONLIFECYCLE | |
| ACTION_LIFECYCLE | back to summary |
|---|---|
| private static final int ACTION_LIFECYCLE | |
| ACTION_LISTENER | back to summary |
|---|---|
| private static final int ACTION_LISTENER | |
| action_mask | back to summary |
|---|---|
| pack-priv transient int action_mask The actions mask. | |
| ACTION_METADATA | back to summary |
|---|---|
| private static final int ACTION_METADATA | |
| ACTION_NONE | back to summary |
|---|---|
| pack-priv static final int ACTION_NONE | |
| ACTION_RESOLVE | back to summary |
|---|---|
| private static final int ACTION_RESOLVE | |
| ACTION_RESOURCE | back to summary |
|---|---|
| private static final int ACTION_RESOURCE | |
| ACTION_STARTLEVEL | back to summary |
|---|---|
| private static final int ACTION_STARTLEVEL | |
| ACTION_WEAVE | back to summary |
|---|---|
| private static final int ACTION_WEAVE | |
| actions | back to summary |
|---|---|
| private volatile String actions The actions in canonical form. | |
| bundle | back to summary |
|---|---|
| pack-priv final transient Bundle bundle The bundle governed by this AdminPermission - only used if filter == null | |
| CLASS | back to summary |
|---|---|
| public static final String CLASS The action string
| |
| CONTEXT | back to summary |
|---|---|
| public static final String CONTEXT The action string
| |
| EXECUTE | back to summary |
|---|---|
| public static final String EXECUTE The action string
| |
| EXTENSIONLIFECYCLE | back to summary |
|---|---|
| public static final String EXTENSIONLIFECYCLE The action string
| |
| filter | back to summary |
|---|---|
| pack-priv transient Filter filter If this AdminPermission was constructed with a filter, this holds a Filter matching object used to evaluate the filter in implies. | |
| LIFECYCLE | back to summary |
|---|---|
| public static final String LIFECYCLE The action string
| |
| LISTENER | back to summary |
|---|---|
| public static final String LISTENER The action string
| |
| METADATA | back to summary |
|---|---|
| public static final String METADATA The action string
| |
| properties | back to summary |
|---|---|
| private transient volatile Map<String, Object> properties This map holds the properties of the permission, used to match a filter in implies. This is not initialized until necessary, and then cached in this object. | |
| recurse | back to summary |
|---|---|
| private static final ThreadLocal<Bundle> recurse ThreadLocal used to determine if we have recursively called getProperties. | |
| RESOLVE | back to summary |
|---|---|
| public static final String RESOLVE The action string
| |
| RESOURCE | back to summary |
|---|---|
| public static final String RESOURCE The action string
| |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| STARTLEVEL | back to summary |
|---|---|
| public static final String STARTLEVEL The action string
| |
| WEAVE | back to summary |
|---|---|
| public static final String WEAVE The action string
| |
| AdminPermission | back to summary |
|---|---|
| public AdminPermission() Creates a new | |
| AdminPermission | back to summary |
|---|---|
| public AdminPermission(String filter, String actions) Create a new AdminPermission. This constructor must only be used to create a permission that is going to be checked. Examples: (signer=\*,o=ACME,c=US) (&(signer=\*,o=ACME,c=US)(name=com.acme.*) (location=http://www.acme.com/bundles/*)) (id>=1) When a signer key is used within the filter expression the signer value must escape the special filter chars ('*', '(', ')'). Null arguments are equivalent to "*".
| |
| AdminPermission | back to summary |
|---|---|
| public AdminPermission(Bundle bundle, String actions) Creates a new requested | |
| AdminPermission | back to summary |
|---|---|
| pack-priv AdminPermission(Filter filter, int mask) Package private constructor used by AdminPermissionCollection.
| |
| createName | back to summary |
|---|---|
| private static String createName(Bundle bundle) Create a permission name from a Bundle | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Determines the equality of two | |
| getActions | back to summary |
|---|---|
| public String getActions() Overrides java. Returns the canonical string representation of the
Always returns present | |
| getProperties | back to summary |
|---|---|
| private Map Called by | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this object.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Overrides java. Determines if the specified permission is implied by this object. This method throws an exception if the specified permission was not constructed with a bundle.
This method returns
Special case: if the specified permission was constructed with "*"
filter, then this method returns
| |
| implies0 | back to summary |
|---|---|
| pack-priv boolean implies0(AdminPermission requested, int effective) Internal implies method. Used by the implies and the permission collection implies methods.
| |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a new
| |
| parseActions | back to summary |
|---|---|
| private static int parseActions(String actions) Parse action string into action mask.
| |
| parseFilter | back to summary |
|---|---|
| private static Filter parseFilter(String filterString) Parse filter string into a Filter object.
| |
| readObject | back to summary |
|---|---|
| private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException Hides java. readObject is called to restore the state of this permission from a stream.
| |
| setTransients | back to summary |
|---|---|
| private void setTransients(Filter filter, int mask) Called by constructors and when deserialized.
| |
| writeObject | back to summary |
|---|---|
| private synchronized void writeObject(ObjectOutputStream s) throws IOException WriteObject is called to save the state of this permission object to a stream. The actions are serialized, and the superclass takes care of the name. | |