Class DefaultPrEntityResourceNormalizer<SOURCE,TARGET extends ItemModel>

java.lang.Object
de.hybris.platform.partyroletmfwebservices.v1.normalizer.impl.DefaultPrEntityResourceNormalizer<SOURCE,TARGET>
All Implemented Interfaces:
PrEntityResourceNormalizer<SOURCE,TARGET>

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

    • DefaultPrEntityResourceNormalizer

      public DefaultPrEntityResourceNormalizer(PrGenericService prGenericService, 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: PrEntityResourceNormalizer
      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 PrEntityResourceNormalizer<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
    • getPrGenericService

      protected PrGenericService getPrGenericService()
      Deprecated.
    • getTargetClass

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

      protected String getTargetTypeCode()
      Deprecated.
    • getMapperFacade

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