com.atlassian.studio.haup.pageobjects
Class BulkAddApplicationAccessPage

java.lang.Object
  extended by com.atlassian.studio.haup.pageobjects.AbstractHaupPage
      extended by com.atlassian.studio.haup.pageobjects.BulkAddApplicationAccessPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page

public class BulkAddApplicationAccessPage
extends AbstractHaupPage

Represents the Application Access page, which you can find in the Administration menu of Jira / Jira Studio.


Field Summary
 
Fields inherited from class com.atlassian.studio.haup.pageobjects.AbstractHaupPage
driver, finder, footer, pageBinder, title
 
Constructor Summary
BulkAddApplicationAccessPage()
           
 
Method Summary
 Set<SupportedApplication> getApplicationsToGrant()
          Returns the current selected applications to grant to the users.
 List<SupportedApplication> getAvailableApplications()
          Returns the list of applications that the user may chose.
protected  String getPageTitle()
          Returns the title of the page.
 RemainingAccessSection getRemainingAccessSection()
          Returns the remaining access section on the page.
 String getUrl()
           
 String getUserList()
           
 BulkAddApplicationAccessPage submit(List<String> usernames, List<SupportedApplication> applicationsToGrant)
          Submits the form with the given list of users and applications.
 BulkAddApplicationAccessPage submit(String users, List<SupportedApplication> applicationsToGrant)
          Submits the form with the given list of users and applications
 
Methods inherited from class com.atlassian.studio.haup.pageobjects.AbstractHaupPage
getMessages, getMessages, getMessages, waitForPageLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkAddApplicationAccessPage

public BulkAddApplicationAccessPage()
Method Detail

getPageTitle

protected String getPageTitle()
Description copied from class: AbstractHaupPage
Returns the title of the page. The page will wait until this title appears to determine that the correct page has been loaded. The title must be in the <h1> tag.

Specified by:
getPageTitle in class AbstractHaupPage
Returns:
title of the page

getUrl

public String getUrl()

getAvailableApplications

public List<SupportedApplication> getAvailableApplications()
Returns the list of applications that the user may chose.

Returns:
the list of applications. If there are no available applications, an empty list will be returned.

getApplicationsToGrant

public Set<SupportedApplication> getApplicationsToGrant()
Returns the current selected applications to grant to the users.

Returns:
applications (name of application comes from SupportedApplication#name()) to grant to the new user

submit

public BulkAddApplicationAccessPage submit(List<String> usernames,
                                           List<SupportedApplication> applicationsToGrant)
Submits the form with the given list of users and applications.

Parameters:
usernames - A list of user names. Cannot be null.
applicationsToGrant - a list of accesses: any combination of elements of getAvailableApplications(). Any other string will have no effect.
Returns:
the new page after submitting

submit

public BulkAddApplicationAccessPage submit(String users,
                                           List<SupportedApplication> applicationsToGrant)
Submits the form with the given list of users and applications

Parameters:
users - A comma-separated list of users. Cannot be null.
applicationsToGrant - a list of accesses: any combination of elements of getAvailableApplications(). Any other string will have no effect.
Returns:
the new page after submitting

getUserList

public String getUserList()
Returns:
the list of users as presented in the textbox

getRemainingAccessSection

public RemainingAccessSection getRemainingAccessSection()
Returns the remaining access section on the page.

Returns:
remaining access section


Copyright © 2002-2012 Atlassian. All Rights Reserved.