org.apache.catalina.mbeans
Class GroupMBean
BaseModelMBean
org.apache.catalina.mbeans.GroupMBean
public class GroupMBean
extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.Group
component.
Version:
- Craig R. McClanahan
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.
|
GroupMBean() - Construct a
ModelMBean with default
ModelMBeanInfo information.
|
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.
|
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.
GroupMBean
public GroupMBean()
throws MBeanException,
RuntimeOperationsException
Construct a ModelMBean
with default
ModelMBeanInfo
information.
addRole
public void addRole(String rolename)
Add a new
Role
to those this group belongs to.
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.
rolename
- Role name of the old role
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.