Interface PermissionAdminMBean
-
public interface PermissionAdminMBean
This MBean represents the OSGi Permission Manager Service
-
-
Field Summary
Fields Modifier and Type Field Description static String
OBJECTNAME
Permission Admin MBean object name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
getPermissions(String location)
Answer the list of encoded permissions of the bundle specified by the bundle locationString[]
listDefaultPermissions()
Answer the list of encoded permissions representing the default permissions assigned to bundle locations that have no assigned permissionsString[]
listLocations()
Answer the bundle locations that have permissions assigned to themvoid
setDefaultPermissions(String[] encodedPermissions)
Set the default permissions assigned to bundle locations that have no assigned permissionsvoid
setPermissions(String location, String[] encodedPermissions)
Set the permissions on the bundle specified by the bundle location
-
-
-
Field Detail
-
OBJECTNAME
static final String OBJECTNAME
Permission Admin MBean object name.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 bundleencodedPermissions
- the string encoded permissions to set- Throws:
IOException
- if the operation fails
-
-