| java.lang.Object org.apache.tomcat.util.modeler.BaseModelMBean org.apache.catalina.mbeans.MemoryUserDatabaseMBean
MemoryUserDatabaseMBean | public class MemoryUserDatabaseMBean extends BaseModelMBean (Code) | | A ModelMBean implementation for the
org.apache.catalina.users.MemoryUserDatabase component.
author: Craig R. McClanahan version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Constructor Summary | |
public | MemoryUserDatabaseMBean() Construct a ModelMBean with default
ModelMBeanInfo information. |
Method Summary | |
public String | createGroup(String groupname, String description) Create a new Group and return the corresponding MBean Name. | public String | createRole(String rolename, String description) Create a new Role and return the corresponding MBean Name. | public String | createUser(String username, String password, String fullName) Create a new User and return the corresponding MBean Name. | public String | findGroup(String groupname) Return the MBean Name for the specified group name (if any);
otherwise return null . | public String | findRole(String rolename) Return the MBean Name for the specified role name (if any);
otherwise return null . | public String | findUser(String username) Return the MBean Name for the specified user name (if any);
otherwise return null . | public String[] | getGroups() Return the MBean Names of all groups defined in this database. | public String[] | getRoles() Return the MBean Names of all roles defined in this database. | public String[] | getUsers() Return the MBean Names of all users defined in this database. | public void | removeGroup(String groupname) Remove an existing group and destroy the corresponding MBean. | public void | removeRole(String rolename) Remove an existing role and destroy the corresponding MBean. | public void | removeUser(String username) Remove an existing user and destroy the corresponding MBean. |
managed | protected ManagedBean managed(Code) | | The ManagedBean information describing this MBean.
|
managedGroup | protected ManagedBean managedGroup(Code) | | The ManagedBean information describing Group MBeans.
|
managedRole | protected ManagedBean managedRole(Code) | | The ManagedBean information describing Group MBeans.
|
managedUser | protected ManagedBean managedUser(Code) | | The ManagedBean information describing User MBeans.
|
mserver | protected MBeanServer mserver(Code) | | The MBeanServer in which we are registered.
|
registry | protected Registry registry(Code) | | The configuration information registry for our managed beans.
|
createGroup | public String createGroup(String groupname, String description)(Code) | | Create a new Group and return the corresponding MBean Name.
Parameters: groupname - Group name of the new group Parameters: description - Description of the new group |
createRole | public String createRole(String rolename, String description)(Code) | | Create a new Role and return the corresponding MBean Name.
Parameters: rolename - Group name of the new group Parameters: description - Description of the new group |
createUser | public String createUser(String username, String password, String fullName)(Code) | | Create a new User and return the corresponding MBean Name.
Parameters: username - User name of the new user Parameters: password - Password for the new user Parameters: fullName - Full name for the new user |
findGroup | public String findGroup(String groupname)(Code) | | Return the MBean Name for the specified group name (if any);
otherwise return null .
Parameters: groupname - Group name to look up |
findRole | public String findRole(String rolename)(Code) | | Return the MBean Name for the specified role name (if any);
otherwise return null .
Parameters: rolename - Role name to look up |
findUser | public String findUser(String username)(Code) | | Return the MBean Name for the specified user name (if any);
otherwise return null .
Parameters: username - User name to look up |
getGroups | public String[] getGroups()(Code) | | Return the MBean Names of all groups defined in this database.
|
getRoles | public String[] getRoles()(Code) | | Return the MBean Names of all roles defined in this database.
|
getUsers | public String[] getUsers()(Code) | | Return the MBean Names of all users defined in this database.
|
removeGroup | public void removeGroup(String groupname)(Code) | | Remove an existing group and destroy the corresponding MBean.
Parameters: groupname - Group name to remove |
removeRole | public void removeRole(String rolename)(Code) | | Remove an existing role and destroy the corresponding MBean.
Parameters: rolename - Role name to remove |
removeUser | public void removeUser(String username)(Code) | | Remove an existing user and destroy the corresponding MBean.
Parameters: username - User name to remove |
Methods inherited from org.apache.tomcat.util.modeler.BaseModelMBean | public void addAttributeChangeNotificationListener(NotificationListener listener, String name, Object handback) throws IllegalArgumentException(Code)(Java Doc) public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException(Code)(Java Doc) public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)(Java Doc) public AttributeList getAttributes(String names)(Code)(Java Doc) public String getClassName()(Code)(Java Doc) public ObjectName getJmxName()(Code)(Java Doc) public MBeanInfo getMBeanInfo()(Code)(Java Doc) public Object getManagedResource() throws InstanceNotFoundException, InvalidTargetObjectTypeException, MBeanException, RuntimeOperationsException(Code)(Java Doc) public String getModelerType()(Code)(Java Doc) public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc) public String getObjectName()(Code)(Java Doc) public Object invoke(String name, Object params, String signature) throws MBeanException, ReflectionException(Code)(Java Doc) public void postDeregister()(Code)(Java Doc) public void postRegister(Boolean registrationDone)(Code)(Java Doc) public void preDeregister() throws Exception(Code)(Java Doc) public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc) public void removeAttributeChangeNotificationListener(NotificationListener listener, String name) throws ListenerNotFoundException(Code)(Java Doc) public void removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) throws ListenerNotFoundException(Code)(Java Doc) public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc) public void removeNotificationListener(NotificationListener listener, Object handback) throws ListenerNotFoundException(Code)(Java Doc) public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc) public void sendAttributeChangeNotification(AttributeChangeNotification notification) throws MBeanException, RuntimeOperationsException(Code)(Java Doc) public void sendAttributeChangeNotification(Attribute oldValue, Attribute newValue) throws MBeanException, RuntimeOperationsException(Code)(Java Doc) public void sendNotification(Notification notification) throws MBeanException, RuntimeOperationsException(Code)(Java Doc) public void sendNotification(String message) throws MBeanException, RuntimeOperationsException(Code)(Java Doc) public void setAttribute(Attribute attribute) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)(Java Doc) public AttributeList setAttributes(AttributeList attributes)(Code)(Java Doc) public void setManagedBean(ManagedBean managedBean)(Code)(Java Doc) public void setManagedResource(Object resource, String type) throws InstanceNotFoundException, MBeanException, RuntimeOperationsException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|