Class PermissionData

java.lang.Object
org.eclipse.osgi.storage.PermissionData

public class PermissionData extends Object
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 Details

    • PermissionData

      public PermissionData()
  • Method Details

    • getLocations

      public String[] 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

      public String[] getPermissionData(String location)
      Gets the permission data assigned to the specified location.
      Parameters:
      location - The location whose permission data is to be returned. The location can be null 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

      public void setPermissionData(String location, String[] data)
      Assigns the specified permission data to the specified location.
      Parameters:
      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.
    • saveConditionalPermissionInfos

      public void saveConditionalPermissionInfos(String[] infos)
      Persists the array of encoded ConditionalPermissionInfo strings
      Parameters:
      infos - an array of encoded ConditionalPermissionInfo strings
    • getConditionalPermissionInfos

      public String[] getConditionalPermissionInfos()
      Returns the persistent array of encoded ConditionalPermissionInfo strings
      Returns:
      an array of encoded ConditionalPermissionInfo strings or null if none exist in persistent storage.