com.atlassian.jira.pageobjects.websudo
Class DecoratedJiraWebSudo

java.lang.Object
  extended by com.atlassian.jira.pageobjects.websudo.DecoratedJiraWebSudo
All Implemented Interfaces:
JiraWebSudo

public abstract class DecoratedJiraWebSudo
extends Object
implements JiraWebSudo

Since:
v5.2

Constructor Summary
DecoratedJiraWebSudo(JiraWebSudo sudo)
           
 
Method Summary
protected abstract  void afterAuthenticate()
           
 void authenticate(String password)
          Submit a password.
<T> T
authenticate(String password, Class<T> targetPage, Object... args)
          Submit the password for websudo and bind the passed page.
 JiraWebSudo authenticateFail(String password)
          Submit the wrong password for websudo.
 void cancel()
          Cancel websudo.
<T> T
cancel(Class<T> expectedPage, Object... args)
          Cancel websudo and bind the passed page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedJiraWebSudo

public DecoratedJiraWebSudo(JiraWebSudo sudo)
Method Detail

authenticate

public void authenticate(String password)
Description copied from interface: JiraWebSudo
Submit a password.

Specified by:
authenticate in interface JiraWebSudo
Parameters:
password - the password to submit.

authenticate

public <T> T authenticate(String password,
                          Class<T> targetPage,
                          Object... args)
Description copied from interface: JiraWebSudo
Submit the password for websudo and bind the passed page.

Specified by:
authenticate in interface JiraWebSudo
Type Parameters:
T - the type of the page to bind.
Parameters:
password - the password to submit.
targetPage - the page to bind after the submit.
args - arguments for targetPage during the bind.
Returns:
a newly bound page after websudo.

authenticateFail

public JiraWebSudo authenticateFail(String password)
Description copied from interface: JiraWebSudo
Submit the wrong password for websudo.

Specified by:
authenticateFail in interface JiraWebSudo
Parameters:
password - the password to submit.
Returns:
this websudo form.

cancel

public <T> T cancel(Class<T> expectedPage,
                    Object... args)
Description copied from interface: JiraWebSudo
Cancel websudo and bind the passed page.

Specified by:
cancel in interface JiraWebSudo
Type Parameters:
T - the type of the page to bind.
Parameters:
expectedPage - the page to bind after the cancel.
args - arguments for targetPage during the bind.
Returns:
a newly bound page after cancel.

cancel

public void cancel()
Description copied from interface: JiraWebSudo
Cancel websudo.

Specified by:
cancel in interface JiraWebSudo

afterAuthenticate

protected abstract void afterAuthenticate()


Copyright © 2002-2013 Atlassian. All Rights Reserved.