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
,org.springframework.data.repository.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 org.springframework.data.repository.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, CustomizedExportRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
Repository
for persistent counter-parts ofExport
- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<D>
findByStatusInAndLastUpdatedBefore(List<String> statuses, Instant cutoff)
Finds the exports whoseExport.status
matches one of the givenstatuses
and whoseExport.lastUpdated
is before the givencutoff
.List<D>
findByStatusInAndLastUpdatedBeforeAndTenantId(List<String> statuses, Instant cutoff, String tenantId)
Finds the exports whoseExport.status
matches one of the givenstatuses
and whoseExport.lastUpdated
is 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.target
andExport.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)
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)
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Methods inherited from interface com.broadleafcommerce.common.dataexport.repository.CustomizedExportRepository
setError, setFileLocationAndFinishedStatus, setNumberOfRecordsProcessed, setProcessingStatus
-
Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAll
-
-
-
-
Method Detail
-
findByStatusInAndLastUpdatedBefore
List<D> findByStatusInAndLastUpdatedBefore(List<String> statuses, Instant cutoff)
Finds the exports whoseExport.status
matches one of the givenstatuses
and whoseExport.lastUpdated
is before the givencutoff
.- Parameters:
statuses
- the results will be filtered to only include those exports whoseExport.status
matches one of these valuescutoff
- the results will be filtered to only include those exports whoseExport.lastUpdated
is before this value- Returns:
- the exports which have one of the given
statuses
and have aExport.lastUpdated
before the givencutoff
-
findByStatusInAndLastUpdatedBeforeAndTenantId
List<D> findByStatusInAndLastUpdatedBeforeAndTenantId(List<String> statuses, Instant cutoff, String tenantId)
Finds the exports whoseExport.status
matches one of the givenstatuses
and whoseExport.lastUpdated
is before the givencutoff
, within the specified tenant.- Parameters:
statuses
- the results will be filtered to only include those exports whoseExport.status
matches one of these valuescutoff
- the results will be filtered to only include those exports whoseExport.lastUpdated
is before this valuetenantId
- the tenant id that this export operation was initiated from- Returns:
- the exports which have one of the given
statuses
and have aExport.lastUpdated
before the givencutoff
-
findByTargetAndApplicationIdAndTenantId
org.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.target
andExport.applicationId
.- Parameters:
target
- theExport.target
to filter byapplicationId
- theExport.applicationId
to filter results by. Note that if this isnull
, only exports with null application IDs will be returned.tenantId
- theExport.tenantId
to filter results byfilters
- additional filters to apply, must not be nullpageable
- information about which page of results to return from the database- Returns:
- the exports with the given
Export.target
andExport.applicationId
-
findByTargetAndAuthorAndApplicationIdAndTenantId
org.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)
- Parameters:
target
- theExport.target
to filter results byauthor
- theExport.author
to filter results byapplicationId
- theExport.applicationId
to filter results by. Note that if this isnull
, only exports with null application IDs will be returned.filters
- additional filters to apply, must not be nullpageable
- information about which page of results to return from the database- Returns:
- the exports matching the given criteria
-
findByTargetAndAuthorAndApplicationIdAndTenantIdAndParentId
org.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)
- Parameters:
target
- theExport.target
to filter results byauthor
- theExport.author
to filter results byapplicationId
- theExport.applicationId
to filter results by. Note that if this isnull
, only exports with null application IDs will be returned.filters
- additional filters to apply, must not be nullpageable
- information about which page of results to return from the database- Returns:
- the exports matching the given criteria
-
-