org.apache.catalina.mbeans

Class UserMBean


public class UserMBean
extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.User 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

UserMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

Method Summary

void
addGroup(String groupname)
Add a new Group to those this user belongs to.
void
addRole(String rolename)
Add a new Role to those this user belongs to.
String[]
getGroups()
Return the MBean Names of all groups this user is a member of.
String[]
getRoles()
Return the MBean Names of all roles assigned to this user.
void
removeGroup(String groupname)
Remove a Group from those this user belongs to.
void
removeRole(String rolename)
Remove a Role from those this user 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

UserMBean

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

Method Details

addGroup

public void addGroup(String groupname)
Add a new Group to those this user belongs to.

Parameters:
groupname - Group name of the new group


addRole

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

Parameters:
rolename - Role name of the new role


getGroups

public String[] getGroups()
Return the MBean Names of all groups this user is a member of.


getRoles

public String[] getRoles()
Return the MBean Names of all roles assigned to this user.


removeGroup

public void removeGroup(String groupname)
Remove a Group from those this user belongs to.

Parameters:
groupname - Group name of the old group


removeRole

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

Parameters:
rolename - Role name of the old role


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.