public class DefaultUserMessagingService extends Object implements UserMessagingService<User>
| Modifier and Type | Field and Description |
|---|---|
static String |
TOKEN |
static String |
URL_REGEX |
| Constructor and Description |
|---|
DefaultUserMessagingService(AuthorizedClientService<AuthorizedClient> clientService,
AuthorizationServerService<AuthorizationServer> serverService,
com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer,
com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo |
buildContextInfo(User user,
String clientId) |
protected String |
buildResetPasswordUri(String token)
Deprecated.
|
protected String |
buildResetPasswordUri(String token,
String clientId) |
protected String |
getClientId(javax.servlet.http.HttpServletRequest req) |
protected AuthorizedClientService<AuthorizedClient> |
getClientService() |
protected com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer |
getMessageProducer() |
protected String |
getRedirectUrlParam() |
protected Optional<javax.servlet.http.HttpServletRequest> |
getRequest() |
protected String |
getResetPasswordUrl(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected String |
getResetPasswordUrl(@NonNull javax.servlet.http.HttpServletRequest request,
String clientId) |
protected String |
getResetPasswordView() |
protected AuthorizationServerService<AuthorizationServer> |
getServerService() |
protected com.broadleafcommerce.common.extension.TypeFactory |
getTypeFactory() |
protected void |
sendAuthenticationMessage(@NonNull AuthenticationEvent event)
Responsible for actually sending the event message
|
void |
sendPasswordChangedEmail(@NonNull User user,
@NonNull String clientId)
Dispatches a "PASSWORD_CHANGED"
AuthenticationEvent. |
void |
sendResetPasswordEmail(@NonNull User user,
@NonNull String token,
@NonNull String clientId)
Dispatches a "RESET_PASSWORD"
AuthenticationEvent. |
public static final String TOKEN
public static final String URL_REGEX
public DefaultUserMessagingService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService, com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer messageProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public void sendResetPasswordEmail(@NonNull
@NonNull User user,
@NonNull
@NonNull String token,
@NonNull
@NonNull String clientId)
UserMessagingServiceAuthenticationEvent.sendResetPasswordEmail in interface UserMessagingService<User>user - the user requesting a reset password.token - the secure token to facilitate the password reset.clientId - the client id associated with the request.public void sendPasswordChangedEmail(@NonNull
@NonNull User user,
@NonNull
@NonNull String clientId)
UserMessagingServiceAuthenticationEvent.sendPasswordChangedEmail in interface UserMessagingService<User>user - the user requesting a reset password.clientId - the client id associated with the request.protected void sendAuthenticationMessage(@NonNull
@NonNull AuthenticationEvent event)
event - the event to be sentprotected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildContextInfo(User user, String clientId)
@Deprecated protected String buildResetPasswordUri(String token)
buildResetPasswordUri(String, String)protected String getResetPasswordUrl(@NonNull @NonNull javax.servlet.http.HttpServletRequest request, @Nullable String clientId)
@Deprecated protected String getResetPasswordUrl(javax.servlet.http.HttpServletRequest request)
getResetPasswordUrl(HttpServletRequest, String)protected String getResetPasswordView()
protected String getRedirectUrlParam()
protected Optional<javax.servlet.http.HttpServletRequest> getRequest()
protected String getClientId(javax.servlet.http.HttpServletRequest req)
protected AuthorizedClientService<AuthorizedClient> getClientService()
protected AuthorizationServerService<AuthorizationServer> getServerService()
protected com.broadleafcommerce.common.messaging.authentication.AuthenticationMessageProducer getMessageProducer()
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
Copyright © 2021. All rights reserved.