Package org.apache.catalina.mbeans
Class UserMBean
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.BaseModelMBean
- 
- org.apache.catalina.mbeans.UserMBean
 
 
- 
- All Implemented Interfaces:
- javax.management.DynamicMBean,- javax.management.MBeanRegistration,- javax.management.modelmbean.ModelMBeanNotificationBroadcaster,- javax.management.NotificationBroadcaster
 
 public class UserMBean extends BaseModelMBean A ModelMBean implementation for the org.apache.catalina.Usercomponent.- Author:
- Craig R. McClanahan
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ManagedBeanmanagedTheManagedBeaninformation describing this MBean.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 UserMBean()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(java.lang.String groupname)Add a newGroupto those this user belongs to.voidaddRole(java.lang.String rolename)Add a newRoleto those this user belongs to.java.lang.String[]getGroups()java.lang.String[]getRoles()voidremoveGroup(java.lang.String groupname)Remove aGroupfrom those this user belongs to.voidremoveRole(java.lang.String rolename)Remove aRolefrom those this user belongs to.- 
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.
 
- 
 - 
Method Detail- 
getGroupspublic java.lang.String[] getGroups() - Returns:
- the MBean Names of all groups this user is a member of.
 
 - 
getRolespublic java.lang.String[] getRoles() - Returns:
- the MBean Names of all roles assigned to this user.
 
 - 
addGrouppublic void addGroup(java.lang.String groupname) Add a newGroupto those this user belongs to.- Parameters:
- groupname- Group name of the new group
 
 - 
addRolepublic void addRole(java.lang.String rolename) Add a newRoleto those this user belongs to.- Parameters:
- rolename- Role name of the new role
 
 - 
removeGrouppublic void removeGroup(java.lang.String groupname) Remove aGroupfrom those this user belongs to.- Parameters:
- groupname- Group name of the old group
 
 - 
removeRolepublic void removeRole(java.lang.String rolename) Remove aRolefrom those this user belongs to.- Parameters:
- rolename- Role name of the old role
 
 
- 
 
-