Class DefaultPmEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>

java.lang.Object
de.hybris.platform.partytmfwebservices.v1.normalizer.impl.DefaultPmEntityResourceNormalizer<SOURCE,TARGET>
All Implemented Interfaces:
PmEntityResourceNormalizer<SOURCE,TARGET>
Direct Known Subclasses:
PmOrganizationResourceNormalizer

@Deprecated(since="2208") public class DefaultPmEntityResourceNormalizer<SOURCE,TARGET extends ItemModel> extends Object implements PmEntityResourceNormalizer<SOURCE,TARGET>
Deprecated.
2208
Default implementation of PmEntityResourceNormalizer
Since:
2205
  • Constructor Details

    • DefaultPmEntityResourceNormalizer

      public DefaultPmEntityResourceNormalizer(PmGenericService pmGenericService, Class<TARGET> targetClass, String targetTypeCode, ma.glasnost.orika.MapperFacade mapperFacade)
      Deprecated.
  • Method Details

    • normalizeEntity

      public TARGET normalizeEntity(SOURCE source, Map<String,String> searchParams, ma.glasnost.orika.MappingContext context, boolean createNewEntityIfNotExist)
      Deprecated.
      Description copied from interface: PmEntityResourceNormalizer
      Retrieves or creates the model entity, updates it with data from the source DTO, and then saves the updated model.
      Specified by:
      normalizeEntity in interface PmEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>
      Parameters:
      source - the DTO
      searchParams - 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
    • getPmGenericService

      protected PmGenericService getPmGenericService()
      Deprecated.
    • getTargetClass

      protected Class<TARGET> getTargetClass()
      Deprecated.
    • getTargetTypeCode

      protected String getTargetTypeCode()
      Deprecated.
    • getMapperFacade

      protected ma.glasnost.orika.MapperFacade getMapperFacade()
      Deprecated.