Class DefaultTmaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
java.lang.Object
de.hybris.platform.b2ctelcofacades.normalizer.impl.DefaultTmaEntityResourceNormalizer<SOURCE,TARGET>
- All Implemented Interfaces:
TmaEntityResourceNormalizer<SOURCE,TARGET>
public class DefaultTmaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
extends Object
implements TmaEntityResourceNormalizer<SOURCE,TARGET>
Default implementation of
TmaEntityResourceNormalizer- Since:
- 2205
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaEntityResourceNormalizer(TmaGenericItemService tmaGenericItemService, de.hybris.platform.servicelayer.dto.converter.Converter<SOURCE, TARGET> reverseConverter, Class<TARGET> targetClass, String targetTypeCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected TmaGenericItemServicenormalizeEntity(SOURCE source, Map<String, String> searchParams, boolean createNewEntityIfNotExist) Retrieves or creates the model entity, updates it with data from the source facade DTO, and then saves the updated model.
-
Constructor Details
-
DefaultTmaEntityResourceNormalizer
-
-
Method Details
-
normalizeEntity
public TARGET normalizeEntity(SOURCE source, Map<String, String> searchParams, boolean createNewEntityIfNotExist) Description copied from interface:TmaEntityResourceNormalizerRetrieves or creates the model entity, updates it with data from the source facade DTO, and then saves the updated model.- Specified by:
normalizeEntityin interfaceTmaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel> - Parameters:
source- the facade DTOsearchParams- the parameters used for retrieving the item model.createNewEntityIfNotExist- if the entity does not exist and this is set to true it will create the model, otherwise throw an exception.- Returns:
- the updated
ItemModel
-
getTmaGenericItemService
-
getReverseConverter
-
getTargetClass
-
getTargetTypeCode
-