Interface TmaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
- All Known Implementing Classes:
DefaultTmaEntityResourceNormalizer
public interface TmaEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
Normalizer for subclasses of
ItemModels.- Since:
- 2205
-
Method Summary
-
Method Details
-
normalizeEntity
TARGET normalizeEntity(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.- 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
-