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