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

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

    @NoRepositoryBean
    public interface CustomerNoteRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
    extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
    Repository for persistent counterparts of CustomerNote.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.springframework.data.domain.Page<D> findAllByCustomerId​(String customerContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieve notes for the given customer context 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

      • findAllByCustomerId

        @Policy(operationTypes=READ)
        org.springframework.data.domain.Page<D> findAllByCustomerId​(String customerContextId,
                                                                    @Nullable
                                                                    cz.jirutka.rsql.parser.ast.Node filters,
                                                                    @Nullable
                                                                    org.springframework.data.domain.Pageable page,
                                                                    @Nullable
                                                                    com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieve notes for the given customer context ID.
        Parameters:
        customerContextId - the context ID of the customer to search for
        filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
        page - the requested page of results from the database
        contextInfo - context information around sandbox and multitenant state
        Returns:
        a page of the notes associated with the given customer context ID