public interface LoadStoreFeaturesStrategy
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Feature> |
loadFeatures(java.util.List<ClassAttributeAssignmentModel> assignments,
ProductModel product)
Load features for particular product.
|
void |
replaceFeatures(java.util.List<ClassAttributeAssignmentModel> allAssignments,
ProductModel product,
java.util.List<Feature> features)
Store features for particular product to the database.
|
void |
storeFeatures(ProductModel product,
java.util.List<Feature> features)
Store features for particular product to the database.
|
java.util.List<Feature> loadFeatures(java.util.List<ClassAttributeAssignmentModel> assignments, ProductModel product)
product - the product for which list of Features will be loadedFeature objectsjava.lang.IllegalArgumentException - thrown when product is not persistedvoid storeFeatures(ProductModel product, java.util.List<Feature> features)
removeRemaining flag is set to
true all existing features which are not on the features list will be removed.product - the productfeatures - the list of features to storejava.lang.IllegalArgumentException - thrown when product is not persistedvoid replaceFeatures(java.util.List<ClassAttributeAssignmentModel> allAssignments, ProductModel product, java.util.List<Feature> features)
removeRemaining flag is set to
true all existing features which are not on the features list will be removed.allAssignments - all assignment to take into consideration for replacementproduct - the productfeatures - the list of features to storejava.lang.IllegalArgumentException - thrown when product is not persistedCopyright © 2018 SAP SE. All Rights Reserved.