|
||||||||||
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 |
addGroupToGroup(Group childGroup,
Group parentGroup)
Add childGroup to parentGroup. |
void |
addUserToGroup(String userName,
String groupName)
|
void |
addUserToGroup(User user,
Group group)
|
void |
changePassword(String username,
String newPassword)
Change a user's password. |
void |
createGroup(String groupName)
|
void |
createUser(User user)
Creates the user, adds it to the default confluence-users group, and ensures the user profile is created (to work around CONF-6404). |
void |
fixUser(User user)
Ensure that the user's details in the system match those in user . |
void |
removeExternalUsersAndGroups()
Clean up any users and groups created by this user management helper or otherwise. |
void |
removeGroup(String groupName)
|
void |
removeGroupUncleanly(Group group)
Removes a group but do not remove their dependent permissions. |
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. |
void |
removeUserUncleanly(User user)
Removes a user but do not remove their dependent permissions or pages. |
Method Detail |
---|
void createUser(User user)
void addUserToGroup(String userName, String groupName)
void addUserToGroup(User user, Group group)
void addGroupToGroup(Group childGroup, Group parentGroup)
void removeExternalUsersAndGroups()
void removeUser(String username)
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 removeUserUncleanly(User user)
user
- the user to remove
org.apache.xmlrpc.XmlRpcException
- if there were problems removing the uservoid removeGroupUncleanly(Group group)
group
- the group to remove
org.apache.xmlrpc.XmlRpcException
- if there were problems removing the groupvoid 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 ofvoid changePassword(String username, String newPassword)
username
- Username of the user whose password to changenewPassword
- Password
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |