Interface TuaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
- All Known Implementing Classes:
DefaultTuaEntityResourceNormalizer
public interface TuaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
Normalizer for subclasses of
ItemModel.- Since:
- 2208
-
Method Summary
-
Method Details
-
normalizeEntity
TARGET normalizeEntity(SOURCE source, Map<String, String> searchParams, ma.glasnost.orika.MappingContext context, boolean createNewEntityIfNotExist) Retrieves or creates the model entity, updates it with data from the source DTO, and then saves the updated model.- Parameters:
source- the 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
-