org.apache.catalina.mbeans
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) $
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.
|
ManagedBean
information describing this MBean.MBeanServer
in which we are registered.ModelMBean
with default
ModelMBeanInfo
information.
Throws: MBeanException if the initializer of an object throws an exception RuntimeOperationsException if an IllegalArgumentException occurs
Parameters: groupname Group name of the new group
Parameters: rolename Role name of the new role
Parameters: groupname Group name of the old group
Parameters: rolename Role name of the old role