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