org.apache.aries.jmx.permissionadmin
Class PermissionAdmin

java.lang.Object
  extended by org.apache.aries.jmx.permissionadmin.PermissionAdmin
All Implemented Interfaces:
PermissionAdminMBean

public class PermissionAdmin
extends Object
implements PermissionAdminMBean

PermissionAdmin represents implementation of PermissionAdminMBean.

Version:
$Rev: 943268 $ $Date: 2010-05-11 21:19:02 +0100 (Tue, 11 May 2010) $
See Also:
PermissionAdminMBean

Field Summary
 
Fields inherited from interface org.osgi.jmx.service.permissionadmin.PermissionAdminMBean
OBJECTNAME
 
Constructor Summary
PermissionAdmin(org.osgi.service.permissionadmin.PermissionAdmin permAdmin)
          Constructs new PermissionAdmin MBean.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionAdmin

public PermissionAdmin(org.osgi.service.permissionadmin.PermissionAdmin permAdmin)
Constructs new PermissionAdmin MBean.

Parameters:
permAdmin - PermissionAdmin service reference.
Method Detail

getPermissions

public String[] getPermissions(String location)
                        throws IOException
Description copied from interface: PermissionAdminMBean
Answer the list of encoded permissions of the bundle specified by the bundle location

Specified by:
getPermissions in interface PermissionAdminMBean
Parameters:
location - location identifying the bundle
Returns:
the array of String encoded permissions
Throws:
IOException - if the operation fails
See Also:
PermissionAdminMBean.getPermissions(java.lang.String)

listDefaultPermissions

public String[] listDefaultPermissions()
                                throws IOException
Description copied from interface: PermissionAdminMBean
Answer the list of encoded permissions representing the default permissions assigned to bundle locations that have no assigned permissions

Specified by:
listDefaultPermissions in interface PermissionAdminMBean
Returns:
the array of String encoded permissions
Throws:
IOException - if the operation fails
See Also:
PermissionAdminMBean.listDefaultPermissions()

listLocations

public String[] listLocations()
                       throws IOException
Description copied from interface: PermissionAdminMBean
Answer the bundle locations that have permissions assigned to them

Specified by:
listLocations in interface PermissionAdminMBean
Returns:
the bundle locations
Throws:
IOException - if the operation fails
See Also:
PermissionAdminMBean.listLocations()

setDefaultPermissions

public void setDefaultPermissions(String[] encodedPermissions)
                           throws IOException
Description copied from interface: PermissionAdminMBean
Set the default permissions assigned to bundle locations that have no assigned permissions

Specified by:
setDefaultPermissions in interface PermissionAdminMBean
Parameters:
encodedPermissions - the string encoded permissions
Throws:
IOException - if the operation fails
See Also:
PermissionAdminMBean.setDefaultPermissions(java.lang.String[])

setPermissions

public void setPermissions(String location,
                           String[] encodedPermissions)
                    throws IOException
Description copied from interface: PermissionAdminMBean
Set the permissions on the bundle specified by the bundle location

Specified by:
setPermissions in interface PermissionAdminMBean
Parameters:
location - the location of the bundle
encodedPermissions - the string encoded permissions to set
Throws:
IOException - if the operation fails
See Also:
PermissionAdminMBean.setPermissions(java.lang.String, java.lang.String[])


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