|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManagementHelper
Abstracts the process of creating/removing/updating users and groups so that we can use external user management in test cases.
| Method Summary | |
|---|---|
void |
addUserToGroup(String userName,
String groupName)
|
void |
cleanUpOldUsersAndGroups()
Clean up any users and groups created by this user management helper or otherwise. |
void |
createGroup(String groupName)
|
void |
createUser(String username,
String fullName,
String email,
String password)
|
void |
createUser(User user)
|
void |
editUser(User user)
Update the full name or e-mail address of the user. |
void |
fixUser(User user)
Ensure that the user's details in the system match those in user. |
void |
removeGroup(String groupName)
|
void |
removeUser(String username)
|
void |
removeUserFromGroup(String userName,
String groupName)
|
void |
removeUserUncleanly(String username)
Removes a user with the given username but do not remove their dependent permissions or pages. |
| Method Detail |
|---|
void addUserToGroup(String userName,
String groupName)
void createUser(String username,
String fullName,
String email,
String password)
void createUser(User user)
void cleanUpOldUsersAndGroups()
void removeUser(String username)
void editUser(User user)
user - the user containing new full name or e-mail address details.void createGroup(String groupName)
void removeUserFromGroup(String userName,
String groupName)
void removeGroup(String groupName)
void removeUserUncleanly(String username)
username - the username of the user to remove
org.apache.xmlrpc.XmlRpcException - if there were problems removing the uservoid fixUser(User user)
user. That is,
it finds the user in the system by its username, and sets the full name and email address.
user - a user to set the details of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||