Class ItemDTOMapper


  • @NonNullByDefault
    public class ItemDTOMapper
    extends Object
    The ItemDTOMapper is an utility class to map items into item data transfer objects (DTOs).
    Author:
    Kai Kreuzer - Initial contribution, Stefan Bußweiler - Moved to core and renamed class to DTO mapper, Dennis Nobel - Removed dynamic data
    • Constructor Detail

      • ItemDTOMapper

        public ItemDTOMapper()
    • Method Detail

      • map

        public static @Nullable Item map​(ItemDTO itemDTO,
                                         ItemBuilderFactory itemBuilderFactory)
        Maps item DTO into item object.
        Parameters:
        itemDTO - the DTO
        itemBuilderFactory - the item registry
        Returns:
        the item object
      • map

        public static ItemDTO map​(Item item)
        Maps item into item DTO object.
        Parameters:
        item - the item
        drillDown - the drill down
        uri - the uri
        Returns:
        item DTO object