Interface CampaignRepository
-
- All Known Implementing Classes:
DatabaseCampaignRepository
public interface CampaignRepositoryRight-side port for secondary actors of the business domain. SeeCampaignExecutionEngineUse to Store Campaign
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CampaigncreateOrUpdate(Campaign campaign)List<Campaign>findAll()CampaignExecutionReportfindByExecutionId(Long campaignExecutionId)CampaignfindById(Long campaignId)List<Campaign>findByName(String campaignName)List<Campaign>findCampaignsByScenarioId(String scenarioId)List<CampaignExecutionReport>findExecutionsById(Long campaignId)List<CampaignExecutionReport>findLastExecutions(Long numberOfExecution)List<String>findScenariosIds(Long campaignId)LongnewCampaignExecution()booleanremoveById(Long id)voidsaveReport(Long campaignId, CampaignExecutionReport report)
-
-
-
Method Detail
-
saveReport
void saveReport(Long campaignId, CampaignExecutionReport report)
-
removeById
boolean removeById(Long id)
-
findById
Campaign findById(Long campaignId) throws CampaignNotFoundException
- Throws:
CampaignNotFoundException
-
findExecutionsById
List<CampaignExecutionReport> findExecutionsById(Long campaignId)
-
findLastExecutions
List<CampaignExecutionReport> findLastExecutions(Long numberOfExecution)
-
newCampaignExecution
Long newCampaignExecution()
-
findByExecutionId
CampaignExecutionReport findByExecutionId(Long campaignExecutionId)
-
-