Package org.eclipse.osgi.storage
Class PermissionData
java.lang.Object
org.eclipse.osgi.storage.PermissionData
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the persistent array of encoded ConditionalPermissionInfo stringsString[]
Returns the locations that have permission data assigned to them, that is, locations for which permission data exists in persistent storage.String[]
getPermissionData
(String location) Gets the permission data assigned to the specified location.void
saveConditionalPermissionInfos
(String[] infos) Persists the array of encoded ConditionalPermissionInfo stringsvoid
setPermissionData
(String location, String[] data) Assigns the specified permission data to the specified location.
-
Constructor Details
-
PermissionData
public PermissionData()
-
-
Method Details
-
getLocations
Returns the locations that have permission data assigned to them, that is, locations for which permission data exists in persistent storage.- Returns:
- The locations that have permission data in persistent storage, or
null
if there is no permission data in persistent storage.
-
getPermissionData
Gets the permission data assigned to the specified location.- Parameters:
location
- The location whose permission data is to be returned. The location can benull
for the default permission data.- Returns:
- The permission data assigned to the specified location, or
null
if that location has not been assigned any permission data.
-
setPermissionData
Assigns the specified permission data to the specified location.- Parameters:
location
- The location that will be assigned the permissions. The location can benull
for the default permission data.data
- The permission data to be assigned, ornull
if the specified location is to be removed from persistent storaqe.
-
saveConditionalPermissionInfos
Persists the array of encoded ConditionalPermissionInfo strings- Parameters:
infos
- an array of encoded ConditionalPermissionInfo strings
-
getConditionalPermissionInfos
Returns the persistent array of encoded ConditionalPermissionInfo strings- Returns:
- an array of encoded ConditionalPermissionInfo strings or null if none exist in persistent storage.
-