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)
JiraWebSudo
authenticate
in interface JiraWebSudo
password
- the password to submit.public <T> T authenticate(String password, Class<T> targetPage, Object... args)
JiraWebSudo
authenticate
in interface JiraWebSudo
T
- 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)
JiraWebSudo
authenticateFail
in interface JiraWebSudo
password
- the password to submit.public <T> T cancel(Class<T> expectedPage, Object... args)
JiraWebSudo
cancel
in interface JiraWebSudo
T
- 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()
JiraWebSudo
cancel
in interface JiraWebSudo
protected abstract void afterAuthenticate()
Copyright © 2002-2018 Atlassian. All Rights Reserved.