Interface CampaignService<P extends Campaign>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultCampaignService
public interface CampaignService<P extends Campaign>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Base service API for
Campaign
. Backed by a
com.broadleafcommerce.promotion.campaign.repository.CampaignRepository
.- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsById
(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether the campaign with the given id exists in the data storeboolean
existsByIdAndActive
(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether the campaign with the given id exists and is active in the data store.readActiveCampaignsByContextIds
(Iterable<String> campaignIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllByContextIdInOrExternalIdIn
(Iterable<String> contextIds, Iterable<String> externalIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<P>
readAllByName
(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByName
-
readActiveCampaignsByContextIds
-
existsById
boolean existsById(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether the campaign with the given id exists in the data store- Parameters:
id
- the id of the campaign to findcontextInfo
- context information surrounding sandboxing and multi tenant state- Returns:
- whether the campaign with the given id exists in the data store
-
existsByIdAndActive
boolean existsByIdAndActive(@NonNull String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether the campaign with the given id exists and is active in the data store.- Parameters:
id
- the id of the campaign to findcontextInfo
- context information surrounding sandboxing and multi tenant state- Returns:
- whether the campaign with the given id exists and is active in the data store
-
readAllByContextIdInOrExternalIdIn
-