Class DefaultCampaignService
java.lang.Object
de.hybris.platform.campaigns.service.impl.DefaultCampaignService
- All Implemented Interfaces:
CampaignService
Default implementation of
CampaignService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides list of all active campaigns.Provides list of all campaigns.getCampaignByCode(String code) ProvidesCampaignModelwith requestedCampaignModel.CODEprotected CampaignDaoprotected TimeServicevoidsetCampaignDao(CampaignDao campaignDao) voidsetTimeService(TimeService timeService)
-
Constructor Details
-
DefaultCampaignService
public DefaultCampaignService()
-
-
Method Details
-
getAllCampaigns
Description copied from interface:CampaignServiceProvides list of all campaigns.- Specified by:
getAllCampaignsin interfaceCampaignService- Returns:
- list of all
CampaignModels.
-
getActiveCampaigns
Description copied from interface:CampaignServiceProvides list of all active campaigns. Campaign is considered as active when it hasCampaignModel.ENABLEDeq true and the current time provided byTimeServiceAPI is betweenCampaignModel.STARTDATEandCampaignModel.ENDDATEinclusive. When the value ofCampaignModel.STARTDATEorCampaignModel.ENDDATEis not set then this value is considered as within date range.- Specified by:
getActiveCampaignsin interfaceCampaignService- Returns:
- list of active
CampaignModels.
-
getCampaignByCode
Description copied from interface:CampaignServiceProvidesCampaignModelwith requestedCampaignModel.CODE- Specified by:
getCampaignByCodein interfaceCampaignService- Parameters:
code- code of campaign- Returns:
- matching
CampaignModel
-
getCampaignDao
-
setCampaignDao
-
getTimeService
-
setTimeService
-