com.atlassian.studio.haup.pageobjects
Class AddUserWithAppPermissionsPage

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.AbstractJiraPage
      extended by com.atlassian.jira.pageobjects.pages.admin.user.AddUserPage
          extended by 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
           
 
Fields inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
body, driver, elementFinder, footerElement, metaElement, pageBinder
 
Constructor Summary
AddUserWithAppPermissionsPage()
           
 
Method Summary
 AddUserWithAppPermissionsPage addUser(String username)
           
 AddUserWithAppPermissionsPage addUser(String username, Set<SupportedApplication> applicationsToGrant)
          Creates a user with the specified application accesses.
 Set<SupportedApplication> getApplicationsToGrant()
          Returns the applications to grant to the new user.
 RemainingAccessSection getRemainingAccessSection()
          Returns the remaining access section on the page.
 boolean isApplicationAccessSectionPresent()
           
 boolean isGrantAccessCheckboxPresentForApplication(SupportedApplication application)
           
 boolean isRemainingValuePresentForApplication(SupportedApplication application)
           
 void setApplicationsToGrant(Set<SupportedApplication> applicationsToGrant)
          Sets the applications to grant to the new user.
 
Methods inherited from class com.atlassian.jira.pageobjects.pages.admin.user.AddUserPage
addUser, cancelCreateUser, createUser, createUser, createUserExpectingError, getUrl, isAt
 
Methods inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
back, createXsrfUrl, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AddUserWithAppPermissionsPage

public AddUserWithAppPermissionsPage()
Method Detail

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.