Interface OfferAuditSummaryRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
AlternateLifecycleOfferAuditSummaryRepository<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>
- All Known Subinterfaces:
JpaOfferAuditSummaryRepository<D>
@NoRepositoryBean
public interface OfferAuditSummaryRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, AlternateLifecycleOfferAuditSummaryRepository<D>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByOfferIdIn
(Set<String> offerIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve allOfferAuditSummary
records that relate to the provided offer IDs.findByOfferId
(String offerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve theOfferAuditSummary
record by offer ID.Methods inherited from interface com.broadleafcommerce.promotion.offer.repository.AlternateLifecycleOfferAuditSummaryRepository
createOrUpdateAndIncrement
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 Details
-
findAllByOfferIdIn
@Policy(operationTypes=READ) List<D> findAllByOfferIdIn(@NonNull Set<String> offerIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve allOfferAuditSummary
records that relate to the provided offer IDs.- Parameters:
offerIds
- the IDs of the offers to find audit records forcontextInfo
- the context to perform the operation in- Returns:
- the
OfferAuditSummary
records that relate to the provided offer IDs
-
findByOfferId
@Nullable @Policy(operationTypes=READ) D findByOfferId(@NonNull String offerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve theOfferAuditSummary
record by offer ID.- Parameters:
offerId
- the ID of the offer to find the audit summary forcontextInfo
- the context to perform the operation in- Returns:
- the
OfferAuditSummary
record that relates to the provided offer ID
-