public class DataSourceUserDatabaseMBean extends BaseModelMBean
A ModelMBean implementation for the
org.apache.catalina.users.DataSourceUserDatabase
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 |
---|
DataSourceUserDatabaseMBean() |
Modifier and Type | Method and Description |
---|---|
void |
addGroupRole(String groupname,
String rolename)
Add role to a group.
|
void |
addUserGroup(String username,
String groupname)
Add group to user.
|
void |
addUserRole(String username,
String rolename)
Add specified role to the user.
|
void |
changeUserPassword(String username,
String password)
Change user credentials.
|
String |
createGroup(String groupname,
String description)
Create a new Group and return the corresponding name.
|
String |
createRole(String rolename,
String description)
Create a new Role and return the corresponding name.
|
String |
createUser(String username,
String password,
String fullName)
Create a new User and return the corresponding name.
|
String[] |
getGroupRoles(String groupname)
Get roles for a group.
|
String[] |
getGroups() |
String[] |
getRoles() |
String[] |
getUserGroups(String username)
Get groups for a user.
|
String[] |
getUserRoles(String username)
Get roles for a user.
|
String[] |
getUsers() |
void |
removeGroup(String groupname)
Remove an existing group.
|
void |
removeGroupRole(String groupname,
String rolename)
Remove role from a group.
|
void |
removeRole(String rolename)
Remove an existing role.
|
void |
removeUser(String username)
Remove an existing user.
|
void |
removeUserGroup(String username,
String groupname)
Remove group from user.
|
void |
removeUserRole(String username,
String rolename)
Remove specified role from the user.
|
addAttributeChangeNotificationListener, 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
protected final Registry registry
protected final ManagedBean managed
ManagedBean
information describing this MBean.public String[] getGroups()
public String[] getRoles()
public String[] getUsers()
public String createGroup(String groupname, String description)
groupname
- Group name of the new groupdescription
- Description of the new grouppublic String createRole(String rolename, String description)
rolename
- Group name of the new groupdescription
- Description of the new grouppublic String createUser(String username, String password, String fullName)
username
- User name of the new userpassword
- Password for the new userfullName
- Full name for the new userpublic void removeGroup(String groupname)
groupname
- Group name to removepublic void removeRole(String rolename)
rolename
- Role name to removepublic void removeUser(String username)
username
- User name to removepublic void changeUserPassword(String username, String password)
username
- The user namepassword
- The new credentialspublic void addUserRole(String username, String rolename)
username
- The user namerolename
- The role namepublic void removeUserRole(String username, String rolename)
username
- The user namerolename
- The role namepublic String[] getUserRoles(String username)
username
- The user namepublic void addUserGroup(String username, String groupname)
username
- The user namegroupname
- The group namepublic void removeUserGroup(String username, String groupname)
username
- The user namegroupname
- The group namepublic String[] getUserGroups(String username)
username
- The user namepublic void addGroupRole(String groupname, String rolename)
groupname
- The group namerolename
- The role namepublic void removeGroupRole(String groupname, String rolename)
groupname
- The group namerolename
- The role nameCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.