public interface PermissionAdminMBean
Modifier and Type | Field and Description |
---|---|
static String |
OBJECTNAME
Permission Admin MBean object name.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getPermissions(String location)
Answer the list of encoded permissions of the bundle specified by the
bundle location
|
String[] |
listDefaultPermissions()
Answer the list of encoded permissions representing the default
permissions assigned to bundle locations that have no assigned
permissions
|
String[] |
listLocations()
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
|
static final String OBJECTNAME
String[] listLocations() throws IOException
IOException
- if the operation failsString[] getPermissions(String location) throws IOException
location
- location identifying the bundleIOException
- if the operation failsvoid setDefaultPermissions(String[] encodedPermissions) throws IOException
encodedPermissions
- the string encoded permissionsIOException
- if the operation failsString[] listDefaultPermissions() throws IOException
IOException
- if the operation failsvoid setPermissions(String location, String[] encodedPermissions) throws IOException
location
- the location of the bundleencodedPermissions
- the string encoded permissions to setIOException
- if the operation failsCopyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0