public class AuthenticationEvent extends Object implements Serializable
Constructor and Description |
---|
AuthenticationEvent() |
AuthenticationEvent(String messageType,
User user,
Map<String,Object> attributes,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,Object> |
getAttributes()
Any additional attributes that a service receiving the request may need
|
com.broadleafcommerce.data.tracking.core.context.ContextInfo |
getContextInfo()
The
ContextInfo derived from the original request containing tenant and sandbox info. |
String |
getMessageType()
The message type for this event.
|
User |
getUser()
The user that made the request
|
int |
hashCode() |
void |
setAttributes(Map<String,Object> attributes)
Any additional attributes that a service receiving the request may need
|
void |
setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
The
ContextInfo derived from the original request containing tenant and sandbox info. |
void |
setMessageType(String messageType)
The message type for this event.
|
void |
setUser(User user)
The user that made the request
|
String |
toString() |
AuthenticationEvent |
withAttribute(String key,
Object value)
Convenience method for adding any additional attributes for the event
|
public AuthenticationEvent withAttribute(String key, Object value)
key
- the key for the attributevalue
- the value for the attributepublic String getMessageType()
AuthenticationMessageType
public User getUser()
public Map<String,Object> getAttributes()
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
ContextInfo
derived from the original request containing tenant and sandbox info.ContextInfo
derived from the original requestpublic void setMessageType(String messageType)
AuthenticationMessageType
public void setUser(User user)
public void setAttributes(Map<String,Object> attributes)
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
ContextInfo
derived from the original request containing tenant and sandbox info.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.