Package net.solarnetwork.central.biz
Interface SolarNodeMetadataBiz
- All Known Implementing Classes:
DaoSolarNodeMetadataBiz
public interface SolarNodeMetadataBiz
API for manipulating node metadata.
- Since:
- 1.32
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSolarNodeMetadata(Long nodeId, net.solarnetwork.domain.datum.GeneralDatumMetadata meta) Add metadata to a specific node.findSolarNodeMetadata(SolarNodeMetadataFilter criteria, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) Search for node metadata.voidremoveSolarNodeMetadata(Long nodeId) Remove all metadata to a specific node.voidstoreSolarNodeMetadata(Long nodeId, net.solarnetwork.domain.datum.GeneralDatumMetadata meta) Store metadata to a specific node, replacing any existing metadata with the provided metadata.
-
Method Details
-
addSolarNodeMetadata
Add metadata to a specific node. If metadata already exists for the given node, the values will be merged such that tags are added and info values are added or updated.- Parameters:
nodeId- the node ID to add tometa- the metadata to add
-
storeSolarNodeMetadata
Store metadata to a specific node, replacing any existing metadata with the provided metadata.- Parameters:
nodeId- the node ID to add tometa- the metadata to store
-
removeSolarNodeMetadata
Remove all metadata to a specific node.- Parameters:
nodeId- the node ID to remove from
-
findSolarNodeMetadata
FilterResults<SolarNodeMetadataFilterMatch> findSolarNodeMetadata(SolarNodeMetadataFilter criteria, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) Search for node metadata.- Parameters:
criteria- the search criteriasortDescriptors- the optional sort descriptorsoffset- an optional result offsetmax- an optional maximum number of returned results- Returns:
- the results, never null
-