org.apache.catalina.mbeans

Class GroupMBean


public class GroupMBean
extends BaseModelMBean

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

Version:
$Revision: 1.5 $ $Date: 2004/04/15 01:44:09 $

Author:
Craig R. McClanahan

Field Summary

protected ManagedBean
managed
The ManagedBean information describing this MBean.
protected MBeanServer
mserver
The MBeanServer in which we are registered.
protected Registry
registry
The configuration information registry for our managed beans.

Constructor Summary

GroupMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

Method Summary

void
addRole(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.
void
removeRole(String rolename)
Remove a Role from those this group belongs to.

Field Details

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 Details

GroupMBean

public GroupMBean()
            throws MBeanException,
                   RuntimeOperationsException
Construct a ModelMBean with default ModelMBeanInfo information.

Method Details

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 B) 2000-2003 Apache Software Foundation. All Rights Reserved.