Package org.yamcs.timeline
Interface ItemProvider
- All Known Implementing Classes:
CommandItemProvider,TimelineItemDb
public interface ItemProvider
-
Method Summary
Modifier and TypeMethodDescriptionaddItem(TimelineItem item) Add an item and return the added item.default LogEntryaddItemLog(String id, LogEntry entry) Adds an entry to the log tabledeleteItem(UUID id) Delete the item with the given uuid and return the deleted item.voiddeleteItems(List<UUID> ids, Criteria criteria, BatchObserver<DeleteItemsSummary> observer) Batch delete items matching the specified criteriadefault TimelineItemLoggetItemLog(String id) Returns the item log or null if the item does not existvoidgetItems(int limit, String next, Criteria criteria, ItemReceiver consumer) 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
-
deleteItems
Batch delete items matching the specified criteria -
getCapabilities
TimelineSourceCapabilities getCapabilities() -
getItemLog
Returns the item log or null if the item does not exist -
addItemLog
Adds an entry to the log table
-