Class RemovedProductCatalogVersionDiffFinder
- java.lang.Object
-
- de.hybris.platform.catalog.job.diff.impl.AbstractProductCatalogVersionDiffFinder
-
- de.hybris.platform.catalog.job.diff.impl.RemovedProductCatalogVersionDiffFinder
-
- All Implemented Interfaces:
CatalogVersionDifferenceFinder<ProductModel,ProductCatalogVersionDifferenceModel>
public class RemovedProductCatalogVersionDiffFinder extends AbstractProductCatalogVersionDiffFinder
Implementation for a finding removedProductModel
between twoCatalogVersionModel
s.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.catalog.job.diff.impl.AbstractProductCatalogVersionDiffFinder
enumerationService, modelService
-
-
Constructor Summary
Constructors Constructor Description RemovedProductCatalogVersionDiffFinder()
-
Method Summary
-
Methods inherited from class de.hybris.platform.catalog.job.diff.impl.AbstractProductCatalogVersionDiffFinder
processDifferences, search4Diffs, setEnumerationService, setFlexibleSearchService, setModelService, setRange
-
-
-
-
Method Detail
-
findDifferences
public java.util.Collection<ProductModel> findDifferences(int start, int count, CompareCatalogVersionsCronJobModel model)
Description copied from class:AbstractProductCatalogVersionDiffFinder
Abstraction for a getting collection of differentProductModel
betweenCompareCatalogVersionsCronJobModel
s source and targetCatalogVersionModel
.- Specified by:
findDifferences
in classAbstractProductCatalogVersionDiffFinder
-
getProductDifferenceMode
protected ProductDifferenceMode getProductDifferenceMode()
Description copied from class:AbstractProductCatalogVersionDiffFinder
Provides aProductDifferenceMode
instance to be specialized in any subtype.- Specified by:
getProductDifferenceMode
in classAbstractProductCatalogVersionDiffFinder
-
populateDifferenceModel
public ProductCatalogVersionDifferenceModel populateDifferenceModel(ProductModel srcProduct, ProductModel targetProduct, CompareCatalogVersionsCronJobModel model)
- Specified by:
populateDifferenceModel
in classAbstractProductCatalogVersionDiffFinder
-
setDifferencesCount
protected void setDifferencesCount(CompareCatalogVersionsCronJobModel model, int differencedProductsCount)
Description copied from class:AbstractProductCatalogVersionDiffFinder
Method to reflect differences intoCronJobModel
.- Specified by:
setDifferencesCount
in classAbstractProductCatalogVersionDiffFinder
-
shouldProcess
protected boolean shouldProcess(CompareCatalogVersionsCronJobModel cronJobModel)
Description copied from class:AbstractProductCatalogVersionDiffFinder
Method decides if to process differences or not depending on the model's flagCompareCatalogVersionsCronJobModel.getMissingProducts()
,CompareCatalogVersionsCronJobModel.getSearchNewProducts()
- Specified by:
shouldProcess
in classAbstractProductCatalogVersionDiffFinder
-
-