Interface ResetPasswordService
-
- All Known Implementing Classes:
ResetPasswordServiceImpl
public interface ResetPasswordServiceReset password service.- Since:
- 5.2.1
- Author:
- Jamal Kaabi-Mofrad
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientAppConfig.ClientAppgetClientAppConfig(java.lang.String clientName)Gets the registered client.voidinitiateResetPassword(ResetPasswordServiceImpl.ResetPasswordDetails resetDetails)Validates the request reset password workflow and updates the workflow.voidperformResetPassword(org.activiti.engine.delegate.DelegateExecution execution)Updates the user's new password.voidrequestReset(java.lang.String userId, java.lang.String clientName)Request password reset (starts the workflow).voidsendResetPasswordConfirmationEmail(org.activiti.engine.delegate.DelegateExecution execution, java.lang.String fallbackEmailTemplatePath, java.lang.String emailSubject)Updates the user's new password.voidsendResetPasswordEmail(org.activiti.engine.delegate.DelegateExecution execution, java.lang.String fallbackEmailTemplatePath, java.lang.String emailSubject)Sends reset password email.
-
-
-
Method Detail
-
requestReset
void requestReset(java.lang.String userId, java.lang.String clientName)Request password reset (starts the workflow).- Parameters:
userId- the user idclientName- the client app name (used to lookup the client that is registered to send emails so that client's specific configuration could be used.)
-
initiateResetPassword
void initiateResetPassword(ResetPasswordServiceImpl.ResetPasswordDetails resetDetails)
Validates the request reset password workflow and updates the workflow.- Parameters:
resetDetails- theResetPasswordDetailsobject
-
sendResetPasswordEmail
void sendResetPasswordEmail(org.activiti.engine.delegate.DelegateExecution execution, java.lang.String fallbackEmailTemplatePath, java.lang.String emailSubject)Sends reset password email.- Parameters:
execution- theDelegateExecutionobject (is provided when a user requests password reset)fallbackEmailTemplatePath- the class path of the fallback email template (request reset password email)emailSubject- the email subject key
-
performResetPassword
void performResetPassword(org.activiti.engine.delegate.DelegateExecution execution)
Updates the user's new password.- Parameters:
execution- theDelegateExecutionobject
-
sendResetPasswordConfirmationEmail
void sendResetPasswordConfirmationEmail(org.activiti.engine.delegate.DelegateExecution execution, java.lang.String fallbackEmailTemplatePath, java.lang.String emailSubject)Updates the user's new password.- Parameters:
execution- theDelegateExecutionobjectfallbackEmailTemplatePath- the class path of the fallback email template (confirmation email)emailSubject- the email subject key
-
getClientAppConfig
ClientAppConfig.ClientApp getClientAppConfig(java.lang.String clientName)
Gets the registered client.- Parameters:
clientName- the client name- Returns:
ClientAppobject- Throws:
ClientAppNotFoundException- if noClientAppis found with the given name
-
-