com.atlassian.studio.haup.pageobjects
Class AddUserWithAppPermissionsPage
java.lang.Object
com.atlassian.jira.pageobjects.pages.AbstractJiraPage
com.atlassian.jira.pageobjects.pages.admin.user.AddUserPage
com.atlassian.studio.haup.pageobjects.AddUserWithAppPermissionsPage
- All Implemented Interfaces:
- com.atlassian.pageobjects.Page
public class AddUserWithAppPermissionsPage
- extends AddUserPage
The "Add a user" page in the JIRA administration. It adds convenience methods to the original AddUserPage provided by JIRA.
|
Field Summary |
protected com.atlassian.pageobjects.elements.PageElementFinder |
finder
|
protected com.atlassian.pageobjects.elements.PageElement |
footer
|
protected com.atlassian.pageobjects.elements.PageElement |
title
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
finder
@Inject
protected com.atlassian.pageobjects.elements.PageElementFinder finder
title
protected com.atlassian.pageobjects.elements.PageElement title
footer
protected com.atlassian.pageobjects.elements.PageElement footer
AddUserWithAppPermissionsPage
public AddUserWithAppPermissionsPage()
addUser
public AddUserWithAppPermissionsPage addUser(String username,
Set<SupportedApplication> applicationsToGrant)
- Creates a user with the specified application accesses.
- Parameters:
username - the username. The username will also be used for the password, full name, and email (with \@test.com appended)applicationsToGrant - applications to grant to the new user. If null, then no applications will be granted to the user
- Throws:
IllegalStateException - if the method is called twice on the same page.
IllegalArgumentException - if the username is null
addUser
public AddUserWithAppPermissionsPage addUser(String username)
setApplicationsToGrant
public void setApplicationsToGrant(Set<SupportedApplication> applicationsToGrant)
- Sets the applications to grant to the new user.
- Parameters:
applicationsToGrant - list of applications to grant to the new user
getApplicationsToGrant
public Set<SupportedApplication> getApplicationsToGrant()
- Returns the applications to grant to the new user.
- Returns:
- applications (name of application comes from SupportedApplication#name()) to grant to the new user
isGrantAccessCheckboxPresentForApplication
public boolean isGrantAccessCheckboxPresentForApplication(SupportedApplication application)
isRemainingValuePresentForApplication
public boolean isRemainingValuePresentForApplication(SupportedApplication application)
isApplicationAccessSectionPresent
public boolean isApplicationAccessSectionPresent()
getRemainingAccessSection
public RemainingAccessSection getRemainingAccessSection()
- Returns the remaining access section on the page.
- Returns:
- remaining access section
Copyright © 2002-2012 Atlassian. All Rights Reserved.