- All Known Implementing Classes:
CommandItemProvider,TimelineItemDb
public interface ItemProvider
-
Method Summary
Modifier and TypeMethodDescriptionaddItem(TimelineItem item) Add an item and return the added item.deleteItem(UUID id) Delete the item with the given uuid and return the deleted item.org.yamcs.protobuf.TimelineSourceCapabilitiesvoidgetItems(int limit, String next, ItemFilter filter, ItemListener consumer) getTags()updateItem(TimelineItem item) Update an item and return the updated item.
-
Method Details
-
getItem
-
getItems
-
addItem
Add an item and return the added item.The returned value should have defaults (if any) filled in, also if the item has a relative time, the start time of the returned value will be computed from the relative time and the start of
TimelineItem.relativeItemUuid -
updateItem
Update an item and return the updated item.The item parameter should have the uuid set and at least the start time or relative time
- Returns:
- the updated item
- Throws:
InvalidRequestException- if the item does not exist, if the groupUuuid or relatimeTimeUuid properties create a circular dependency or other source specific error conditions
-
deleteItem
Delete the item with the given uuid and return the deleted item.If the item does not exist, return null
-
deleteTimelineGroup
-
getTags
Collection<String> getTags() -
getCapabilities
org.yamcs.protobuf.TimelineSourceCapabilities getCapabilities()
-