Class DefaultAsModelCloningContext
java.lang.Object
de.hybris.platform.adaptivesearch.strategies.impl.DefaultAsModelCloningContext
- All Implemented Interfaces:
ModelCloningContext
Default Adaptive Search implementation of model cloning context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPresetValue(Object model, String qualifier) Only valid ifModelCloningContext.usePresetValue(Object, String)returnstruefor the specified attribute.voidsetAsUidGenerator(AsUidGenerator asUidGenerator) voidsetTypeService(TypeService typeService) booleanskipAttribute(Object model, String qualifier) Iftruethat particular attribute will not be included in the cloning process.booleantreatAsPartOf(Object model, String qualifier) Iftruethat particular attribute is treated as partOf which results in deep-cloning each attribute value too before assigning them as value to the cloned model.booleanusePresetValue(Object model, String qualifier) Iftruefor the given attribute the cloning process will not use the original model attribute values but the one returned byModelCloningContext.getPresetValue(Object, String).
-
Constructor Details
-
DefaultAsModelCloningContext
public DefaultAsModelCloningContext()
-
-
Method Details
-
skipAttribute
Description copied from interface:ModelCloningContextIftruethat particular attribute will not be included in the cloning process. As a result the cloned model will not have any value for that attribute.- Specified by:
skipAttributein interfaceModelCloningContext
-
treatAsPartOf
Description copied from interface:ModelCloningContextIftruethat particular attribute is treated as partOf which results in deep-cloning each attribute value too before assigning them as value to the cloned model.This applies to model reference attributes only!
- Specified by:
treatAsPartOfin interfaceModelCloningContext
-
usePresetValue
Description copied from interface:ModelCloningContextIftruefor the given attribute the cloning process will not use the original model attribute values but the one returned byModelCloningContext.getPresetValue(Object, String).- Specified by:
usePresetValuein interfaceModelCloningContext- See Also:
-
getPresetValue
Description copied from interface:ModelCloningContextOnly valid ifModelCloningContext.usePresetValue(Object, String)returnstruefor the specified attribute.Returns the value to be used as attribute value of the new cloned model.
- Specified by:
getPresetValuein interfaceModelCloningContext
-
getTypeService
-
setTypeService
-
getAsUidGenerator
-
setAsUidGenerator
-