A ModelMBean implementation for the org.apache.catalina.users.DataSourceUserDatabase
component.
| Modifier and Type | Field and Description |
|---|---|
| protected final ManagedBean | managed
The |
| protected final Registry | registry
The configuration information registry for our managed beans. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | addUserRole(String
The user name username, String The role name rolename)Add specified role to the user. |
| public void | changeUserPassword(String
The user name username, String The new credentials password)Change user credentials. |
| public String | Returns: the new group nameGroup name of the new group groupname, String Description of the new group description)Create a new Group and return the corresponding name. |
| public String | Returns: the new role nameGroup name of the new group rolename, String Description of the new group description)Create a new Role and return the corresponding name. |
| public String | Returns: the new user nameUser name of the new user username, String Password for the new user password, String Full name for the new user fullName)Create a new User and return the corresponding name. |
| public String[] | |
| public String[] | |
| public String[] | |
| public String[] | |
| public String[] | |
| public String[] | |
| public void | |
| public void | removeGroupRole(String
The group name groupname, String The role name rolename)Remove role from a group. |
| public void | |
| public void | |
| public void | removeUserGroup(String
The user name username, String The group name groupname)Remove group from user. |
| public void | removeUserRole(String
The user name username, String The role name rolename)Remove specified role from the user. |
| managed | back to summary |
|---|---|
| protected final ManagedBean managed The | |
| registry | back to summary |
|---|---|
| protected final Registry registry The configuration information registry for our managed beans. | |
| DataSourceUserDatabaseMBean | back to summary |
|---|---|
| public DataSourceUserDatabaseMBean() | |
| addGroupRole | back to summary |
|---|---|
| public void addGroupRole(String groupname, String rolename) Add role to a group. | |
| addUserGroup | back to summary |
|---|---|
| public void addUserGroup(String username, String groupname) Add group to user. | |
| addUserRole | back to summary |
|---|---|
| public void addUserRole(String username, String rolename) Add specified role to the user. | |
| changeUserPassword | back to summary |
|---|---|
| public void changeUserPassword(String username, String password) Change user credentials. | |
| createGroup | back to summary |
|---|---|
| public String createGroup(String groupname, String description) Create a new Group and return the corresponding name. | |
| createRole | back to summary |
|---|---|
| public String createRole(String rolename, String description) Create a new Role and return the corresponding name. | |
| createUser | back to summary |
|---|---|
| public String createUser(String username, String password, String fullName) Create a new User and return the corresponding name. | |
| getGroupRoles | back to summary |
|---|---|
| public String[] getGroupRoles(String groupname) Get roles for a group. | |
| getGroups | back to summary |
|---|---|
public String[] getGroups()
| |
| getRoles | back to summary |
|---|---|
public String[] getRoles()
| |
| getUserGroups | back to summary |
|---|---|
| public String[] getUserGroups(String username) Get groups for a user. | |
| getUserRoles | back to summary |
|---|---|
| public String[] getUserRoles(String username) Get roles for a user. | |
| getUsers | back to summary |
|---|---|
public String[] getUsers()
| |
| removeGroup | back to summary |
|---|---|
| public void removeGroup(String groupname) Remove an existing group.
| |
| removeGroupRole | back to summary |
|---|---|
| public void removeGroupRole(String groupname, String rolename) Remove role from a group. | |
| removeRole | back to summary |
|---|---|
| public void removeRole(String rolename) Remove an existing role.
| |
| removeUser | back to summary |
|---|---|
| public void removeUser(String username) Remove an existing user.
| |
| removeUserGroup | back to summary |
|---|---|
| public void removeUserGroup(String username, String groupname) Remove group from user. | |
| removeUserRole | back to summary |
|---|---|
| public void removeUserRole(String username, String rolename) Remove specified role from the user. | |