Class NewProductCatalogVersionDiffFinder
java.lang.Object
de.hybris.platform.catalog.job.diff.impl.AbstractProductCatalogVersionDiffFinder
de.hybris.platform.catalog.job.diff.impl.NewProductCatalogVersionDiffFinder
- All Implemented Interfaces:
CatalogVersionDifferenceFinder<ProductModel,ProductCatalogVersionDifferenceModel>
Finder for a new
ProductModel differences between two CatalogVersionModels from given
CompareCatalogVersionsCronJobModel.-
Field Summary
Fields inherited from class de.hybris.platform.catalog.job.diff.impl.AbstractProductCatalogVersionDiffFinder
enumerationService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindDifferences(int start, int count, CompareCatalogVersionsCronJobModel model) Abstraction for a getting collection of differentProductModelbetweenCompareCatalogVersionsCronJobModels source and targetCatalogVersionModel.protected ProductDifferenceModeProvides aProductDifferenceModeinstance to be specialized in any subtype.populateDifferenceModel(ProductModel srcProduct, ProductModel targetProduct, CompareCatalogVersionsCronJobModel model) protected voidsetDifferencesCount(CompareCatalogVersionsCronJobModel model, int differencedProductsCount) Method to reflect differences intoCronJobModel.protected booleanshouldProcess(CompareCatalogVersionsCronJobModel cronJobModel) Method decides if to process differences or not depending on the model's flagCompareCatalogVersionsCronJobModel.getMissingProducts(),CompareCatalogVersionsCronJobModel.getSearchNewProducts()Methods inherited from class de.hybris.platform.catalog.job.diff.impl.AbstractProductCatalogVersionDiffFinder
processDifferences, search4Diffs, setEnumerationService, setFlexibleSearchService, setModelService, setRange
-
Constructor Details
-
NewProductCatalogVersionDiffFinder
public NewProductCatalogVersionDiffFinder()
-
-
Method Details
-
findDifferences
public Collection<ProductModel> findDifferences(int start, int count, CompareCatalogVersionsCronJobModel model) Description copied from class:AbstractProductCatalogVersionDiffFinderAbstraction for a getting collection of differentProductModelbetweenCompareCatalogVersionsCronJobModels source and targetCatalogVersionModel.- Specified by:
findDifferencesin classAbstractProductCatalogVersionDiffFinder
-
getProductDifferenceMode
Description copied from class:AbstractProductCatalogVersionDiffFinderProvides aProductDifferenceModeinstance to be specialized in any subtype.- Specified by:
getProductDifferenceModein classAbstractProductCatalogVersionDiffFinder
-
populateDifferenceModel
public ProductCatalogVersionDifferenceModel populateDifferenceModel(ProductModel srcProduct, ProductModel targetProduct, CompareCatalogVersionsCronJobModel model) - Specified by:
populateDifferenceModelin classAbstractProductCatalogVersionDiffFinder
-
setDifferencesCount
protected void setDifferencesCount(CompareCatalogVersionsCronJobModel model, int differencedProductsCount) Description copied from class:AbstractProductCatalogVersionDiffFinderMethod to reflect differences intoCronJobModel.- Specified by:
setDifferencesCountin classAbstractProductCatalogVersionDiffFinder
-
shouldProcess
Description copied from class:AbstractProductCatalogVersionDiffFinderMethod decides if to process differences or not depending on the model's flagCompareCatalogVersionsCronJobModel.getMissingProducts(),CompareCatalogVersionsCronJobModel.getSearchNewProducts()- Specified by:
shouldProcessin classAbstractProductCatalogVersionDiffFinder
-