com.atlassian.studio.haup.pageobjects
Class EditDefaultApplicationAccessPage

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

public class EditDefaultApplicationAccessPage
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
EditDefaultApplicationAccessPage()
           
 
Method Summary
 List<SupportedApplication> getAvailableApplications()
          Returns the list of applications that the user may chose.
 Set<SupportedApplication> getGrantedApplications()
          Returns the set of granted applications.
protected  String getPageTitle()
          Returns the title of the page.
 String getUrl()
           
 void submit(Set<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

EditDefaultApplicationAccessPage

public EditDefaultApplicationAccessPage()
Method Detail

getUrl

public String getUrl()

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

getAvailableApplications

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

Returns:
the list of applications. May return an empty list but never null.

submit

public void submit(Set<SupportedApplication> applicationsToGrant)
Submits the form with the given list of users and applications

Parameters:
applicationsToGrant - a list of accesses: any combination of elements of getAvailableApplications(). Any other string will have no effect. Users will not be granted to the other applications.

getGrantedApplications

public Set<SupportedApplication> getGrantedApplications()
Returns the set of granted applications. The set of granted applications may not necessarily have been applied yet.

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.