Class DefaultProductFeatureModelFactory
java.lang.Object
de.hybris.platform.integrationservices.model.impl.DefaultProductFeatureModelFactory
- All Implemented Interfaces:
ProductFeatureModelFactory
Default implementation of
ProductFeatureModelFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition) Creates a feature for product with classification attribute.create(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition, LanguageModel language) Creates a feature for product with classification attribute for the given language.voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultProductFeatureModelFactory
public DefaultProductFeatureModelFactory()
-
-
Method Details
-
create
public ProductFeatureModel create(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition) Description copied from interface:ProductFeatureModelFactoryCreates a feature for product with classification attribute.- Specified by:
createin interfaceProductFeatureModelFactory- Parameters:
product- product to create features forclassAttributeAssignment- classification attribute assignment for the featurevalue- values to assign to the featurevaluePosition- the position to place the feature in the product- Returns:
- new product feature model
-
create
public ProductFeatureModel create(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition, LanguageModel language) Description copied from interface:ProductFeatureModelFactoryCreates a feature for product with classification attribute for the given language.- Specified by:
createin interfaceProductFeatureModelFactory- Parameters:
product- product to create features forclassAttributeAssignment- classification attribute assignment for the featurevalue- values to assign to the featurevaluePosition- the position to place the feature in the productlanguage- the language of the feature value- Returns:
- new product feature model
-
setModelService
-