Package de.hybris.platform.campaigns.dao
Interface CampaignDao
- All Superinterfaces:
GenericDao<CampaignModel>
- All Known Implementing Classes:
DefaultCampaignDao
Interface allows searching for
CampaignModel-
Method Summary
Modifier and TypeMethodDescriptionfindActiveCampaigns(Date currentDateTime) Provides list of all active campaigns.Provides list of all campaigns.findCampaignByCode(String code) ProvidesCampaignModelwith requestedCampaignModel.CODE
-
Method Details
-
findAllCampaigns
List<CampaignModel> findAllCampaigns()Provides list of all campaigns.- Returns:
- list of all
CampaignModels.
-
findActiveCampaigns
Provides list of all active campaigns. Campaign is considered as active when it hasCampaignModel.ENABLEDeq true and the currentDateTime provided as a parameter is betweenCampaignModel.STARTDATEandCampaignModel.ENDDATEinclusive. When the value ofCampaignModel.STARTDATEorCampaignModel.ENDDATEis not set then this value is considered as within date range.- Parameters:
currentDateTime- - Current date time that is used to get active campaign for- Returns:
- list of active
CampaignModels.
-
findCampaignByCode
ProvidesCampaignModelwith requestedCampaignModel.CODE- Parameters:
code-- Returns:
- matching
CampaignModel - Throws:
UnknownIdentifierException- if campaign with given code hasn't been foundAmbiguousIdentifierException- if there are more than one campaign using the same code
-