Package org.apache.catalina.mbeans
Class MemoryUserDatabaseMBean
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.BaseModelMBean
- 
- org.apache.catalina.mbeans.MemoryUserDatabaseMBean
 
 
- 
- All Implemented Interfaces:
- javax.management.DynamicMBean,- javax.management.MBeanRegistration,- javax.management.modelmbean.ModelMBeanNotificationBroadcaster,- javax.management.NotificationBroadcaster
 
 public class MemoryUserDatabaseMBean extends BaseModelMBean A ModelMBean implementation for the org.apache.catalina.users.MemoryUserDatabasecomponent.- Author:
- Craig R. McClanahan
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ManagedBeanmanagedTheManagedBeaninformation describing this MBean.protected ManagedBeanmanagedGroupTheManagedBeaninformation describing Group MBeans.protected ManagedBeanmanagedRoleTheManagedBeaninformation describing Group MBeans.protected ManagedBeanmanagedUserTheManagedBeaninformation describing User MBeans.protected RegistryregistryThe configuration information registry for our managed beans.- 
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanattributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
 
- 
 - 
Constructor SummaryConstructors Constructor Description MemoryUserDatabaseMBean()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateGroup(java.lang.String groupname, java.lang.String description)Create a new Group and return the corresponding MBean Name.java.lang.StringcreateRole(java.lang.String rolename, java.lang.String description)Create a new Role and return the corresponding MBean Name.java.lang.StringcreateUser(java.lang.String username, java.lang.String password, java.lang.String fullName)Create a new User and return the corresponding MBean Name.java.lang.StringfindGroup(java.lang.String groupname)Return the MBean Name for the specified group name (if any); otherwise returnnull.java.lang.StringfindRole(java.lang.String rolename)Return the MBean Name for the specified role name (if any); otherwise returnnull.java.lang.StringfindUser(java.lang.String username)Return the MBean Name for the specified user name (if any); otherwise returnnull.java.lang.String[]getGroups()java.lang.String[]getRoles()java.lang.String[]getUsers()voidremoveGroup(java.lang.String groupname)Remove an existing group and destroy the corresponding MBean.voidremoveRole(java.lang.String rolename)Remove an existing role and destroy the corresponding MBean.voidremoveUser(java.lang.String username)Remove an existing user and destroy the corresponding MBean.- 
Methods inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanaddAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
 
- 
 
- 
- 
- 
Field Detail- 
registryprotected final Registry registry The configuration information registry for our managed beans.
 - 
managedprotected final ManagedBean managed TheManagedBeaninformation describing this MBean.
 - 
managedGroupprotected final ManagedBean managedGroup TheManagedBeaninformation describing Group MBeans.
 - 
managedRoleprotected final ManagedBean managedRole TheManagedBeaninformation describing Group MBeans.
 - 
managedUserprotected final ManagedBean managedUser TheManagedBeaninformation describing User MBeans.
 
- 
 - 
Method Detail- 
getGroupspublic java.lang.String[] getGroups() - Returns:
- the MBean Names of all groups defined in this database.
 
 - 
getRolespublic java.lang.String[] getRoles() - Returns:
- the MBean Names of all roles defined in this database.
 
 - 
getUserspublic java.lang.String[] getUsers() - Returns:
- the MBean Names of all users defined in this database.
 
 - 
createGrouppublic java.lang.String createGroup(java.lang.String groupname, java.lang.String description)Create a new Group and return the corresponding MBean Name.- Parameters:
- groupname- Group name of the new group
- description- Description of the new group
- Returns:
- the new group object name
 
 - 
createRolepublic java.lang.String createRole(java.lang.String rolename, java.lang.String description)Create a new Role and return the corresponding MBean Name.- Parameters:
- rolename- Group name of the new group
- description- Description of the new group
- Returns:
- the new role object name
 
 - 
createUserpublic java.lang.String createUser(java.lang.String username, java.lang.String password, java.lang.String fullName)Create a new User and return the corresponding MBean Name.- Parameters:
- username- User name of the new user
- password- Password for the new user
- fullName- Full name for the new user
- Returns:
- the new user object name
 
 - 
findGrouppublic java.lang.String findGroup(java.lang.String groupname) Return the MBean Name for the specified group name (if any); otherwise returnnull.- Parameters:
- groupname- Group name to look up
- Returns:
- the group object name
 
 - 
findRolepublic java.lang.String findRole(java.lang.String rolename) Return the MBean Name for the specified role name (if any); otherwise returnnull.- Parameters:
- rolename- Role name to look up
- Returns:
- the role object name
 
 - 
findUserpublic java.lang.String findUser(java.lang.String username) Return the MBean Name for the specified user name (if any); otherwise returnnull.- Parameters:
- username- User name to look up
- Returns:
- the user object name
 
 - 
removeGrouppublic void removeGroup(java.lang.String groupname) Remove an existing group and destroy the corresponding MBean.- Parameters:
- groupname- Group name to remove
 
 - 
removeRolepublic void removeRole(java.lang.String rolename) Remove an existing role and destroy the corresponding MBean.- Parameters:
- rolename- Role name to remove
 
 - 
removeUserpublic void removeUser(java.lang.String username) Remove an existing user and destroy the corresponding MBean.- Parameters:
- username- User name to remove
 
 
- 
 
-