Sample for IWorkspaceManager.findSnapshotsQuery
Hi,
I'm trying to find all snapshots owned by a stream.
From a browse around, it looks like IWorkspaceManager.findSnapshotsQuery might be the right thing to use.
Is there a sample? I don't know what arguments to provide to this call.
Or if I should be doing it a better way, what is that?
Thank you!
Martin
Accepted answer
Thanks Ralph.
I couldn't download the 6.0.6 SDK, as that version is not listed on the download pages.
But I have solved my problem with a different API:
IBaselineSetSearchCriteria criteria;
criteria = IBaselineSetSearchCriteria.FACTORY.newInstance();
criteria.setPartialName("beginswiththis");
criteria.setOwnerWorkspaceOptional(ws);
List<IBaselineSetHandle> snapshots_h;
snapshots_h = mworkspace.findBaselineSets(criteria, 10, null);
criteria = IBaselineSetSearchCriteria.FACTORY.newInstance();
criteria.setPartialName("beginswiththis");
criteria.setOwnerWorkspaceOptional(ws);
List<IBaselineSetHandle> snapshots_h;
snapshots_h = mworkspace.findBaselineSets(criteria, 10, null);
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 28 '20, 12:02 p.m.