Class ResetPasswordServiceImpl

java.lang.Object
org.alfresco.repo.security.authentication.ResetPasswordServiceImpl
All Implemented Interfaces:
ResetPasswordService

@Deprecated public class ResetPasswordServiceImpl extends Object implements ResetPasswordService
Deprecated.
from 7.1.0 * Reset password implementation based on workflow.
Since:
5.2.1
Author:
Jamal Kaabi-Mofrad
  • Constructor Details

    • ResetPasswordServiceImpl

      public ResetPasswordServiceImpl()
      Deprecated.
  • Method Details

    • setWorkflowService

      public void setWorkflowService(WorkflowService workflowService)
      Deprecated.
    • setActivitiHistoryService

      public void setActivitiHistoryService(org.activiti.engine.HistoryService activitiHistoryService)
      Deprecated.
    • setActionService

      public void setActionService(ActionService actionService)
      Deprecated.
    • setPersonService

      public void setPersonService(PersonService personService)
      Deprecated.
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Deprecated.
    • setSysAdminParams

      public void setSysAdminParams(SysAdminParams sysAdminParams)
      Deprecated.
    • setAuthenticationService

      public void setAuthenticationService(MutableAuthenticationService authenticationService)
      Deprecated.
    • setActivitiTaskService

      public void setActivitiTaskService(org.activiti.engine.TaskService activitiTaskService)
      Deprecated.
    • setEmailHelper

      public void setEmailHelper(EmailHelper emailHelper)
      Deprecated.
    • setClientAppConfig

      public void setClientAppConfig(ClientAppConfig clientAppConfig)
      Deprecated.
    • setTimerEnd

      public void setTimerEnd(String timerEnd)
      Deprecated.
    • setDefaultEmailSender

      public void setDefaultEmailSender(String defaultEmailSender)
      Deprecated.
    • setSendEmailAsynchronously

      public void setSendEmailAsynchronously(boolean sendEmailAsynchronously)
      Deprecated.
    • init

      public void init()
      Deprecated.
    • requestReset

      public void requestReset(String userId, String clientName)
      Deprecated.
      Description copied from interface: ResetPasswordService
      Request password reset (starts the workflow).
      Specified by:
      requestReset in interface ResetPasswordService
      Parameters:
      userId - the user id
      clientName - the client app name (used to lookup the client that is registered to send emails so that client's specific configuration could be used.)
    • validateUserAndGetEmail

      protected String validateUserAndGetEmail(String userId)
      Deprecated.
    • initiateResetPassword

      public void initiateResetPassword(ResetPasswordServiceImpl.ResetPasswordDetails resetDetails)
      Deprecated.
      Description copied from interface: ResetPasswordService
      Validates the request reset password workflow and updates the workflow.
      Specified by:
      initiateResetPassword in interface ResetPasswordService
      Parameters:
      resetDetails - the ResetPasswordDetails object
    • getClientAppConfig

      public ClientAppConfig.ClientApp getClientAppConfig(String clientName)
      Deprecated.
      Description copied from interface: ResetPasswordService
      Gets the registered client.
      Specified by:
      getClientAppConfig in interface ResetPasswordService
      Parameters:
      clientName - the client name
      Returns:
      ClientApp object
    • sendResetPasswordEmail

      public void sendResetPasswordEmail(org.activiti.engine.delegate.DelegateExecution execution, String fallbackEmailTemplatePath, String emailSubject)
      Deprecated.
      Description copied from interface: ResetPasswordService
      Sends reset password email.
      Specified by:
      sendResetPasswordEmail in interface ResetPasswordService
      Parameters:
      execution - 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 key
    • performResetPassword

      public void performResetPassword(org.activiti.engine.delegate.DelegateExecution execution)
      Deprecated.
      Description copied from interface: ResetPasswordService
      Updates the user's new password.
      Specified by:
      performResetPassword in interface ResetPasswordService
      Parameters:
      execution - the DelegateExecution object
    • sendResetPasswordConfirmationEmail

      public void sendResetPasswordConfirmationEmail(org.activiti.engine.delegate.DelegateExecution execution, String fallbackEmailTemplatePath, String emailSubject)
      Deprecated.
      Description copied from interface: ResetPasswordService
      Updates the user's new password.
      Specified by:
      sendResetPasswordConfirmationEmail in interface ResetPasswordService
      Parameters:
      execution - the DelegateExecution object
      fallbackEmailTemplatePath - the class path of the fallback email template (confirmation email)
      emailSubject - the email subject key
    • sendEmail

      protected void sendEmail(ResetPasswordServiceImpl.ResetPasswordEmailDetails emailRequest)
      Deprecated.
    • getResetPasswordEmailTemplate

      protected String getResetPasswordEmailTemplate(ClientAppConfig.ClientApp clientApp)
      Deprecated.
    • getConfirmResetPasswordEmailTemplate

      protected String getConfirmResetPasswordEmailTemplate(ClientAppConfig.ClientApp clientApp)
      Deprecated.
    • createResetPasswordUrl

      protected String createResetPasswordUrl(ClientAppConfig.ClientApp clientApp, String id, String key)
      Deprecated.
      This method creates a URL for the 'reset password' link which appears in the email