Class 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 Detail

      • AuthenticationEvent

        public AuthenticationEvent()
      • AuthenticationEvent

        public AuthenticationEvent​(String messageType,
                                   User user,
                                   Map<String,​Object> attributes,
                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • 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 attribute
        value - the value for the attribute
        Returns:
        the AuthenticationEvent
      • 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()
        The ContextInfo derived from the original request containing tenant and sandbox info.
        Returns:
        The ContextInfo derived from the original request
      • 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)
        The ContextInfo derived from the original request containing tenant and sandbox info.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object