Class ClassificationPersistenceHandler
- java.lang.Object
-
- de.hybris.platform.platformbackoffice.classification.FeaturePeristanceHandler
-
- de.hybris.platform.platformbackoffice.bulkedit.ClassificationPersistenceHandler
-
public class ClassificationPersistenceHandler extends FeaturePeristanceHandler
Handler responsible for persistence given classification changes for given product
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.platformbackoffice.classification.FeaturePeristanceHandler
classificationService
-
-
Constructor Summary
Constructors Constructor Description ClassificationPersistenceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<FeatureValue>getValues(Feature feature, java.lang.String isoCode)protected booleanhasEmptyValueWithoutClearCheckbox(ClassificationChangeDto change, Feature feature)voidsaveChanges(ProductModel product, java.util.Collection<ClassificationChangeDto> changes)Saves given list of classification changes for given productprotected voidsaveFeatures(ProductModel productModel, java.util.Map<java.lang.String,Feature> productFeatures)voidsetCockpitGlobalEventPublisher(com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher cockpitGlobalEventPublisher)voidsetModelService(ModelService modelService)protected voidstoreValues(Feature feature, java.util.List<FeatureValue> values, java.lang.String isoCode)-
Methods inherited from class de.hybris.platform.platformbackoffice.classification.FeaturePeristanceHandler
setClassificationService
-
-
-
-
Method Detail
-
saveChanges
public void saveChanges(ProductModel product, java.util.Collection<ClassificationChangeDto> changes)
Saves given list of classification changes for given product- Parameters:
product- which should be modifiedchanges- list of changes which should be applied for given product
-
saveFeatures
protected void saveFeatures(ProductModel productModel, java.util.Map<java.lang.String,Feature> productFeatures)
- Overrides:
saveFeaturesin classFeaturePeristanceHandler
-
hasEmptyValueWithoutClearCheckbox
protected boolean hasEmptyValueWithoutClearCheckbox(ClassificationChangeDto change, Feature feature)
-
storeValues
protected void storeValues(Feature feature, java.util.List<FeatureValue> values, java.lang.String isoCode)
-
getValues
protected java.util.List<FeatureValue> getValues(Feature feature, java.lang.String isoCode)
-
setModelService
public void setModelService(ModelService modelService)
-
setCockpitGlobalEventPublisher
public void setCockpitGlobalEventPublisher(com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher cockpitGlobalEventPublisher)
-
-