public class UsersAndGroupsImpl extends Object implements UsersAndGroups
| Constructor and Description |
|---|
UsersAndGroupsImpl(net.sourceforge.jwebunit.WebTester tester,
Navigation navigation,
TextAssertions text,
LocatorFactory locators) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String groupName)
Adds the specified group.
|
void |
addUser(String username)
Creates a user with the given username and the same password, fullname and an email address username@example.com
|
void |
addUser(String username,
String password,
String fullname,
String emailAddress)
Adds a user with specified values.
|
void |
addUser(String username,
String password,
String fullname,
String emailAddress,
boolean sendEmail)
Adds a user with specified values.
|
void |
addUserToGroup(String userName,
String groupName)
Adds the specified user to the specified group
|
void |
addUserWithoutVerifyingResult(String username,
String password,
String fullname,
String emailAddress)
Attempts to add a user with specified values, but does not verify that the add succeeded.
|
void |
addUserWithoutVerifyingResult(String username,
String password,
String fullname,
String emailAddress,
boolean sendEmail)
Attempts to add a user with specified values, but does not verify that the add succeeded.
|
void |
deleteGroup(String groupname)
Removes a group given the groupname.
|
void |
deleteUser(String username)
Removes a user given the username.
|
EditUserPage |
gotoEditUser(String username)
Navigate to the edit user page in the admin section for the given user.
|
void |
gotoUserBrowser()
Navigate to the user browser page.
|
void |
gotoViewUser(String username)
Navigate to the view user page in the admin section for the given user.
|
void |
removeUserFromGroup(String userName,
String groupName)
Removes an user from a specified group.
|
boolean |
userExists(String username)
Check if user with given username exists.
|
@Inject
public UsersAndGroupsImpl(net.sourceforge.jwebunit.WebTester tester,
Navigation navigation,
TextAssertions text,
LocatorFactory locators)
public void addUser(String username)
addUser in interface UsersAndGroupsusername - the username.public boolean userExists(String username)
UsersAndGroupsuserExists in interface UsersAndGroupsusername - username to check.public void addUser(String username, String password, String fullname, String emailAddress)
UsersAndGroupsaddUser in interface UsersAndGroupsusername - usernamepassword - user passwordfullname - user's fullnameemailAddress - email address of userpublic void addUser(String username, String password, String fullname, String emailAddress, boolean sendEmail)
UsersAndGroupsaddUser in interface UsersAndGroupsusername - usernamepassword - user passwordfullname - user's fullnameemailAddress - email address of usersendEmail - flag to send a notification email to the new userpublic void addUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress)
UsersAndGroupsaddUserWithoutVerifyingResult in interface UsersAndGroupsusername - usernamepassword - user passwordfullname - user's fullnameemailAddress - email address of userpublic void addUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress, boolean sendEmail)
UsersAndGroupsaddUserWithoutVerifyingResult in interface UsersAndGroupsusername - usernamepassword - user passwordfullname - user's fullnameemailAddress - email address of usersendEmail - flag to send a notification email to the new userpublic void deleteUser(String username)
UsersAndGroupsdeleteUser in interface UsersAndGroupsusername - The username of the user to delete.public void deleteGroup(String groupname)
UsersAndGroupsdeleteGroup in interface UsersAndGroupsgroupname - The name of the group to delete.public void gotoViewUser(String username)
UsersAndGroupsgotoViewUser in interface UsersAndGroupsusername - The username of the user to view.public void gotoUserBrowser()
UsersAndGroupsgotoUserBrowser in interface UsersAndGroupspublic EditUserPage gotoEditUser(String username)
UsersAndGroupsgotoEditUser in interface UsersAndGroupsusername - The username of the user to edit.public void addUserToGroup(String userName, String groupName)
UsersAndGroupsaddUserToGroup in interface UsersAndGroupsuserName - the user to add.groupName - the group to join.public void addGroup(String groupName)
UsersAndGroupsaddGroup in interface UsersAndGroupsgroupName - the name of the group to create.public void removeUserFromGroup(String userName, String groupName)
UsersAndGroupsremoveUserFromGroup in interface UsersAndGroupsuserName - The name of the user to remove from the group.groupName - The name of the group to remove the user from.Copyright © 2002-2021 Atlassian. All Rights Reserved.