Class EnrichedThingDTOMapper

java.lang.Object
org.openhab.core.thing.dto.ThingDTOMapper
org.openhab.core.io.rest.core.thing.EnrichedThingDTOMapper

public class EnrichedThingDTOMapper extends ThingDTOMapper
The EnrichedThingDTOMapper is a utility class to map things into enriched thing data transfer objects (DTOs).
Author:
Dennis Nobel - Initial contribution
  • Constructor Details

    • EnrichedThingDTOMapper

      public EnrichedThingDTOMapper()
  • Method Details

    • map

      public static EnrichedThingDTO map(Thing thing, ThingStatusInfo thingStatusInfo, FirmwareStatusDTO firmwareStatus, Map<String,Set<String>> linkedItemsMap, boolean editable)
      Maps thing into enriched thing data transfer object.
      Parameters:
      thing - the thing
      thingStatusInfo - the thing status information to be used for the enriched object
      firmwareStatus - the firmwareStatus to be used for the enriched object
      linkedItemsMap - the map of linked items to be injected into the enriched object
      editable - true if this thing can be edited
      Returns:
      the enriched thing DTO object