public class

ResetPassword

extends JiraWebActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.user.ResetPassword

Class Overview

Handles the requests to reset a password for a specific user. The link to this action will come in an email sent from as a result of the execution of doExecute()

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
ResetPassword(UserUtil userUtil, PasswordPolicyManager passwordPolicyManager)
Public Methods
String doDefault()
Handles the request to render the Reset Password form.
String getConfirm()
String getOs_username()
String getPassword()
List<WebErrorMessage> getPasswordErrors()
String getToken()
boolean isTokenInvalid()
boolean isTokenTimedOut()
void setConfirm(String confirm)
void setOs_username(String os_username)
void setPassword(String password)
void setToken(String token)
Protected Methods
String doExecute()
Handles the request to set a new password for the user in play from the Reset Password form.
void validate()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public ResetPassword (UserUtil userUtil, PasswordPolicyManager passwordPolicyManager)

Public Methods

public String doDefault ()

Handles the request to render the Reset Password form.

Returns
  • The name of the view to be rendered. If there are any validation errors INPUT; Otherwise, ERROR is returned.

public String getConfirm ()

public String getOs_username ()

public String getPassword ()

public List<WebErrorMessage> getPasswordErrors ()

public String getToken ()

public boolean isTokenInvalid ()

public boolean isTokenTimedOut ()

public void setConfirm (String confirm)

public void setOs_username (String os_username)

public void setPassword (String password)

public void setToken (String token)

Protected Methods

protected String doExecute ()

Handles the request to set a new password for the user in play from the Reset Password form.

Returns
  • The name of the view to be rendered. If there are any input errors, and the token is invalid or expired ERROR; otherwise, SUCCESS is returned.

protected void validate ()