org.osgi.jmx.service.permissionadmin
Interface PermissionAdminMBean

All Known Implementing Classes:
PermissionAdmin

public interface PermissionAdminMBean

This MBean represents the OSGi Permission Manager Service

Version:
$Rev: 896239 $

Field Summary
static String OBJECTNAME
          Permission Admin MBean object name.
 
Method Summary
 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
 

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 bundle
encodedPermissions - the string encoded permissions to set
Throws:
IOException - if the operation fails


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.