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 boolean
boolean
Map 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.ContextState
A subset ofTracking
information 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.int
hashCode()
boolean
Whether this note is for internal view only.void
setAdditionalData
(Map<String, Object> additionalData) Map to hold additional data.void
setAuthorEmail
(String authorEmail) The email of the user that created this note.void
setAuthorId
(String authorId) The id of the user that created this note.void
setAuthorType
(String authorType) The type of the user that created this note.void
TheCart.getId()
that this note belongs to.void
setCartItemId
(String cartItemId) TheCartItem.getId()
that this note belongs to, this field is only relevant for CartItem-level notes.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDateCreated
(Instant dateCreated) When this note was created.void
The context ID of the note.void
setInternalOnly
(boolean internalOnly) Whether this note is for internal view only.void
The content of the notevoid
setReplies
(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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-