Class AuthenticationEvent
- java.lang.Object
-
- com.broadleafcommerce.auth.user.domain.AuthenticationEvent
-
- All Implemented Interfaces:
Serializable
public class AuthenticationEvent extends Object implements Serializable
A message event dispatched after authentication events occur.- Author:
- Jon Fleschler (jfleschler)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationEvent()AuthenticationEvent(String messageType, User user, Map<String,Object> attributes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Object>getAttributes()Any additional attributes that a service receiving the request may needcom.broadleafcommerce.data.tracking.core.context.ContextInfogetContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.StringgetMessageType()The message type for this event.UsergetUser()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.voidsetUser(User user)The user that made the requestStringtoString()AuthenticationEventwithAttribute(String key, Object value)Convenience method for adding any additional attributes for the event
-
-
-
Method Detail
-
withAttribute
public AuthenticationEvent withAttribute(String key, Object value)
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
public String getMessageType()
The message type for this event.- See Also:
AuthenticationMessageType
-
getUser
public User getUser()
The user that made the request
-
getAttributes
public Map<String,Object> 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
public void setMessageType(String messageType)
The message type for this event.- See Also:
AuthenticationMessageType
-
setUser
public void setUser(User user)
The user that made the request
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
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.
-
canEqual
protected boolean canEqual(Object other)
-
-