|
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.UserMBean
public class UserMBean
A ModelMBean implementation for the
org.apache.catalina.User
component.
Field Summary | |
---|---|
protected ManagedBean |
managed
The ManagedBean information describing this MBean. |
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 | |
---|---|
UserMBean()
Construct a ModelMBean with default
ModelMBeanInfo information. |
Method Summary | |
---|---|
void |
addGroup(java.lang.String groupname)
Add a new Group to those this user belongs to. |
void |
addRole(java.lang.String rolename)
Add a new Role to those this user belongs to. |
java.lang.String[] |
getGroups()
Return the MBean Names of all groups this user is a member of. |
java.lang.String[] |
getRoles()
Return the MBean Names of all roles assigned to this user. |
void |
removeGroup(java.lang.String groupname)
Remove a Group from those this user belongs to. |
void |
removeRole(java.lang.String rolename)
Remove a Role from those this user belongs to. |
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.
Constructor Detail |
---|
public UserMBean() 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 void addGroup(java.lang.String groupname)
Group
to those this user belongs to.
groupname
- Group name of the new grouppublic void addRole(java.lang.String rolename)
Role
to those this user belongs to.
rolename
- Role name of the new rolepublic void removeGroup(java.lang.String groupname)
Group
from those this user belongs to.
groupname
- Group name of the old grouppublic void removeRole(java.lang.String rolename)
Role
from those this user belongs to.
rolename
- Role name of the old role
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |