Class Campaign
- java.lang.Object
-
- com.broadleafcommerce.promotion.campaign.domain.Campaign
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class Campaign extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
The main domain that the Broadleaf Campaign service is based around. Campaigns are the base to which you can generate multiple codes against.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Campaign()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)InstantgetActiveEndDate()Defines the ending time for which this campaign is active.InstantgetActiveStartDate()Defines the beginning time for which this campaign is active.StringgetCodePrefix()Defines a prefix to updateUses when generating campaign codes for this campaign.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStategetContextState()A subset ofTrackinginformation to expose the context state for this object.StringgetId()The id of this campaign.StringgetName()The user-readable name of this campaigninthashCode()voidsetActiveEndDate(Instant activeEndDate)Defines the ending time for which this campaign is active.voidsetActiveStartDate(Instant activeStartDate)Defines the beginning time for which this campaign is active.voidsetCodePrefix(String codePrefix)Defines a prefix to updateUses when generating campaign codes for this campaign.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)A subset ofTrackinginformation to expose the context state for this object.voidsetId(String id)The id of this campaign.voidsetName(String name)The user-readable name of this campaignStringtoString()
-
-
-
Method Detail
-
getId
public String getId()
The id of this campaign. This is also used as an identifier to track this campaign.
-
getName
public String getName()
The user-readable name of this campaign
-
getCodePrefix
public String getCodePrefix()
Defines a prefix to updateUses when generating campaign codes for this campaign.
-
getActiveStartDate
public Instant getActiveStartDate()
Defines the beginning time for which this campaign is active.
-
getActiveEndDate
public Instant getActiveEndDate()
Defines the ending time for which this campaign is active.
-
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 id of this campaign. This is also used as an identifier to track this campaign.
-
setName
public void setName(String name)
The user-readable name of this campaign
-
setCodePrefix
public void setCodePrefix(String codePrefix)
Defines a prefix to updateUses when generating campaign codes for this campaign.
-
setActiveStartDate
public void setActiveStartDate(Instant activeStartDate)
Defines the beginning time for which this campaign is active.
-
setActiveEndDate
public void setActiveEndDate(Instant activeEndDate)
Defines the ending time for which this campaign is active.
-
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)
-
-