Interface PermissionAdminMBean
-
public interface PermissionAdminMBeanThis MBean represents the OSGi Permission Manager Service
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOBJECTNAMEPermission Admin MBean object name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]getPermissions(java.lang.String location)Answer the list of encoded permissions of the bundle specified by the bundle locationjava.lang.String[]listDefaultPermissions()Answer the list of encoded permissions representing the default permissions assigned to bundle locations that have no assigned permissionsjava.lang.String[]listLocations()Answer the bundle locations that have permissions assigned to themvoidsetDefaultPermissions(java.lang.String[] encodedPermissions)Set the default permissions assigned to bundle locations that have no assigned permissionsvoidsetPermissions(java.lang.String location, java.lang.String[] encodedPermissions)Set the permissions on the bundle specified by the bundle location
-
-
-
Field Detail
-
OBJECTNAME
static final java.lang.String OBJECTNAME
Permission Admin MBean object name.- See Also:
- Constant Field Values
-
-
Method Detail
-
listLocations
java.lang.String[] listLocations() throws java.io.IOExceptionAnswer the bundle locations that have permissions assigned to them- Returns:
- the bundle locations
- Throws:
java.io.IOException- if the operation fails
-
getPermissions
java.lang.String[] getPermissions(java.lang.String location) throws java.io.IOExceptionAnswer 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:
java.io.IOException- if the operation fails
-
setDefaultPermissions
void setDefaultPermissions(java.lang.String[] encodedPermissions) throws java.io.IOExceptionSet the default permissions assigned to bundle locations that have no assigned permissions- Parameters:
encodedPermissions- the string encoded permissions- Throws:
java.io.IOException- if the operation fails
-
listDefaultPermissions
java.lang.String[] listDefaultPermissions() throws java.io.IOExceptionAnswer 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:
java.io.IOException- if the operation fails
-
setPermissions
void setPermissions(java.lang.String location, java.lang.String[] encodedPermissions) throws java.io.IOExceptionSet the permissions on the bundle specified by the bundle location- Parameters:
location- the location of the bundleencodedPermissions- the string encoded permissions to set- Throws:
java.io.IOException- if the operation fails
-
-