public class PermissionAdmin extends Object implements PermissionAdminMBean
PermissionAdmin represents implementation of PermissionAdminMBean.
PermissionAdminMBeanOBJECTNAME| Constructor and Description |
|---|
PermissionAdmin(org.osgi.service.permissionadmin.PermissionAdmin permAdmin)
Constructs new PermissionAdmin MBean.
|
| 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
|
public PermissionAdmin(org.osgi.service.permissionadmin.PermissionAdmin permAdmin)
permAdmin - PermissionAdmin service reference.public String[] getPermissions(String location) throws IOException
PermissionAdminMBeangetPermissions in interface PermissionAdminMBeanlocation - location identifying the bundleIOException - if the operation failsPermissionAdminMBean.getPermissions(java.lang.String)public String[] listDefaultPermissions() throws IOException
PermissionAdminMBeanlistDefaultPermissions in interface PermissionAdminMBeanIOException - if the operation failsPermissionAdminMBean.listDefaultPermissions()public String[] listLocations() throws IOException
PermissionAdminMBeanlistLocations in interface PermissionAdminMBeanIOException - if the operation failsPermissionAdminMBean.listLocations()public void setDefaultPermissions(String[] encodedPermissions) throws IOException
PermissionAdminMBeansetDefaultPermissions in interface PermissionAdminMBeanencodedPermissions - the string encoded permissionsIOException - if the operation failsPermissionAdminMBean.setDefaultPermissions(java.lang.String[])public void setPermissions(String location, String[] encodedPermissions) throws IOException
PermissionAdminMBeansetPermissions in interface PermissionAdminMBeanlocation - the location of the bundleencodedPermissions - the string encoded permissions to setIOException - if the operation failsPermissionAdminMBean.setPermissions(java.lang.String,
java.lang.String[])Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.