Interface OfferAuditDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

  • All Superinterfaces:
    CustomizedOfferAuditDetailRepository<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:
    JpaOfferAuditDetailRepository<D>

    @NoRepositoryBean
    public interface OfferAuditDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
    extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, CustomizedOfferAuditDetailRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
    Author:
    Nathan Moore (nathanmoore).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Long countByOfferId​(String offerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Count all OfferAuditDetail records that relate to the provided offer id.
      Long countByOfferIdAndSharedCode​(String offerId, String sharedCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Count all OfferAuditDetail records that relate to the provided offer id and shared code id.
      • 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
      • Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor

        exists, findAll, findAll, findAll, findAll
    • Method Detail

      • countByOfferId

        @Policy(operationTypes=READ)
        Long countByOfferId​(String offerId,
                            @Nullable
                            com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Count all OfferAuditDetail records that relate to the provided offer id.
        Parameters:
        offerId - The offer id to use to count related OfferAuditDetail records.
        contextInfo - context information around sandbox and multitenant state
        Returns:
        all OfferAuditDetail records that relate to the provided offer id.
      • countByOfferIdAndSharedCode

        @Policy(operationTypes=READ)
        Long countByOfferIdAndSharedCode​(String offerId,
                                         String sharedCode,
                                         @Nullable
                                         com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Count all OfferAuditDetail records that relate to the provided offer id and shared code id.
        Parameters:
        offerId - The offer id to use to count related OfferAuditDetail records.
        sharedCode - The shared code to use to count related OfferAuditDetail records.
        contextInfo - context information around sandbox and multitenant state
        Returns:
        all OfferAuditDetail records that relate to the provided offer id and shared code id.