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 LogEntry
addItemLog
(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.default TimelineItemLog
getItemLog
(String id) Returns the item log or null if the item does not existvoid
getItems
(int limit, String next, RetrievalFilter filter, ItemReceiver consumer) updateItem
(TimelineItem item) Update an item and return the updated item.void
validateFilters
(List<ItemFilter> filters) Checks that the source can filter based on the criteria specified
-
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
-
getCapabilities
TimelineSourceCapabilities getCapabilities() -
validateFilters
Checks that the source can filter based on the criteria specified- Throws:
BadRequestException
-
getItemLog
Returns the item log or null if the item does not exist -
addItemLog
Adds an entry to the log table
-