public class DeploymentCustomizerPermission extends Permission
DeploymentCustomizerPermissionpermission gives the right to Resource Processors to access a bundle's (residing in a Deployment Package) private area. The bundle and the Resource Processor (customizer) have to be in the same Deployment Package.
The Resource Processor that has this permission is allowed to access the
bundle's private area by calling the
DeploymentSession.getDataFile(Bundle) method during the session (see
DeploymentSession). After the session ends the FilePermissions are
withdrawn. The Resource Processor will have
"read", "write" and "delete" actions for the returned
that represents the base directory of the persistent storage area and for its
The actions string is converted to lowercase before processing.
|Modifier and Type||Field and Description|
Constant String to the "privatearea" action.
|Constructor and Description|
Creates a new
|Modifier and Type||Method and Description|
Checks two DeploymentCustomizerPermission objects for equality.
Returns the String representation of the action list.
Returns hash code for this permission object.
Checks if this DeploymentCustomizerPermission would imply the parameter permission.
Returns a new PermissionCollection object for storing DeploymentCustomizerPermission objects.
DeploymentCustomizerPermissionobject for the given
The name parameter is a filter string. This filter has the same syntax as an OSGi filter but only the "name" attribute is allowed. The value of the attribute is a Bundle Symbolic Name that represents a bundle. The only allowed action is the "privatearea" action. E.g.
Permission perm = new DeploymentCustomizerPermission( "(name=com.acme.bundle)", "privatearea");The Resource Processor that has this permission is allowed to access the bundle's private area by calling the
DeploymentSession.getDataFile(Bundle)method. The Resource Processor will have
FilePermissionwith "read", "write" and "delete" actions for the returned
Fileand its subdirectories during the deployment session.
name- Bundle Symbolic Name of the target bundle, must not be
actions- action string (only the "privatearea" or "*" action is valid; "*" means all the possible actions), must not be
IllegalArgumentException- if the filter is invalid, the list of actions contains unknown operations or one of the parameters is
public boolean equals(Object obj)
public int hashCode()
public String getActions()
public boolean implies(Permission permission)
public PermissionCollection newPermissionCollection()
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0