Class EnrichedThingDTOMapper
java.lang.Object
org.openhab.core.thing.dto.ThingDTOMapper
org.openhab.core.io.rest.core.thing.EnrichedThingDTOMapper
The
EnrichedThingDTOMapper
is a utility class to map things into enriched thing data transfer objects
(DTOs).- Author:
- Dennis Nobel - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnrichedThingDTO
map
(Thing thing, ThingStatusInfo thingStatusInfo, FirmwareStatusDTO firmwareStatus, Map<String, Set<String>> linkedItemsMap, boolean editable) Maps thing into enriched thing data transfer object.Methods inherited from class org.openhab.core.thing.dto.ThingDTOMapper
map, map
-
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 thingthingStatusInfo
- the thing status information to be used for the enriched objectfirmwareStatus
- the firmwareStatus to be used for the enriched objectlinkedItemsMap
- the map of linked items to be injected into the enriched objecteditable
- true if this thing can be edited- Returns:
- the enriched thing DTO object
-