public class DefaultLoadStoreFeaturesStrategy extends java.lang.Object implements LoadStoreFeaturesStrategy
LoadStoreFeaturesStrategy interface.| Constructor and Description |
|---|
DefaultLoadStoreFeaturesStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteObsoleteValues(ProductModel product,
java.util.List<ClassAttributeAssignmentModel> allAssignments,
java.util.List<ProductFeatureModel> correctlyStored) |
java.util.List<Feature> |
loadFeatures(java.util.List<ClassAttributeAssignmentModel> assignments,
ProductModel product)
Load features for particular product.
|
protected java.util.List<Feature> |
loadTypedFeatures(java.util.List<ClassAttributeAssignmentModel> assignments,
ProductModel product) |
protected java.util.List<Feature> |
loadUntypedFeatures(ProductModel product) |
void |
replaceFeatures(java.util.List<ClassAttributeAssignmentModel> allAssignments,
ProductModel product,
java.util.List<Feature> features)
Store features for particular product to the database.
|
void |
setCommonI18nService(CommonI18NService commonI18nService) |
void |
setI18nService(I18NService i18nService) |
void |
setModelService(ModelService modelService) |
void |
setProductFeaturesDao(ProductFeaturesDao productFeaturesDao) |
void |
setTxTemplate(TransactionTemplate txTemplate) |
void |
storeFeatures(ProductModel product,
java.util.List<Feature> features)
Store features for particular product to the database.
|
protected java.util.List<ProductFeatureModel> |
storeFeaturesInTx(ProductModel product,
java.util.List<Feature> features) |
public java.util.List<Feature> loadFeatures(java.util.List<ClassAttributeAssignmentModel> assignments, ProductModel product)
LoadStoreFeaturesStrategyloadFeatures in interface LoadStoreFeaturesStrategyproduct - the product for which list of Features will be loadedFeature objectsprotected java.util.List<Feature> loadUntypedFeatures(ProductModel product)
protected java.util.List<Feature> loadTypedFeatures(java.util.List<ClassAttributeAssignmentModel> assignments, ProductModel product)
public void storeFeatures(ProductModel product, java.util.List<Feature> features)
LoadStoreFeaturesStrategyremoveRemaining flag is set to
true all existing features which are not on the features list will be removed.storeFeatures in interface LoadStoreFeaturesStrategyproduct - the productfeatures - the list of features to storepublic void replaceFeatures(java.util.List<ClassAttributeAssignmentModel> allAssignments, ProductModel product, java.util.List<Feature> features)
LoadStoreFeaturesStrategyremoveRemaining flag is set to
true all existing features which are not on the features list will be removed.replaceFeatures in interface LoadStoreFeaturesStrategyallAssignments - all assignment to take into consideration for replacementproduct - the productfeatures - the list of features to storeprotected java.util.List<ProductFeatureModel> storeFeaturesInTx(ProductModel product, java.util.List<Feature> features)
protected void deleteObsoleteValues(ProductModel product, java.util.List<ClassAttributeAssignmentModel> allAssignments, java.util.List<ProductFeatureModel> correctlyStored)
public void setProductFeaturesDao(ProductFeaturesDao productFeaturesDao)
public void setModelService(ModelService modelService)
public void setTxTemplate(TransactionTemplate txTemplate)
public void setI18nService(I18NService i18nService)
public void setCommonI18nService(CommonI18NService commonI18nService)
Copyright © 2018 SAP SE. All Rights Reserved.