Class OrderNote
- java.lang.Object
-
- com.broadleafcommerce.order.domain.OrderNote
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class OrderNote extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Informational notes manually added for anOrder
by an admin for future reference by other admins.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderNote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAuthor()
The user that created this notecom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getContextState()
A subset ofTracking
information to expose the context state for this object.Instant
getCreated()
When this note was createdString
getId()
The context ID of the order note.String
getNote()
The content of the noteString
getOrderId()
The link to the order that this note applies toint
hashCode()
void
setAuthor(String author)
The user that created this notevoid
setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
A subset ofTracking
information to expose the context state for this object.void
setCreated(Instant created)
When this note was createdvoid
setId(String id)
The context ID of the order note.void
setNote(String note)
The content of the notevoid
setOrderId(String orderId)
The link to the order that this note applies toString
toString()
-
-
-
Method Detail
-
getId
public String getId()
The context ID of the order note.- Returns:
- the context ID of the order note
-
getOrderId
public String getOrderId()
The link to the order that this note applies to- Returns:
- the context ID of the order that this note applies to
-
getNote
public String getNote()
The content of the note- Returns:
- the content of the note
-
getCreated
public Instant getCreated()
When this note was created- Returns:
- when this note was created
-
getAuthor
public String getAuthor()
The user that created this note- Returns:
- the user that created this note
-
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
public void setId(String id)
The context ID of the order note.- Parameters:
id
- the context ID of the order note
-
setOrderId
public void setOrderId(String orderId)
The link to the order that this note applies to- Parameters:
orderId
- the context ID of the order that this note applies to
-
setNote
public void setNote(String note)
The content of the note- Parameters:
note
- the content of the note
-
setCreated
public void setCreated(Instant created)
When this note was created- Parameters:
created
- when this note was created
-
setAuthor
public void setAuthor(String author)
The user that created this note- Parameters:
author
- the user that created this note
-
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
-
canEqual
protected boolean canEqual(Object other)
-
-