com.atlassian.webdriver.jira.component.header
Class JiraHeader

java.lang.Object
  extended by com.atlassian.webdriver.jira.component.header.JiraHeader
All Implemented Interfaces:
Header, UserDiscoverable

public class JiraHeader
extends Object
implements UserDiscoverable, Header

Since:
2.0

Constructor Summary
JiraHeader()
           
 
Method Summary
 AdminMenu getAdminMenu()
           
 DashboardMenu getDashboardMenu()
           
 JiraUserMenu getUserMenu()
           
 WebSudoBanner getWebSudoBanner()
           
 void init()
           
 boolean isAdmin()
           
 boolean isLoggedIn()
           
<M extends Page>
M
logout(Class<M> nextPage)
          Logs out the user if currently logged in and sends the browser to the next page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraHeader

public JiraHeader()
Method Detail

init

public void init()

getDashboardMenu

public DashboardMenu getDashboardMenu()

getAdminMenu

public AdminMenu getAdminMenu()

getUserMenu

public JiraUserMenu getUserMenu()

isLoggedIn

public boolean isLoggedIn()
Specified by:
isLoggedIn in interface Header
Specified by:
isLoggedIn in interface UserDiscoverable
Returns:
true if a user is logged in, false otherwise.

isAdmin

public boolean isAdmin()
Specified by:
isAdmin in interface UserDiscoverable

logout

public <M extends Page> M logout(Class<M> nextPage)
Description copied from interface: Header
Logs out the user if currently logged in and sends the browser to the next page.

Specified by:
logout in interface Header
Type Parameters:
M - The page type
Parameters:
nextPage - The next page to visit, which may involve changing the URL. Cannot be null.
Returns:
The next page, fully loaded and initialized.

getWebSudoBanner

public WebSudoBanner getWebSudoBanner()
Specified by:
getWebSudoBanner in interface Header
Returns:
The WebSudoBanner page object


Copyright © 2014 Atlassian. All rights reserved.