Class CartApprovalRequestEvent

java.lang.Object
com.broadleafcommerce.auth.user.messaging.CartApprovalRequestEvent
All Implemented Interfaces:
Serializable

public class CartApprovalRequestEvent extends Object implements Serializable
Represents the data needed to send a notification after an account user submits a cart requiring approval.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • CartApprovalRequestEvent

      public CartApprovalRequestEvent()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttribute

      public Map<String,Object> getAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • getAccountId

      public String getAccountId()
      ID of the account the submitter belongs to.
    • getContextInfo

      public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()
      The ContextInfo containing tenant and sandbox info.
      Returns:
      The ContextInfo containing tenant and sandbox info.
    • getApprovers

    • getAttributes

      public Map<String,Object> getAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setAccountId

      public void setAccountId(String accountId)
      ID of the account the submitter belongs to.
    • setContextInfo

      public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      The ContextInfo containing tenant and sandbox info.
    • setApprovers

      public void setApprovers(List<CartApprovalRequestEvent.ApproverRef> approvers)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object