Interface PermissionAdminMBean
public interface PermissionAdminMBean
This MBean represents the OSGi Permission Manager Service
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionString[]getPermissions(String location) Answer the list of encoded permissions of the bundle specified by the bundle locationString[]Answer the list of encoded permissions representing the default permissions assigned to bundle locations that have no assigned permissionsString[]Answer the bundle locations that have permissions assigned to themvoidsetDefaultPermissions(String[] encodedPermissions) Set the default permissions assigned to bundle locations that have no assigned permissionsvoidsetPermissions(String location, String[] encodedPermissions) Set the permissions on the bundle specified by the bundle location
-
Field Details
-
OBJECTNAME
Permission Admin MBean object name.- See Also:
-
-
Method Details
-
listLocations
Answer the bundle locations that have permissions assigned to them- Returns:
- the bundle locations
- Throws:
IOException- if the operation fails
-
getPermissions
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
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
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
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
-