mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[rest] Enable filters for cacheable items list (#4119)
This allows the usage of filters when using `staticDataOnly=true`. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
+1
-1
@@ -263,7 +263,7 @@ public class ItemResource implements RESTResource {
|
||||
cacheableListsLastModified.put(namespaceSelector, lastModifiedDate);
|
||||
}
|
||||
|
||||
Stream<EnrichedItemDTO> itemStream = getItems(null, null).stream() //
|
||||
Stream<EnrichedItemDTO> itemStream = getItems(type, tags).stream() //
|
||||
.map(item -> EnrichedItemDTOMapper.map(item, false, null, uriBuilder, locale)) //
|
||||
.peek(dto -> addMetadata(dto, namespaces, null)) //
|
||||
.peek(dto -> dto.editable = isEditable(dto.name));
|
||||
|
||||
Reference in New Issue
Block a user