RTC Java API - Find Streams by Date of Delivery
I'm trying to list all the streams with deliveries after a timestamp.
There is a method that seems promising:
iWorkspaceManager.findStreamsQuery(IGenericQueryNode, maxResults, iProgressMonitor)
The problem is that I cannot find a way to create this query.
I tried various permutations of this code:
IGenericQueryNode query = IGenericQueryNode.FACTORY.newInstance(QueryOperations.OPERATION_BASELINE_MODIFIEDIN_DATERANGE_FILTER);
query.addChild(new Timestamp(2019, 10, 5, 0, 0, 0, 0));
query.addChild(new Timestamp(System.currentTimeMillis()));
IGenericQueryNode query = IGenericQueryNode.FACTORY.newInstance(QueryOperations.OPERATION_BASELINE_MODIFIEDIN_DATERANGE_FILTER);
query.addChild(new Timestamp(2019, 10, 5, 0, 0, 0, 0));
query.addChild(new Timestamp(System.currentTimeMillis()));
But nothing works.
Do anybody knows how to find the streams by date?
Thanks!