CampaignEnrollment

public class CampaignEnrollment

Domain representation of an enrollment for the message campaign.

Constructors

CampaignEnrollment

public CampaignEnrollment(String externalId, String campaignName)

Methods

copyFrom

public CampaignEnrollment copyFrom(CampaignEnrollment enrollment)

Updates this campaign enrollment with the values taken from the other campaign enrollment. All of the fields of this class will be replaced, except of the id and campaignName.

Parameters:
  • enrollment – a campaign enrollment to update the values from

getCampaignName

public String getCampaignName()

getDeliverTime

public Time getDeliverTime()

getExternalId

public String getExternalId()

getId

public Long getId()

getReferenceDate

public LocalDate getReferenceDate()

getStatus

public CampaignEnrollmentStatus getStatus()

isActive

public boolean isActive()
Returns:true, if the status of this enrollment is ACTIVE; false otherwise

setCampaignName

public void setCampaignName(String campaignName)

setDeliverTime

public void setDeliverTime(Time deliverTime)

setExternalId

public void setExternalId(String externalId)

setId

public void setId(Long id)

setReferenceDate

public void setReferenceDate(LocalDate referenceDate)

setStatus

public void setStatus(CampaignEnrollmentStatus status)