Class PasswordRecoveryServiceImpl

java.lang.Object
org.exoplatform.web.login.recovery.PasswordRecoveryServiceImpl
All Implemented Interfaces:
org.exoplatform.web.login.recovery.PasswordRecoveryService

public class PasswordRecoveryServiceImpl extends Object implements org.exoplatform.web.login.recovery.PasswordRecoveryService
  • Field Details

    • AUTHENTICATION_ATTEMPTS

      public static final String AUTHENTICATION_ATTEMPTS
      See Also:
    • log

      protected static org.exoplatform.services.log.Log log
    • CONFIGURED_DOMAIN_URL_KEY

      public static final String CONFIGURED_DOMAIN_URL_KEY
      See Also:
  • Constructor Details

    • PasswordRecoveryServiceImpl

      public PasswordRecoveryServiceImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.organization.OrganizationService orgService, org.exoplatform.services.mail.MailService mailService, org.exoplatform.services.resources.ResourceBundleService bundleService, RemindPasswordTokenService remindPasswordTokenService, CookieTokenService cookieTokenService, org.exoplatform.web.WebAppController controller, org.exoplatform.portal.branding.BrandingService brandingService)
  • Method Details

    • addConnector

      public void addConnector(org.exoplatform.web.login.recovery.ChangePasswordConnector connector)
      Specified by:
      addConnector in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • verifyToken

      public String verifyToken(String tokenId, String type)
      Specified by:
      verifyToken in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • deleteToken

      public void deleteToken(String tokenId, String type)
      Specified by:
      deleteToken in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • verifyToken

      public String verifyToken(String tokenId)
      Specified by:
      verifyToken in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • allowChangePassword

      public boolean allowChangePassword(String username) throws Exception
      Specified by:
      allowChangePassword in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
      Throws:
      Exception
    • changePass

      public boolean changePass(String tokenId, String tokenType, String username, String password)
      Specified by:
      changePass in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • sendOnboardingEmail

      public boolean sendOnboardingEmail(org.exoplatform.services.organization.User user, Locale locale, StringBuilder url)
      Specified by:
      sendOnboardingEmail in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • sendExternalRegisterEmail

      public String sendExternalRegisterEmail(String sender, String email, Locale locale, String space, StringBuilder url) throws Exception
      Specified by:
      sendExternalRegisterEmail in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
      Throws:
      Exception
    • sendExternalRegisterEmail

      public String sendExternalRegisterEmail(String sender, String email, Locale locale, String space, StringBuilder url, boolean spaceInvitation) throws Exception
      Specified by:
      sendExternalRegisterEmail in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
      Throws:
      Exception
    • sendAccountVerificationEmail

      public boolean sendAccountVerificationEmail(String data, String username, String firstName, String lastName, String email, Locale locale, StringBuilder url)
      Specified by:
      sendAccountVerificationEmail in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • sendAccountCreatedConfirmationEmail

      public boolean sendAccountCreatedConfirmationEmail(String username, Locale locale, StringBuilder url)
      Specified by:
      sendAccountCreatedConfirmationEmail in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • sendRecoverPasswordEmail

      public boolean sendRecoverPasswordEmail(org.exoplatform.services.organization.User user, Locale defaultLocale, jakarta.servlet.http.HttpServletRequest req)
      Specified by:
      sendRecoverPasswordEmail in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • getEmailSubject

      protected String getEmailSubject(org.exoplatform.services.organization.User user, ResourceBundle bundle)
    • getOnboardingURL

      public String getOnboardingURL(String tokenId, String lang)
      Specified by:
      getOnboardingURL in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • getExternalRegistrationURL

      public String getExternalRegistrationURL(String tokenId, String lang)
      Specified by:
      getExternalRegistrationURL in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • getPasswordRecoverURL

      public String getPasswordRecoverURL(String tokenId, String lang)
      Specified by:
      getPasswordRecoverURL in interface org.exoplatform.web.login.recovery.PasswordRecoveryService
    • getActiveChangePasswordConnector

      public org.exoplatform.web.login.recovery.ChangePasswordConnector getActiveChangePasswordConnector()
      Specified by:
      getActiveChangePasswordConnector in interface org.exoplatform.web.login.recovery.PasswordRecoveryService