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. |
PermissionInfo [] org.knopflerfish.framework.permissions.PermissionAdminImpl.getPermissions | ( | String | location | ) |
Gets the permissions assigned to the bundle with the specified location.
location | The location of the bundle whose permissions are to be returned. |
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.
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. |
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.
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.
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.
permissions | The default permissions, or null if the default permissions are to be removed from the permission table. |
SecurityException | If the caller does not have AllPermission . |
Implements org.osgi.service.permissionadmin.PermissionAdmin.
Definition at line 150 of file PermissionAdminImpl.java.