Class CartNote
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMap to hold additional data.The email of the user that created this note.The id of the user that created this note.The type of the user that created this note.TheCart.getId()that this note belongs to.TheCartItem.getId()that this note belongs to, this field is only relevant for CartItem-level notes.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.When this note was created.getId()The context ID of the note.getNote()The content of the noteA list of notes representing the replies.inthashCode()booleanWhether this note is for internal view only.voidsetAdditionalData(Map<String, Object> additionalData) Map to hold additional data.voidsetAuthorEmail(String authorEmail) The email of the user that created this note.voidsetAuthorId(String authorId) The id of the user that created this note.voidsetAuthorType(String authorType) The type of the user that created this note.voidTheCart.getId()that this note belongs to.voidsetCartItemId(String cartItemId) TheCartItem.getId()that this note belongs to, this field is only relevant for CartItem-level notes.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDateCreated(Instant dateCreated) When this note was created.voidThe context ID of the note.voidsetInternalOnly(boolean internalOnly) Whether this note is for internal view only.voidThe content of the notevoidsetReplies(List<CartNote> replies) A list of notes representing the replies.toString()
-
Constructor Details
-
CartNote
public CartNote()
-
-
Method Details
-
getId
The context ID of the note.- Returns:
- the context ID of the note
-
getCartId
TheCart.getId()that this note belongs to.- Returns:
- the
Cart.getId()that this note belongs to
-
getCartItemId
TheCartItem.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
The content of the note- Returns:
- the content of the note
-
getReplies
A list of notes representing the replies.- Returns:
- a list of notes representing the replies
-
getDateCreated
When this note was created.- Returns:
- when this note was created
-
getAuthorType
The type of the user that created this note.- Returns:
- the type of the user that created this note
- See Also:
-
getAuthorId
The id of the user that created this note.- Returns:
- the id of the user that created this note
-
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
Map to hold additional data.- Returns:
- additional data
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object.
-
setId
The context ID of the note.- Parameters:
id- the context ID of the note
-
setCartId
TheCart.getId()that this note belongs to.- Parameters:
entityType- theCart.getId()that this note belongs to
-
setCartItemId
TheCartItem.getId()that this note belongs to, this field is only relevant for CartItem-level notes.- Parameters:
owningEntityId- theCartItem.getId()that this note belongs to
-
setNote
The content of the note- Parameters:
note- the content of the note
-
setReplies
A list of notes representing the replies.- Parameters:
replies- a list of notes representing the replies
-
setDateCreated
When this note was created.- Parameters:
created- when this note was created
-
setAuthorType
The type of the user that created this note.- Parameters:
author- the type of the user that created this note- See Also:
-
setAuthorId
The id of the user that created this note.- Parameters:
author- the id of the user that created this note
-
setAuthorEmail
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
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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-