? DeploymentCustomizerPermission
- ????????:
Serializable
,Guard
DeploymentCustomizerPermission
permission 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 FilePermission
with
"read", "write" and "delete" actions for the returned File
that represents the base directory of the persistent storage area and for its
subdirectories.
The actions string is converted to lowercase before processing.
- ????:
-
????
?? -
?????
????????DeploymentCustomizerPermission
(String name, String actions) Creates a newDeploymentCustomizerPermission
object for the givenname
andaction
. -
????
??????????boolean
Checks two DeploymentCustomizerPermission objects for equality.Returns the String representation of the action list.int
hashCode()
Returns hash code for this permission object.boolean
implies
(Permission permission) Checks if this DeploymentCustomizerPermission would imply the parameter permission.Returns a new PermissionCollection object for storing DeploymentCustomizerPermission objects.??????? java.security.Permission
checkGuard, getName, toString
-
??????
-
PRIVATEAREA
Constant String to the "privatearea" action.- ????:
-
-
???????
-
DeploymentCustomizerPermission
Creates a newDeploymentCustomizerPermission
object for the givenname
andaction
.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 theDeploymentSession.getDataFile(Bundle)
method. The Resource Processor will haveFilePermission
with "read", "write" and "delete" actions for the returnedFile
and its subdirectories during the deployment session.- ??:
name
- Bundle Symbolic Name of the target bundle, must not benull
.actions
- action string (only the "privatearea" or "*" action is valid; "*" means all the possible actions), must not benull
.- ??:
IllegalArgumentException
- if the filter is invalid, the list of actions contains unknown operations or one of the parameters isnull
-
-
??????
-
equals
Checks two DeploymentCustomizerPermission objects for equality. Two permission objects are equal if:- their target filters are equal (semantically and not character by character) and
- their actions are the same
- ???:
equals
???Permission
- ??:
obj
- the reference object with which to compare.- ??:
- true if the two objects are equal.
- ????:
-
hashCode
public int hashCode()Returns hash code for this permission object.- ???:
hashCode
???Permission
- ??:
- Hash code for this permission object.
- ????:
-
getActions
Returns the String representation of the action list.- ???:
getActions
???Permission
- ??:
- Action list of this permission instance. It is always "privatearea".
- ????:
-
implies
Checks if this DeploymentCustomizerPermission would imply the parameter permission. This permission implies another DeploymentCustomizerPermission permission if:- both of them has the "privatearea" action (other actions are not allowed) and
- their filters (only name attribute is allowed in the filters) match
similarly to
DeploymentAdminPermission
.
- ???:
implies
???Permission
- ??:
permission
- Permission to check.- ??:
- true if this DeploymentCustomizerPermission object implies the specified permission.
- ????:
-
newPermissionCollection
Returns a new PermissionCollection object for storing DeploymentCustomizerPermission objects.- ??:
newPermissionCollection
???Permission
- ??:
- The new PermissionCollection.
- ????:
-