public class ResetPasswordServiceImpl extends Object implements ResetPasswordService
| Modifier and Type | Class and Description |
|---|---|
static class |
ResetPasswordServiceImpl.InvalidResetPasswordWorkflowException |
static class |
ResetPasswordServiceImpl.ResetPasswordDetails |
static class |
ResetPasswordServiceImpl.ResetPasswordEmailDetails |
static class |
ResetPasswordServiceImpl.ResetPasswordWorkflowException |
static class |
ResetPasswordServiceImpl.ResetPasswordWorkflowInvalidUserException |
static class |
ResetPasswordServiceImpl.ResetPasswordWorkflowNotFoundException |
| Constructor and Description |
|---|
ResetPasswordServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createResetPasswordUrl(ClientAppConfig.ClientApp clientApp,
String id,
String key)
This method creates a URL for the 'reset password' link which appears in the email
|
ClientAppConfig.ClientApp |
getClientAppConfig(String clientName)
Gets the registered client.
|
protected String |
getConfirmResetPasswordEmailTemplate(ClientAppConfig.ClientApp clientApp) |
protected String |
getResetPasswordEmailTemplate(ClientAppConfig.ClientApp clientApp) |
void |
init() |
void |
initiateResetPassword(ResetPasswordServiceImpl.ResetPasswordDetails resetDetails)
Validates the request reset password workflow and updates the workflow.
|
void |
performResetPassword(org.activiti.engine.delegate.DelegateExecution execution)
Updates the user's new password.
|
void |
requestReset(String userId,
String clientName)
Request password reset (starts the workflow).
|
protected void |
sendEmail(ResetPasswordServiceImpl.ResetPasswordEmailDetails emailRequest) |
void |
sendResetPasswordConfirmationEmail(org.activiti.engine.delegate.DelegateExecution execution,
String fallbackEmailTemplatePath,
String emailSubject)
Updates the user's new password.
|
void |
sendResetPasswordEmail(org.activiti.engine.delegate.DelegateExecution execution,
String fallbackEmailTemplatePath,
String emailSubject)
Sends reset password email.
|
void |
setActionService(ActionService actionService) |
void |
setActivitiHistoryService(org.activiti.engine.HistoryService activitiHistoryService) |
void |
setActivitiTaskService(org.activiti.engine.TaskService activitiTaskService) |
void |
setAuthenticationService(MutableAuthenticationService authenticationService) |
void |
setClientAppConfig(ClientAppConfig clientAppConfig) |
void |
setDefaultEmailSender(String defaultEmailSender) |
void |
setEmailHelper(EmailHelper emailHelper) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setSendEmailAsynchronously(boolean sendEmailAsynchronously) |
void |
setSysAdminParams(SysAdminParams sysAdminParams) |
void |
setTimerEnd(String timerEnd) |
void |
setWorkflowService(WorkflowService workflowService) |
protected String |
validateUserAndGetEmail(String userId) |
public void setWorkflowService(WorkflowService workflowService)
public void setActivitiHistoryService(org.activiti.engine.HistoryService activitiHistoryService)
public void setActionService(ActionService actionService)
public void setPersonService(PersonService personService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSysAdminParams(SysAdminParams sysAdminParams)
public void setAuthenticationService(MutableAuthenticationService authenticationService)
public void setActivitiTaskService(org.activiti.engine.TaskService activitiTaskService)
public void setEmailHelper(EmailHelper emailHelper)
public void setClientAppConfig(ClientAppConfig clientAppConfig)
public void setTimerEnd(String timerEnd)
public void setDefaultEmailSender(String defaultEmailSender)
public void setSendEmailAsynchronously(boolean sendEmailAsynchronously)
public void init()
public void requestReset(String userId, String clientName)
ResetPasswordServicerequestReset in interface ResetPasswordServiceuserId - 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.)public void initiateResetPassword(ResetPasswordServiceImpl.ResetPasswordDetails resetDetails)
ResetPasswordServiceinitiateResetPassword in interface ResetPasswordServiceresetDetails - the ResetPasswordDetails objectpublic ClientAppConfig.ClientApp getClientAppConfig(String clientName)
ResetPasswordServicegetClientAppConfig in interface ResetPasswordServiceclientName - the client nameClientApp objectpublic void sendResetPasswordEmail(org.activiti.engine.delegate.DelegateExecution execution,
String fallbackEmailTemplatePath,
String emailSubject)
ResetPasswordServicesendResetPasswordEmail in interface ResetPasswordServiceexecution - the DelegateExecution object (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 keypublic void performResetPassword(org.activiti.engine.delegate.DelegateExecution execution)
ResetPasswordServiceperformResetPassword in interface ResetPasswordServiceexecution - the DelegateExecution objectpublic void sendResetPasswordConfirmationEmail(org.activiti.engine.delegate.DelegateExecution execution,
String fallbackEmailTemplatePath,
String emailSubject)
ResetPasswordServicesendResetPasswordConfirmationEmail in interface ResetPasswordServiceexecution - the DelegateExecution objectfallbackEmailTemplatePath - the class path of the fallback email template (confirmation email)emailSubject - the email subject keyprotected void sendEmail(ResetPasswordServiceImpl.ResetPasswordEmailDetails emailRequest)
protected String getResetPasswordEmailTemplate(ClientAppConfig.ClientApp clientApp)
protected String getConfirmResetPasswordEmailTemplate(ClientAppConfig.ClientApp clientApp)
protected String createResetPasswordUrl(ClientAppConfig.ClientApp clientApp, String id, String key)
Copyright © 2005–2018 Alfresco Software. All rights reserved.