Interface ExportRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
- All Superinterfaces:
- org.springframework.data.repository.CrudRepository<D,,- String> - CustomizedExportRepository<D>,- com.broadleafcommerce.common.extension.DomainTypeAware,- com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>,- com.broadleafcommerce.common.messaging.notification.NotificationStateRepository,- com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,,- String> - org.springframework.data.repository.Repository<D,- String> 
- All Known Subinterfaces:
- JpaExportRepository<D>
@NoRepositoryBean
public interface ExportRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
extends com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, CustomizedExportRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository 
Repository for persistent counter-parts of
 Export- Author:
- Samarth Dhruva (samarthd)
- 
Method SummaryModifier and TypeMethodDescriptionfindByStatusInAndLastUpdatedBefore(List<String> statuses, Instant cutoff) Finds the exports whoseExport.statusmatches one of the givenstatusesand whoseExport.lastUpdatedis before the givencutoff.findByStatusInAndLastUpdatedBeforeAndTenantId(List<String> statuses, Instant cutoff, String tenantId) Finds the exports whoseExport.statusmatches one of the givenstatusesand whoseExport.lastUpdatedis before the givencutoff, within the specified tenant.org.springframework.data.domain.Page<D>findByTargetAndApplicationIdAndTenantId(String target, String applicationId, String tenantId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable) Reads the exports with the givenExport.targetandExport.applicationId.org.springframework.data.domain.Page<D>findByTargetAndAuthorAndApplicationIdAndTenantId(String target, String author, String applicationId, String tenantId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable) Finds the exports with the givenExport.target,Export.author, andExport.applicationId.org.springframework.data.domain.Page<D>findByTargetAndAuthorAndApplicationIdAndTenantIdAndParentId(String target, String author, String applicationId, String tenantId, String parentId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable) Finds the exports with the givenExport.target,Export.author, andExport.applicationId.Methods inherited from interface org.springframework.data.repository.CrudRepositorycount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods inherited from interface com.broadleafcommerce.common.dataexport.repository.CustomizedExportRepositorysetError, setFileLocationAndFinishedStatus, setNumberOfRecordsProcessed, setProcessingStatusMethods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAwaregetDomainTypeMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutorexists, findAll, findAll, findAll, findAllMethods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepositoryfindNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods inherited from interface com.broadleafcommerce.common.extension.data.PagingAndSortingRepositoryfindAll, findAll
- 
Method Details- 
findByStatusInAndLastUpdatedBeforeFinds the exports whoseExport.statusmatches one of the givenstatusesand whoseExport.lastUpdatedis before the givencutoff.- Parameters:
- statuses- the results will be filtered to only include those exports whose- Export.statusmatches one of these values
- cutoff- the results will be filtered to only include those exports whose- Export.lastUpdatedis before this value
- Returns:
- the exports which have one of the given statusesand have aExport.lastUpdatedbefore the givencutoff
 
- 
findByStatusInAndLastUpdatedBeforeAndTenantIdList<D> findByStatusInAndLastUpdatedBeforeAndTenantId(List<String> statuses, Instant cutoff, String tenantId) Finds the exports whoseExport.statusmatches one of the givenstatusesand whoseExport.lastUpdatedis before the givencutoff, within the specified tenant.- Parameters:
- statuses- the results will be filtered to only include those exports whose- Export.statusmatches one of these values
- cutoff- the results will be filtered to only include those exports whose- Export.lastUpdatedis before this value
- tenantId- the tenant id that this export operation was initiated from
- Returns:
- the exports which have one of the given statusesand have aExport.lastUpdatedbefore the givencutoff
 
- 
findByTargetAndApplicationIdAndTenantIdorg.springframework.data.domain.Page<D> findByTargetAndApplicationIdAndTenantId(String target, @Nullable String applicationId, String tenantId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable) Reads the exports with the givenExport.targetandExport.applicationId.- Parameters:
- target- the- Export.targetto filter by
- applicationId- the- Export.applicationIdto filter results by. Note that if this is- null, only exports with null application IDs will be returned.
- tenantId- the- Export.tenantIdto filter results by
- filters- additional filters to apply, must not be null
- pageable- information about which page of results to return from the database
- Returns:
- the exports with the given Export.targetandExport.applicationId
 
- 
findByTargetAndAuthorAndApplicationIdAndTenantIdorg.springframework.data.domain.Page<D> findByTargetAndAuthorAndApplicationIdAndTenantId(String target, String author, @Nullable String applicationId, String tenantId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable) Finds the exports with the givenExport.target,Export.author, andExport.applicationId.- Parameters:
- target- the- Export.targetto filter results by
- author- the- Export.authorto filter results by
- applicationId- the- Export.applicationIdto filter results by. Note that if this is- null, only exports with null application IDs will be returned.
- filters- additional filters to apply, must not be null
- pageable- information about which page of results to return from the database
- Returns:
- the exports matching the given criteria
 
- 
findByTargetAndAuthorAndApplicationIdAndTenantIdAndParentIdorg.springframework.data.domain.Page<D> findByTargetAndAuthorAndApplicationIdAndTenantIdAndParentId(String target, String author, @Nullable String applicationId, String tenantId, String parentId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable) Finds the exports with the givenExport.target,Export.author, andExport.applicationId.- Parameters:
- target- the- Export.targetto filter results by
- author- the- Export.authorto filter results by
- applicationId- the- Export.applicationIdto filter results by. Note that if this is- null, only exports with null application IDs will be returned.
- filters- additional filters to apply, must not be null
- pageable- information about which page of results to return from the database
- Returns:
- the exports matching the given criteria
 
 
-