1 package com.atlassian.pageobjects.component;
2
3 import com.atlassian.pageobjects.Page;
4
5 /**
6 * Header component to be implemented via an override by the products
7 * @since 2.0
8 */
9 public interface Header
10 {
11 /**
12 * @return true if a user is logged in, false otherwise.
13 */
14 boolean isLoggedIn();
15
16 /**
17 * Logs out the user if currently logged in and sends the browser to the next page.
18 *
19 * @param nextPage The next page to visit, which may involve changing the URL. Cannot be null.
20 * @param <M> The page type
21 * @return The next page, fully loaded and initialized.
22 */
23 <M extends Page> M logout(Class<M> nextPage);
24
25 /**
26 * @return The WebSudoBanner page object
27 */
28 WebSudoBanner getWebSudoBanner();
29 }