Interface CustomizedImportBatchItemCompletionRepository<D>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
- All Known Subinterfaces:
ImportBatchItemCompletionRepository<D>
,JpaImportBatchItemCompletionRepository<D>
- All Known Implementing Classes:
JpaCustomizedImportBatchItemCompletionRepository
public interface CustomizedImportBatchItemCompletionRepository<D>
extends com.broadleafcommerce.common.extension.DomainTypeAware
- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionfindByCorrelationIdInOrTopLevelParentIdInOrderedByLineNumber
(String importId, Collection<String> correlationIdIn, Collection<String> topLevelParentCorrelationIdIn) For the givenimportId
, returns all batch item completion records which either have aBatchItemCompletion.correlationId
that matches one of the givencorrelationIdIn
values or aBatchItemCompletion.topLevelParentCorrelationId
that matches one of the giventopLevelParentCorrelationIdIn
values.initializeForIndexing
(String batchItemCompletionId, com.broadleafcommerce.data.tracking.core.messaging.search.BatchIndexableType type, List<String> idsToIndex) Deprecated, for removal: This API element is subject to removal in a future version.initializeForIndexing
(String batchItemCompletionId, String batchIndexableType, List<String> idsToIndex) If the import is found, atomically initializes theNotificationState
forBatchIndexRequestProducer.TYPE
, and renewsImport.getLastUpdated()
.Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findByCorrelationIdInOrTopLevelParentIdInOrderedByLineNumber
Stream<D> findByCorrelationIdInOrTopLevelParentIdInOrderedByLineNumber(String importId, @Nullable Collection<String> correlationIdIn, @Nullable Collection<String> topLevelParentCorrelationIdIn) For the givenimportId
, returns all batch item completion records which either have aBatchItemCompletion.correlationId
that matches one of the givencorrelationIdIn
values or aBatchItemCompletion.topLevelParentCorrelationId
that matches one of the giventopLevelParentCorrelationIdIn
values.Results must be sorted by
BatchItemCompletion.lineNumber
in ascending order.- Parameters:
importId
- the ID of the import which results should be filtered bycorrelationIdIn
- a list of correlation IDs that are valid to return in the result (optional)topLevelParentCorrelationIdIn
- a list of top level parent correlation IDs that are valid to return in the result (optional)- Returns:
- all records which either have a
BatchItemCompletion.correlationId
that matches one of the givencorrelationIdIn
values or aBatchItemCompletion.topLevelParentCorrelationId
that matches one of the giventopLevelParentCorrelationIdIn
values, sorted byBatchItemCompletion.lineNumber
in ascending order
-
initializeForIndexing
@Deprecated(since="1.8.2", forRemoval=true) @Nullable D initializeForIndexing(String batchItemCompletionId, com.broadleafcommerce.data.tracking.core.messaging.search.BatchIndexableType type, List<String> idsToIndex) Deprecated, for removal: This API element is subject to removal in a future version.replaced byinitializeForIndexing(String, String, List)
If the import is found, atomically initializes theNotificationState
forBatchIndexRequestProducer.TYPE
, and renewsImport.getLastUpdated()
.- Parameters:
batchItemCompletionId
- the ID of the BatchItemCompletion instance to modifytype
- The indexable type for the importidsToIndex
- The repository entity ids to index- Returns:
- the updated
Import
if found and updated,null
otherwise
-
initializeForIndexing
@Nullable D initializeForIndexing(String batchItemCompletionId, String batchIndexableType, List<String> idsToIndex) If the import is found, atomically initializes theNotificationState
forBatchIndexRequestProducer.TYPE
, and renewsImport.getLastUpdated()
.- Parameters:
batchItemCompletionId
- the ID of the BatchItemCompletion instance to modifybatchIndexableType
- The indexable type for the importidsToIndex
- The repository entity ids to index- Returns:
- the updated
Import
if found and updated,null
otherwise
-
initializeForIndexing(String, String, List)