com.atlassian.webdriver.confluence.component.header
Class ConfluenceHeader

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

public class ConfluenceHeader
extends Object
implements Header, UserDiscoverable

Since:
2.0

Constructor Summary
ConfluenceHeader()
           
 
Method Summary
 BrowseMenu getBrowseMenu()
           
 ConfluenceUserMenu getUserMenu()
           
 WebSudoBanner getWebSudoBanner()
           
 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

ConfluenceHeader

public ConfluenceHeader()
Method Detail

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.

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

isAdmin

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

getUserMenu

public ConfluenceUserMenu getUserMenu()

getBrowseMenu

public BrowseMenu getBrowseMenu()


Copyright © 2014 Atlassian. All rights reserved.