public class UserMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.User
component.
Modifier and Type | Field and Description |
---|---|
protected ManagedBean |
managed
The
ManagedBean information describing this MBean. |
protected Registry |
registry
The configuration information registry for our managed beans.
|
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
Constructor and Description |
---|
UserMBean()
Construct a
ModelMBean with default
ModelMBeanInfo information. |
Modifier and Type | Method and Description |
---|---|
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. |
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
protected Registry registry
protected ManagedBean managed
ManagedBean
information describing this MBean.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 exceptionjavax.management.RuntimeOperationsException
- if an IllegalArgumentException
occurspublic 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 roleCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.