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 Details

    • SubscriptionStatusAudit

      public SubscriptionStatusAudit()
    • SubscriptionStatusAudit

      public SubscriptionStatusAudit(String id, String subscriptionId, String newStatus, String oldStatus, Date createdDate, String statusChangeReason, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
  • Method Details

    • getId

      public String getId()
    • getSubscriptionId

      public String getSubscriptionId()
      The id of the subscription that is changing status
    • getNewStatus

      public String getNewStatus()
      New status of the subscription
    • getOldStatus

      public String getOldStatus()
      The status of the subscription before this change
    • getCreatedDate

      public Date getCreatedDate()
      Date of this change
    • getStatusChangeReason

      public String getStatusChangeReason()
      Reason for this status change
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
    • setId

      public void setId(String id)
    • setSubscriptionId

      public void setSubscriptionId(String subscriptionId)
      The id of the subscription that is changing status
    • setNewStatus

      public void setNewStatus(String newStatus)
      New status of the subscription
    • setOldStatus

      public void setOldStatus(String oldStatus)
      The status of the subscription before this change
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
      Date of this change
    • setStatusChangeReason

      public void setStatusChangeReason(String statusChangeReason)
      Reason for this status change
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object