org.apache.catalina.mbeans
public class MemoryUserDatabaseMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.users.MemoryUserDatabase 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 ManagedBean | managedGroup
The ManagedBean information describing Group MBeans. |
| protected ManagedBean | managedRole
The ManagedBean information describing Group MBeans. |
| protected ManagedBean | managedUser
The ManagedBean information describing User MBeans. |
| protected MBeanServer | mserver
The MBeanServer in which we are registered. |
| protected Registry | registry
The configuration information registry for our managed beans. |
| Constructor Summary | |
|---|---|
| MemoryUserDatabaseMBean()
Construct a ModelMBean with default
ModelMBeanInfo information.
| |
| Method Summary | |
|---|---|
| String | createGroup(String groupname, String description)
Create a new Group and return the corresponding MBean Name.
|
| String | createRole(String rolename, String description)
Create a new Role and return the corresponding MBean Name.
|
| String | createUser(String username, String password, String fullName)
Create a new User and return the corresponding MBean Name.
|
| String | findGroup(String groupname)
Return the MBean Name for the specified group name (if any);
otherwise return null.
|
| String | findRole(String rolename)
Return the MBean Name for the specified role name (if any);
otherwise return null.
|
| String | findUser(String username)
Return the MBean Name for the specified user name (if any);
otherwise return null.
|
| String[] | getGroups()
Return the MBean Names of all groups defined in this database. |
| String[] | getRoles()
Return the MBean Names of all roles defined in this database. |
| String[] | getUsers()
Return the MBean Names of all users defined in this database. |
| void | removeGroup(String groupname)
Remove an existing group and destroy the corresponding MBean.
|
| void | removeRole(String rolename)
Remove an existing role and destroy the corresponding MBean.
|
| void | removeUser(String username)
Remove an existing user and destroy the corresponding MBean.
|
ManagedBean information describing this MBean.ManagedBean information describing Group MBeans.ManagedBean information describing Group MBeans.ManagedBean information describing User MBeans.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 description Description of the new group
Parameters: rolename Group name of the new group description Description of the new group
Parameters: username User name of the new user password Password for the new user fullName Full name for the new user
null.
Parameters: groupname Group name to look up
null.
Parameters: rolename Role name to look up
null.
Parameters: username User name to look up
Parameters: groupname Group name to remove
Parameters: rolename Role name to remove
Parameters: username User name to remove