org.osgi.jmx.compendium
Interface PermissionManagerMBean


public interface PermissionManagerMBean

Author:
Hal Hildebrand Date: Sep 22, 2006 Time: 8:57:34 AM This MBean represents the OSGi Permission Manager Service

Method Summary
 java.lang.String[] getLocations()
          Answer the bundle locations that have permissions assigned to them
 java.lang.String[] getPermissions(java.lang.String location)
          Answer the list of encoded permissions of the bundle specified by the bundle location
 void setDefaultPermissions(java.lang.String[] encodedPermissions)
          Set the default permissions assiged to bundle locations that have no assigned permissions
 void setPermissions(java.lang.String location, java.lang.String[] encodedPermissions)
          Set the permissions on the bundle specified by the bundle location
 

Method Detail

getLocations

java.lang.String[] getLocations()
                                throws java.io.IOException
Answer 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.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:
java.io.IOException - if the operation fails

setDefaultPermissions

void setDefaultPermissions(java.lang.String[] encodedPermissions)
                           throws java.io.IOException
Set the default permissions assiged to bundle locations that have no assigned permissions

Parameters:
encodedPermissions - - the 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.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:
java.io.IOException - if the operation fails


Copyright © 2009. All Rights Reserved.