Interface CampaignCodeRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Superinterfaces:
CustomizedCampaignCodeRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
,org.springframework.data.repository.Repository<D,String>
,com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
,com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
- All Known Subinterfaces:
JpaCampaignCodeRepository<D>
@NoRepositoryBean public interface CampaignCodeRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedCampaignCodeRepository<D>
Repository
for persistent counter-parts ofCampaignCode
.- Author:
- Chad Harchar (charchar)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<D>
findAllByGeneratorIdAndAssigned(String generatorId, boolean isAssigned, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Finds all the campaign codes with the given code generator id andisAssigned
flag.org.springframework.data.domain.Page<D>
findByCampaignId(String campaignId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
List<D>
findByGeneratorIdAndCodeIn(String generatorId, List<String> codeStrings)
-
Methods inherited from interface com.broadleafcommerce.promotion.campaign.repository.CustomizedCampaignCodeRepository
findAllByCode, findAllByCodes, findAllDuplicatesForCodesInCampaign, findByContextId, findExistingByCodesIncludeExpiredForCampaignId, readAllByCampaignId
-
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository
archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil
-
-
-
-
Method Detail
-
findByCampaignId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByCampaignId(String campaignId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
findByGeneratorIdAndCodeIn
@Policy(operationTypes=READ) List<D> findByGeneratorIdAndCodeIn(String generatorId, List<String> codeStrings)
-
findAllByGeneratorIdAndAssigned
@Policy(operationTypes=READ) List<D> findAllByGeneratorIdAndAssigned(String generatorId, boolean isAssigned, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Finds all the campaign codes with the given code generator id andisAssigned
flag.- Parameters:
generatorId
- the id of the code generator that these codes were generated fromisAssigned
- whether the campaign codes are assignedcontext
- context information surrounding sandboxing and multi tenant state- Returns:
- the campaign codes with the given code generator id and
isAssigned
flag
-
-