org.apache.catalina.mbeans

Class UserMBean

public class UserMBean extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.User 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
UserMBean()
Construct a ModelMBean with default ModelMBeanInfo information.
Method Summary
voidaddGroup(String groupname)
Add a new Group to those this user belongs to.
voidaddRole(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.
voidremoveGroup(String groupname)
Remove a Group from those this user belongs to.
voidremoveRole(String rolename)
Remove a Role from those this user 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

UserMBean

public UserMBean()
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

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 © 2000-2011 Apache Software Foundation. All Rights Reserved.