org.knopflerfish.framework.permissions.PermissionAdminImpl Class Reference

Inheritance diagram for org.knopflerfish.framework.permissions.PermissionAdminImpl:

org.osgi.service.permissionadmin.PermissionAdmin

List of all members.


Detailed Description

Implementation of the PermissionAdmin service.

See also:
org.osgi.service.permissionadmin.PermissionAdmin
Author:
Jan Stein

Philippe Laporte

Definition at line 52 of file PermissionAdminImpl.java.


Public Member Functions

PermissionInfo[] getPermissions (String location)
 Gets the permissions assigned to the bundle with the specified location.
synchronized void setPermissions (String location, PermissionInfo[] perms)
 Assigns the specified permissions to the bundle with the specified location.
String[] getLocations ()
 Returns the bundle locations that have permissions assigned to them, that is, bundle locations for which an entry exists in the permission table.
synchronized PermissionInfo[] getDefaultPermissions ()
 Gets the default permissions.
synchronized void setDefaultPermissions (PermissionInfo[] perms)
 Sets the default permissions.

Member Function Documentation

PermissionInfo [] org.knopflerfish.framework.permissions.PermissionAdminImpl.getPermissions ( String  location  ) 

Gets the permissions assigned to the bundle with the specified location.

Parameters:
location The location of the bundle whose permissions are to be returned.
Returns:
The permissions assigned to the bundle with the specified location, or null if that bundle has not been assigned any permissions.

Implements org.osgi.service.permissionadmin.PermissionAdmin.

Definition at line 84 of file PermissionAdminImpl.java.

synchronized void org.knopflerfish.framework.permissions.PermissionAdminImpl.setPermissions ( String  location,
PermissionInfo[]  perms 
)

Assigns the specified permissions to the bundle with the specified location.

Parameters:
location The location of the bundle that will be assigned the permissions.
permissions The permissions to be assigned, or null if the specified location is to be removed from the permission table.
Exceptions:
SecurityException If the caller does not have AllPermission.

Implements org.osgi.service.permissionadmin.PermissionAdmin.

Definition at line 101 of file PermissionAdminImpl.java.

String [] org.knopflerfish.framework.permissions.PermissionAdminImpl.getLocations (  ) 

Returns the bundle locations that have permissions assigned to them, that is, bundle locations for which an entry exists in the permission table.

Returns:
The locations of bundles that have been assigned any permissions, or null if the permission table is empty.

Implements org.osgi.service.permissionadmin.PermissionAdmin.

Definition at line 118 of file PermissionAdminImpl.java.

synchronized PermissionInfo [] org.knopflerfish.framework.permissions.PermissionAdminImpl.getDefaultPermissions (  ) 

Gets the default permissions.

These are the permissions granted to any bundle that does not have permissions assigned to its location.

Returns:
The default permissions, or null if default permissions have not been defined.

Implements org.osgi.service.permissionadmin.PermissionAdmin.

Definition at line 132 of file PermissionAdminImpl.java.

synchronized void org.knopflerfish.framework.permissions.PermissionAdminImpl.setDefaultPermissions ( PermissionInfo[]  perms  ) 

Sets the default permissions.

These are the permissions granted to any bundle that does not have permissions assigned to its location.

Parameters:
permissions The default permissions, or null if the default permissions are to be removed from the permission table.
Exceptions:
SecurityException If the caller does not have AllPermission.

Implements org.osgi.service.permissionadmin.PermissionAdmin.

Definition at line 150 of file PermissionAdminImpl.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:19 2010 for OpenMobileIS by  doxygen 1.5.4