Package org.apache.catalina.mbeans
Class UserMBean
java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.catalina.mbeans.UserMBean
- All Implemented Interfaces:
- DynamicMBean,- MBeanRegistration,- ModelMBeanNotificationBroadcaster,- NotificationBroadcaster
 A ModelMBean implementation for the org.apache.catalina.User component.
 
- Author:
- Craig R. McClanahan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final ManagedBeanTheManagedBeaninformation describing this MBean.protected final RegistryThe configuration information registry for our managed beans.Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBeanattributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a newGroupto those this user belongs to.voidAdd a newRoleto those this user belongs to.String[]String[]getRoles()voidremoveGroup(String groupname) Remove aGroupfrom those this user belongs to.voidremoveRole(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 Details- 
registryThe configuration information registry for our managed beans.
- 
managedTheManagedBeaninformation describing this MBean.
 
- 
- 
Constructor Details- 
UserMBeanpublic UserMBean()
 
- 
- 
Method Details- 
getGroups- Returns:
- the MBean Names of all groups this user is a member of.
 
- 
getRoles- Returns:
- the MBean Names of all roles assigned to this user.
 
- 
addGroupAdd a newGroupto those this user belongs to.- Parameters:
- groupname- Group name of the new group
 
- 
addRoleAdd a newRoleto those this user belongs to.- Parameters:
- rolename- Role name of the new role
 
- 
removeGroupRemove aGroupfrom those this user belongs to.- Parameters:
- groupname- Group name of the old group
 
- 
removeRoleRemove aRolefrom those this user belongs to.- Parameters:
- rolename- Role name of the old role
 
 
-