org.apache.catalina.mbeans

Class GroupMBean

public class GroupMBean extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.Group component.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Field Summary
protected ManagedBeanmanaged
The ManagedBean information describing this MBean.
protected MBeanServermserver
The MBeanServer in which we are registered.
protected Registryregistry
The configuration information registry for our managed beans.
Constructor Summary
GroupMBean()
Construct a ModelMBean with default ModelMBeanInfo information.
Method Summary
voidaddRole(String rolename)
Add a new Role to those this group belongs to.
String[]getRoles()
Return the MBean Names of all authorized roles for this group.
String[]getUsers()
Return the MBean Names of all users that are members of this group.
voidremoveRole(String rolename)
Remove a Role from those this group belongs to.

Field Detail

managed

protected ManagedBean managed
The ManagedBean information describing this MBean.

mserver

protected MBeanServer mserver
The MBeanServer in which we are registered.

registry

protected Registry registry
The configuration information registry for our managed beans.

Constructor Detail

GroupMBean

public GroupMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

Throws: MBeanException if the initializer of an object throws an exception RuntimeOperationsException if an IllegalArgumentException occurs

Method Detail

addRole

public void addRole(String rolename)
Add a new Role to those this group belongs to.

Parameters: rolename Role name of the new role

getRoles

public String[] getRoles()
Return the MBean Names of all authorized roles for this group.

getUsers

public String[] getUsers()
Return the MBean Names of all users that are members of this group.

removeRole

public void removeRole(String rolename)
Remove a Role from those this group belongs to.

Parameters: rolename Role name of the old role

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.