|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.admin.UsersAndGroupsImpl
public class UsersAndGroupsImpl
Admin operations for users and groups
Constructor Summary | |
---|---|
UsersAndGroupsImpl(net.sourceforge.jwebunit.WebTester tester,
Navigation navigation,
TextAssertions text,
LocatorFactory locators)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsersAndGroupsImpl(net.sourceforge.jwebunit.WebTester tester, Navigation navigation, TextAssertions text, LocatorFactory locators)
Method Detail |
---|
public void addUser(String username)
addUser
in interface UsersAndGroups
username
- the username.public boolean userExists(String username)
UsersAndGroups
userExists
in interface UsersAndGroups
username
- username to check.
public void addUser(String username, String password, String fullname, String emailAddress)
UsersAndGroups
addUser
in interface UsersAndGroups
username
- usernamepassword
- user passwordfullname
- user's fullnameemailAddress
- email address of userpublic void addUser(String username, String password, String fullname, String emailAddress, boolean sendEmail)
UsersAndGroups
addUser
in interface UsersAndGroups
username
- 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)
UsersAndGroups
addUserWithoutVerifyingResult
in interface UsersAndGroups
username
- usernamepassword
- user passwordfullname
- user's fullnameemailAddress
- email address of userpublic void addUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress, boolean sendEmail)
UsersAndGroups
addUserWithoutVerifyingResult
in interface UsersAndGroups
username
- usernamepassword
- user passwordfullname
- user's fullnameemailAddress
- email address of usersendEmail
- flag to send a notification email to the new userpublic void deleteUser(String username)
UsersAndGroups
deleteUser
in interface UsersAndGroups
username
- The username of the user to delete.public void deleteGroup(String groupname)
UsersAndGroups
deleteGroup
in interface UsersAndGroups
groupname
- The name of the group to delete.public void gotoViewUser(String username)
UsersAndGroups
gotoViewUser
in interface UsersAndGroups
username
- The username of the user to view.public void gotoUserBrowser()
UsersAndGroups
gotoUserBrowser
in interface UsersAndGroups
public EditUserPage gotoEditUser(String username)
UsersAndGroups
gotoEditUser
in interface UsersAndGroups
username
- The username of the user to edit.public void addUserToGroup(String userName, String groupName)
UsersAndGroups
addUserToGroup
in interface UsersAndGroups
userName
- the user to add.groupName
- the group to join.public void addGroup(String groupName)
UsersAndGroups
addGroup
in interface UsersAndGroups
groupName
- the name of the group to create.public void removeUserFromGroup(String userName, String groupName)
UsersAndGroups
removeUserFromGroup
in interface UsersAndGroups
userName
- The name of the user to remove from the group.groupName
- The name of the group to remove the user from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |