Class AuthenticationEvent
java.lang.Object
com.broadleafcommerce.auth.user.domain.AuthenticationEvent
- All Implemented Interfaces:
Serializable
A message event dispatched after authentication events occur.
- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAny additional attributes that a service receiving the request may needcom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.The message type for this event.getUser()The user that made the requestinthashCode()voidsetAttributes(Map<String, Object> attributes) Any additional attributes that a service receiving the request may needvoidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetMessageType(String messageType) The message type for this event.voidThe user that made the requesttoString()withAttribute(String key, Object value) Convenience method for adding any additional attributes for the event
-
Constructor Details
-
AuthenticationEvent
public AuthenticationEvent() -
AuthenticationEvent
-
-
Method Details
-
withAttribute
Convenience method for adding any additional attributes for the event- Parameters:
key- the key for the attributevalue- the value for the attribute- Returns:
- the AuthenticationEvent
-
getMessageType
The message type for this event.- See Also:
-
getUser
The user that made the request -
getAttributes
Any additional attributes that a service receiving the request may need -
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
setMessageType
The message type for this event.- See Also:
-
setUser
The user that made the request -
setAttributes
Any additional attributes that a service receiving the request may need -
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-