public abstract class DecoratedJiraWebSudo extends Object implements JiraWebSudo
| Constructor and Description |
|---|
DecoratedJiraWebSudo(JiraWebSudo sudo) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DecoratedJiraWebSudo(JiraWebSudo sudo)
public void authenticate(String password)
JiraWebSudoauthenticate in interface JiraWebSudopassword - the password to submit.public <T> T authenticate(String password, Class<T> targetPage, Object... args)
JiraWebSudoauthenticate in interface JiraWebSudoT - the type of the page to bind.password - the password to submit.targetPage - the page to bind after the submit.args - arguments for targetPage during the bind.public JiraWebSudo authenticateFail(String password)
JiraWebSudoauthenticateFail in interface JiraWebSudopassword - the password to submit.public <T> T cancel(Class<T> expectedPage, Object... args)
JiraWebSudocancel in interface JiraWebSudoT - the type of the page to bind.expectedPage - the page to bind after the cancel.args - arguments for targetPage during the bind.public void cancel()
JiraWebSudocancel in interface JiraWebSudoprotected abstract void afterAuthenticate()
Copyright © 2002-2018 Atlassian. All Rights Reserved.