|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.modeler.BaseModelMBean org.apache.catalina.mbeans.MemoryUserDatabaseMBean
public class MemoryUserDatabaseMBean
A ModelMBean implementation for the
org.apache.catalina.users.MemoryUserDatabase
component.
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 javax.management.MBeanServer |
mserver
The MBeanServer in which we are registered. |
protected Registry |
registry
The configuration information registry for our managed beans. |
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean |
---|
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType |
Constructor Summary | |
---|---|
MemoryUserDatabaseMBean()
Construct a ModelMBean with default
ModelMBeanInfo information. |
Method Summary | |
---|---|
java.lang.String |
createGroup(java.lang.String groupname,
java.lang.String description)
Create a new Group and return the corresponding MBean Name. |
java.lang.String |
createRole(java.lang.String rolename,
java.lang.String description)
Create a new Role and return the corresponding MBean Name. |
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. |
java.lang.String |
findGroup(java.lang.String groupname)
Return the MBean Name for the specified group name (if any); otherwise return null . |
java.lang.String |
findRole(java.lang.String rolename)
Return the MBean Name for the specified role name (if any); otherwise return null . |
java.lang.String |
findUser(java.lang.String username)
Return the MBean Name for the specified user name (if any); otherwise return null . |
java.lang.String[] |
getGroups()
Return the MBean Names of all groups defined in this database. |
java.lang.String[] |
getRoles()
Return the MBean Names of all roles defined in this database. |
java.lang.String[] |
getUsers()
Return the MBean Names of all users defined in this database. |
void |
removeGroup(java.lang.String groupname)
Remove an existing group and destroy the corresponding MBean. |
void |
removeRole(java.lang.String rolename)
Remove an existing role and destroy the corresponding MBean. |
void |
removeUser(java.lang.String username)
Remove an existing user and destroy the corresponding MBean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Registry registry
protected javax.management.MBeanServer mserver
MBeanServer
in which we are registered.
protected ManagedBean managed
ManagedBean
information describing this MBean.
protected ManagedBean managedGroup
ManagedBean
information describing Group MBeans.
protected ManagedBean managedRole
ManagedBean
information describing Group MBeans.
protected ManagedBean managedUser
ManagedBean
information describing User MBeans.
Constructor Detail |
---|
public MemoryUserDatabaseMBean() throws javax.management.MBeanException, javax.management.RuntimeOperationsException
ModelMBean
with default
ModelMBeanInfo
information.
javax.management.MBeanException
- if the initializer of an object
throws an exception
javax.management.RuntimeOperationsException
- if an IllegalArgumentException
occursMethod Detail |
---|
public java.lang.String[] getGroups()
public java.lang.String[] getRoles()
public java.lang.String[] getUsers()
public java.lang.String createGroup(java.lang.String groupname, java.lang.String description)
groupname
- Group name of the new groupdescription
- Description of the new grouppublic java.lang.String createRole(java.lang.String rolename, java.lang.String description)
rolename
- Group name of the new groupdescription
- Description of the new grouppublic java.lang.String createUser(java.lang.String username, java.lang.String password, java.lang.String fullName)
username
- User name of the new userpassword
- Password for the new userfullName
- Full name for the new userpublic java.lang.String findGroup(java.lang.String groupname)
null
.
groupname
- Group name to look uppublic java.lang.String findRole(java.lang.String rolename)
null
.
rolename
- Role name to look uppublic java.lang.String findUser(java.lang.String username)
null
.
username
- User name to look uppublic void removeGroup(java.lang.String groupname)
groupname
- Group name to removepublic void removeRole(java.lang.String rolename)
rolename
- Role name to removepublic void removeUser(java.lang.String username)
username
- User name to remove
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |