Interface PermissionAdminMBean


public interface PermissionAdminMBean
This MBean represents the OSGi Permission Manager Service
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Permission Admin MBean object name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Answer the list of encoded permissions of the bundle specified by the bundle location
    Answer the list of encoded permissions representing the default permissions assigned to bundle locations that have no assigned permissions
    Answer the bundle locations that have permissions assigned to them
    void
    setDefaultPermissions(String[] encodedPermissions)
    Set the default permissions assigned to bundle locations that have no assigned permissions
    void
    setPermissions(String location, String[] encodedPermissions)
    Set the permissions on the bundle specified by the bundle location
  • Field Details

  • Method Details

    • listLocations

      String[] listLocations() throws IOException
      Answer the bundle locations that have permissions assigned to them
      Returns:
      the bundle locations
      Throws:
      IOException - if the operation fails
    • getPermissions

      String[] getPermissions(String location) throws IOException
      Answer the list of encoded permissions of the bundle specified by the bundle location
      Parameters:
      location - location identifying the bundle
      Returns:
      the array of String encoded permissions
      Throws:
      IOException - if the operation fails
    • setDefaultPermissions

      void setDefaultPermissions(String[] encodedPermissions) throws IOException
      Set the default permissions assigned to bundle locations that have no assigned permissions
      Parameters:
      encodedPermissions - the string encoded permissions
      Throws:
      IOException - if the operation fails
    • listDefaultPermissions

      String[] listDefaultPermissions() throws IOException
      Answer the list of encoded permissions representing the default permissions assigned to bundle locations that have no assigned permissions
      Returns:
      the array of String encoded permissions
      Throws:
      IOException - if the operation fails
    • setPermissions

      void setPermissions(String location, String[] encodedPermissions) throws IOException
      Set the permissions on the bundle specified by the bundle location
      Parameters:
      location - the location of the bundle
      encodedPermissions - the string encoded permissions to set
      Throws:
      IOException - if the operation fails