java.lang.Object
com.broadleafcommerce.cart.client.domain.CartNote
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class CartNote extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Informational notes manually added for an Cart or CartItem by a buyer or seller.

This is only used for quotes by default.

See Also:
  • Constructor Details

    • CartNote

      public CartNote()
  • Method Details

    • getId

      public String getId()
      The context ID of the note.
      Returns:
      the context ID of the note
    • getCartId

      public String getCartId()
      The Cart.getId() that this note belongs to.
      Returns:
      the Cart.getId() that this note belongs to
    • getCartItemId

      public String getCartItemId()
      The CartItem.getId() that this note belongs to, this field is only relevant for CartItem-level notes.
      Returns:
      the CartItem.getId() that this note belongs to
    • getNote

      public String getNote()
      The content of the note
      Returns:
      the content of the note
    • getReplies

      public List<CartNote> getReplies()
      A list of notes representing the replies.
      Returns:
      a list of notes representing the replies
    • getDateCreated

      public Instant getDateCreated()
      When this note was created.
      Returns:
      when this note was created
    • getAuthorType

      public String getAuthorType()
      The type of the user that created this note.
      Returns:
      the type of the user that created this note
      See Also:
    • getAuthorId

      public String getAuthorId()
      The id of the user that created this note.
      Returns:
      the id of the user that created this note
    • getAuthorEmail

      public String getAuthorEmail()
      The email of the user that created this note.
      Returns:
      the email of the user that created this note
    • isInternalOnly

      public boolean isInternalOnly()
      Whether this note is for internal view only. Internal notes are only visible to sellers.
      Returns:
      whether this note is for internal view only
    • getAdditionalData

      public Map<String,Object> getAdditionalData()
      Map to hold additional data.
      Returns:
      additional data
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object.
    • setId

      public void setId(String id)
      The context ID of the note.
      Parameters:
      id - the context ID of the note
    • setCartId

      public void setCartId(String cartId)
      The Cart.getId() that this note belongs to.
      Parameters:
      entityType - the Cart.getId() that this note belongs to
    • setCartItemId

      public void setCartItemId(String cartItemId)
      The CartItem.getId() that this note belongs to, this field is only relevant for CartItem-level notes.
      Parameters:
      owningEntityId - the CartItem.getId() that this note belongs to
    • setNote

      public void setNote(String note)
      The content of the note
      Parameters:
      note - the content of the note
    • setReplies

      public void setReplies(List<CartNote> replies)
      A list of notes representing the replies.
      Parameters:
      replies - a list of notes representing the replies
    • setDateCreated

      public void setDateCreated(Instant dateCreated)
      When this note was created.
      Parameters:
      created - when this note was created
    • setAuthorType

      public void setAuthorType(String authorType)
      The type of the user that created this note.
      Parameters:
      author - the type of the user that created this note
      See Also:
    • setAuthorId

      public void setAuthorId(String authorId)
      The id of the user that created this note.
      Parameters:
      author - the id of the user that created this note
    • setAuthorEmail

      public void setAuthorEmail(String authorEmail)
      The email of the user that created this note.
      Parameters:
      author - the email of the user that created this note
    • setInternalOnly

      public void setInternalOnly(boolean internalOnly)
      Whether this note is for internal view only. Internal notes are only visible to sellers.
      Parameters:
      internalOnly - whether this note is for internal view only
    • setAdditionalData

      public void setAdditionalData(Map<String,Object> additionalData)
      Map to hold additional data.
      Parameters:
      data - additional data
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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