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