Class SubscriptionStatusAudit
java.lang.Object
com.broadleafcommerce.subscription.domain.SubscriptionStatusAudit
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
public class SubscriptionStatusAudit
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware
This is a record created when a given
Subscription changes status. This object will
contain the record of the time of the change, as well as reasoning and previous status.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.Date of this changegetId()New status of the subscriptionThe status of the subscription before this changeReason for this status changeThe id of the subscription that is changing statusinthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetCreatedDate(Date createdDate) Date of this changevoidvoidsetNewStatus(String newStatus) New status of the subscriptionvoidsetOldStatus(String oldStatus) The status of the subscription before this changevoidsetStatusChangeReason(String statusChangeReason) Reason for this status changevoidsetSubscriptionId(String subscriptionId) The id of the subscription that is changing statustoString()
-
Constructor Details
-
SubscriptionStatusAudit
public SubscriptionStatusAudit() -
SubscriptionStatusAudit
-
-
Method Details
-
getId
-
getSubscriptionId
The id of the subscription that is changing status -
getNewStatus
New status of the subscription -
getOldStatus
The status of the subscription before this change -
getCreatedDate
Date of this change -
getStatusChangeReason
Reason for this status change -
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
-
setId
-
setSubscriptionId
The id of the subscription that is changing status -
setNewStatus
New status of the subscription -
setOldStatus
The status of the subscription before this change -
setCreatedDate
Date of this change -
setStatusChangeReason
Reason for this status change -
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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-