Class DefaultUserMessagingService
java.lang.Object
com.broadleafcommerce.auth.user.service.DefaultUserMessagingService
- All Implemented Interfaces:
UserMessagingService<User>
- Author:
- Nathan Moore (nathanmoore).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUserMessagingService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfobuildContextInfo(User user, String clientId) protected StringbuildResetPasswordUri(String token) Deprecated.protected StringbuildResetPasswordUri(String token, String clientId) protected StringgetClientId(javax.servlet.http.HttpServletRequest req) protected AuthorizedClientService<AuthorizedClient>protected com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducerprotected Stringprotected Optional<javax.servlet.http.HttpServletRequest>protected StringgetResetPasswordUrl(@NonNull javax.servlet.http.HttpServletRequest request, String clientId) protected StringgetResetPasswordUrl(javax.servlet.http.HttpServletRequest request) Deprecated.protected Stringprotected AuthorizationServerService<AuthorizationServer>protected com.broadleafcommerce.common.extension.TypeFactoryprotected voidsendAuthenticationMessage(@NonNull AuthenticationEvent event) Responsible for actually sending the event messagevoidsendPasswordChangedEmail(@NonNull User user, @NonNull String clientId) Dispatches a "PASSWORD_CHANGED"AuthenticationEvent.voidsendResetPasswordEmail(@NonNull User user, @NonNull String token, @NonNull String clientId) Dispatches a "RESET_PASSWORD"AuthenticationEvent.
-
Field Details
-
TOKEN
- See Also:
-
URL_REGEX
- See Also:
-
-
Constructor Details
-
DefaultUserMessagingService
public DefaultUserMessagingService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
sendResetPasswordEmail
public void sendResetPasswordEmail(@NonNull @NonNull User user, @NonNull @NonNull String token, @NonNull @NonNull String clientId) Description copied from interface:UserMessagingServiceDispatches a "RESET_PASSWORD"AuthenticationEvent.- Specified by:
sendResetPasswordEmailin interfaceUserMessagingService<User>- Parameters:
user- the user requesting a reset password.token- the secure token to facilitate the password reset.clientId- the client id associated with the request.
-
sendPasswordChangedEmail
public void sendPasswordChangedEmail(@NonNull @NonNull User user, @NonNull @NonNull String clientId) Description copied from interface:UserMessagingServiceDispatches a "PASSWORD_CHANGED"AuthenticationEvent.- Specified by:
sendPasswordChangedEmailin interfaceUserMessagingService<User>- Parameters:
user- the user requesting a reset password.clientId- the client id associated with the request.
-
sendAuthenticationMessage
Responsible for actually sending the event message- Parameters:
event- the event to be sent
-
buildContextInfo
-
buildResetPasswordUri
-
buildResetPasswordUri
Deprecated. -
getResetPasswordUrl
-
getResetPasswordUrl
Deprecated. -
getResetPasswordView
-
getRedirectUrlParam
-
getRequest
-
getClientId
-
getClientService
-
getServerService
-
getMessageProducer
protected com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer getMessageProducer() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
buildResetPasswordUri(String, String)