Interface PasswordRecoveryService


public interface PasswordRecoveryService
  • Method Details

    • addConnector

      void addConnector(ChangePasswordConnector connector)
    • verifyToken

      String verifyToken(String tokenId, String type)
    • verifyToken

      String verifyToken(String tokenId)
    • changePass

      boolean changePass(String tokenId, String tokenType, String username, String password)
    • sendRecoverPasswordEmail

      boolean sendRecoverPasswordEmail(org.exoplatform.services.organization.User user, Locale defaultLocale, jakarta.servlet.http.HttpServletRequest req)
    • sendOnboardingEmail

      boolean sendOnboardingEmail(org.exoplatform.services.organization.User user, Locale defaultLocale, StringBuilder url)
    • sendExternalRegisterEmail

      String sendExternalRegisterEmail(String sender, String email, Locale locale, String space, StringBuilder url) throws Exception
      Throws:
      Exception
    • sendExternalRegisterEmail

      default String sendExternalRegisterEmail(String sender, String email, Locale locale, String space, StringBuilder url, boolean spaceInvitation) throws Exception
      Send An Onboarding email to registered user on the platform. The registration can be made through space invitation or through a register form, thus, the space and sender invitations can be null.
      Parameters:
      sender - Username who sent the invitation from space
      email - the invited email
      locale - the user Locale
      space - the space from which the user was invited
      url - the base url of the current installation
      spaceInvitation - whether this is a space invitation or not
      Returns:
      generated token for external user registration
      Throws:
      Exception - when IDM or any other exception occurs while generating token or sending email
    • sendAccountCreatedConfirmationEmail

      boolean sendAccountCreatedConfirmationEmail(String sender, Locale locale, StringBuilder url)
    • allowChangePassword

      boolean allowChangePassword(String username) throws Exception
      Throws:
      Exception
    • getPasswordRecoverURL

      String getPasswordRecoverURL(String tokenId, String lang)
    • getOnboardingURL

      String getOnboardingURL(String tokenId, String lang)
    • getExternalRegistrationURL

      String getExternalRegistrationURL(String tokenId, String lang)
    • getActiveChangePasswordConnector

      ChangePasswordConnector getActiveChangePasswordConnector()
    • deleteToken

      void deleteToken(String tokenId, String type)
      Remove used Token
      Parameters:
      tokenId -
      type -
    • sendAccountVerificationEmail

      boolean sendAccountVerificationEmail(String data, String username, String firstName, String lastName, String email, Locale locale, StringBuilder url)
      Sends verification email to user to continue registration
      Parameters:
      data -
      username -
      firstName -
      lastName -
      email -
      locale -
      url -
      Returns:
      true if sent, else false