Interface DataFeedPublicationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedDataFeedPublicationRepository<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:
JpaDataFeedPublicationRepository<D>
@NoRepositoryBean
public interface DataFeedPublicationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedDataFeedPublicationRepository<D>
Repository for persistent counter-parts of DataFeedPublication-
Method Summary
Modifier and TypeMethodDescriptionfindAllByDataFeedProcessExecutionId(String dataFeedProcessExecutionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allDataFeedPublicationinstances belonging to the givenDataFeedProcessExecution.org.springframework.data.domain.Page<D>findAllByDataFeedProcessExecutionId(String dataFeedProcessExecutionId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the publication instances for the specified data feed process execution id.findByContextIdAndDataFeedProcessExecutionId(String id, String dataFeedProcessExecutionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the publication by id and the data feed process execution id.Methods inherited from interface com.broadleafcommerce.datafeed.repository.CustomizedDataFeedPublicationRepository
initializeNotificationState, setStatusAndCompletionDetails, setStatusAndStartTimeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods 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, setTrackableBehaviorUtilMethods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAll
-
Method Details
-
findAllByDataFeedProcessExecutionId
@Policy(operationTypes=READ) List<D> findAllByDataFeedProcessExecutionId(String dataFeedProcessExecutionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allDataFeedPublicationinstances belonging to the givenDataFeedProcessExecution.- Parameters:
dataFeedProcessExecutionId- the value ofDataFeedPublication.getDataFeedProcessExecutionId()to matchcontextInfo- context information around multitenant state- Returns:
- a list of all found publication instances
-
findAllByDataFeedProcessExecutionId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByDataFeedProcessExecutionId(String dataFeedProcessExecutionId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the publication instances for the specified data feed process execution id.- Parameters:
dataFeedProcessExecutionId- the data feed process execution idfilters- the RSQLNodeused to restrict resultpage- the requested page of results from the databasecontextInfo- context information around multitenant state- Returns:
- the publication instances for the specified data feed process execution id
-
findByContextIdAndDataFeedProcessExecutionId
@Policy(operationTypes=READ) Optional<D> findByContextIdAndDataFeedProcessExecutionId(String id, String dataFeedProcessExecutionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the publication by id and the data feed process execution id.- Parameters:
id- the data feed publication iddataFeedProcessExecutionId- the data feed process execution idcontextInfo- context information around multitenant state- Returns:
- an
Optionalcontaining the narrowed entity instance, elseOptional.empty()
-