|
Service Management Framework Release 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Permission Storage interface for managing a persistent storage of bundle permissions.
This class is used to provide methods to manage persistent storage of bundle permissions. The PermissionStorage object is returned by the Platform object and is called by SMF to persistently store bundle permissions.
The permission data will typically take the form of encoded PermissionInfo Strings. See org.osgi.service.permissionadmin.PermissionInfo.
For example
PermissionStorage storage = platform.getPermissionStorage(); try { storage.setPermissionData(location, permissions); } catch (IOException e) { // Take some error action. }
Method Summary | |
java.lang.String[] |
getLocations()
Returns the locations that have permission data assigned to them, that is, locations for which permission data exists in persistent storage. |
java.lang.String[] |
getPermissionData(java.lang.String location)
Gets the permission data assigned to the specified location. |
void |
setPermissionData(java.lang.String location,
java.lang.String[] data)
Assigns the specified permission data to the specified location. |
Method Detail |
public java.lang.String[] getLocations() throws java.io.IOException
java.io.IOException
- If a failure occurs accessing peristent storage.public java.lang.String[] getPermissionData(java.lang.String location) throws java.io.IOException
location
- The location whose permission data is to
be returned.
The location can be null for the default permission data.java.io.IOException
- If a failure occurs accessing peristent storage.public void setPermissionData(java.lang.String location, java.lang.String[] data) throws java.io.IOException
location
- The location that will be assigned the
permissions.
The location can be null for the default permission data.data
- The permission data to be assigned, or null
if the specified location is to be removed from persistent storaqe.java.io.IOException
- If a failure occurs modifying peristent storage.
|
Service Management Framework Release 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |