Class CartActionAudit
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
Cart
.
These records can be used to represent any action, but they're most commonly used to record the actions that various account members took against a B2B cart.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The action type of this audit.The ID of the cart this cart action audit was created after.A comment related to the auditcom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getData()
Additional or custom audit informationgetId()
The context ID of the cart action audit.The newCart.getStatus()
after the cart action in which this audit was created for.The oldCart.getStatus()
prior the cart action in which this audit was created for.The time at which theCartActionAudit
was createdThe email of the user who performed the cart action.The id of the user who performed the cart action.The type of user who performed the cart action.int
hashCode()
void
setActionType
(String actionType) The action type of this audit.void
The ID of the cart this cart action audit was created after.void
setComment
(String comment) A comment related to the auditvoid
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
Additional or custom audit informationvoid
The context ID of the cart action audit.void
setNewStatus
(String newStatus) The newCart.getStatus()
after the cart action in which this audit was created for.void
setOldStatus
(String oldStatus) The oldCart.getStatus()
prior the cart action in which this audit was created for.void
setTimestamp
(Instant timestamp) The time at which theCartActionAudit
was createdvoid
setUserEmail
(String userEmail) The email of the user who performed the cart action.void
The id of the user who performed the cart action.void
setUserType
(String userType) The type of user who performed the cart action.toString()
-
Constructor Details
-
CartActionAudit
public CartActionAudit()
-
-
Method Details
-
getId
The context ID of the cart action audit.- Returns:
- the context ID of the cart action audit
-
getCartId
The ID of the cart this cart action audit was created after.- Returns:
- the ID of the related cart
-
getActionType
The action type of this audit.- Returns:
- the action type of this audit
- See Also:
-
getOldStatus
The oldCart.getStatus()
prior the cart action in which this audit was created for.- Returns:
- the old
Cart.getStatus()
prior the cart action in which this audit was created for. - See Also:
-
getNewStatus
The newCart.getStatus()
after the cart action in which this audit was created for.For example, this field would be
DefaultCartStatuses.REJECTED
if theCart
was rejected.- Returns:
- the new
Cart.getStatus()
after the cart action in which this audit was created for. - See Also:
-
getUserType
The type of user who performed the cart action.For example, this could be an account approver.
- Returns:
- the type of user who performed the cart action
- See Also:
-
getUserId
The id of the user who performed the cart action.For example, this would be the id of the account approver who rejected the cart.
- Returns:
- the id of the user who performed the cart action
-
getUserEmail
The email of the user who performed the cart action.For example, this would be the email of the account approver who rejected the cart.
- Returns:
- the email of the user who performed the cart action
-
getComment
A comment related to the audit- Returns:
- te comment related to the audit
-
getTimestamp
The time at which theCartActionAudit
was created- Returns:
- the time at which the
CartActionAudit
was created
-
getData
Additional or custom audit information- Returns:
- additional or custom information
-
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 cart action audit.- Parameters:
id
- the context ID of the cart action audit
-
setCartId
The ID of the cart this cart action audit was created after.- Parameters:
cartId
- the ID of the related cart
-
setActionType
The action type of this audit.- Parameters:
actionType
- the action type of this audit- See Also:
-
setOldStatus
The oldCart.getStatus()
prior the cart action in which this audit was created for.- Parameters:
oldStatus
- the oldCart.getStatus()
prior the cart action in which this audit was created for.- See Also:
-
setNewStatus
The newCart.getStatus()
after the cart action in which this audit was created for.For example, this field would be
DefaultCartStatuses.REJECTED
if theCart
was rejected.- Parameters:
newStatus
- the newCart.getStatus()
after the cart action in which this audit was created for- See Also:
-
setUserType
The type of user who performed the cart action.For example, this could be an account approver.
- Parameters:
userType
- the type of user who performed the cart action- See Also:
-
setUserId
The id of the user who performed the cart action.For example, this would be the id of the account approver who rejected the cart.
- Parameters:
userId
- the id of the user who performed the cart action
-
setUserEmail
The email of the user who performed the cart action.For example, this would be the email of the account approver who rejected the cart.
- Parameters:
userEmail
- the email of the user who performed the cart action
-
setComment
A comment related to the audit- Parameters:
comment
- the comment related to the audit
-
setTimestamp
The time at which theCartActionAudit
was created- Parameters:
timestamp
- the time at which theCartActionAudit
was created
-
setData
Additional or custom audit information- Parameters:
data
- additional or custom information
-
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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-