Class CampaignCodeAuditDetail
- java.lang.Object
-
- com.broadleafcommerce.promotion.campaign.domain.CampaignCodeAuditDetail
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class CampaignCodeAuditDetail extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Captures audit relevant data for a particular
CampaignCode.Utilized when it is necessary to determine if a particular code can still be used by checking the number of records against
CampaignCode.getMaxUses().- Author:
- Samarth Dhruva (samarthd)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CampaignCodeAuditDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetCampaignCode()The campaign code string that this audit information is for.StringgetCampaignTrackingId()The tracking ID of the campaign this audit is for.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()A subset ofTrackinginformation to expose the context state for this object.InstantgetDateApplied()The date and time when the relatedcampaign codewas applied.StringgetId()The context ID of the campaign code audit detail.UserTargetgetUser()The identifying info of the user that used the campaign code.inthashCode()voidsetCampaignCode(String campaignCode)The campaign code string that this audit information is for.voidsetCampaignTrackingId(String campaignTrackingId)The tracking ID of the campaign this audit is for.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)A subset ofTrackinginformation to expose the context state for this object.voidsetDateApplied(Instant dateApplied)The date and time when the relatedcampaign codewas applied.voidsetId(String id)The context ID of the campaign code audit detail.voidsetUser(UserTarget user)The identifying info of the user that used the campaign code.StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
The context ID of the campaign code audit detail.- Returns:
- the context ID of the campaign code audit detail
-
getCampaignCode
public String getCampaignCode()
The campaign code string that this audit information is for.- Returns:
- The campaign code string that this audit information is for.
-
getCampaignTrackingId
public String getCampaignTrackingId()
The tracking ID of the campaign this audit is for.- Returns:
- the tracking ID of the campaign this audit is for
-
getUser
public UserTarget getUser()
The identifying info of the user that used the campaign code.- Returns:
- The identifying info of the user that used the the campaign code.
-
getDateApplied
public Instant getDateApplied()
The date and time when the relatedcampaign codewas applied.- Returns:
- the date and time when the related
campaign codewas applied
-
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- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
public void setId(String id)
The context ID of the campaign code audit detail.- Parameters:
id- the context ID of the campaign code audit detail
-
setCampaignCode
public void setCampaignCode(String campaignCode)
The campaign code string that this audit information is for.- Parameters:
campaignCode- The campaign code string that this audit information is for.
-
setCampaignTrackingId
public void setCampaignTrackingId(String campaignTrackingId)
The tracking ID of the campaign this audit is for.- Parameters:
campaignTrackingId- the tracking ID of the campaign this audit is for
-
setUser
public void setUser(UserTarget user)
The identifying info of the user that used the campaign code.- Parameters:
user- The identifying info of the user that used the campaign code.
-
setDateApplied
public void setDateApplied(Instant dateApplied)
The date and time when the relatedcampaign codewas applied.- Parameters:
dateApplied- the date and time when the relatedcampaign codewas applied
-
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- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
canEqual
protected boolean canEqual(Object other)
-
-