snapshot loading via API
Hello,
I could able to get the list of snapshot for the stream,.But i dont know how to load snapshot using snapshot name or UUID.
private static List<IBaselineSetHandle> getSnapShotsOfAboveStream(final IWorkspaceHandle workspaceHandle,
final ITeamRepository repository) throws TeamRepositoryException { IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(repository); IBaselineSetSearchCriteria searchCriteria = IBaselineSetSearchCriteria.FACTORY.newInstance(); searchCriteria.setOwnerWorkspaceOptional(workspaceHandle); List findBaselineSets = workspaceManager.findBaselineSets(searchCriteria, Integer.MAX_VALUE, monitor); for (Object object : findBaselineSets) { IBaselineSetHandle baselineSet = (IBaselineSetHandle) object; UUID itemId = baselineSet.getItemId(); SnapshotMetadata instance2 = SnapshotMetadataFactory.getInstance(itemId.getUuidValue(), repository, monitor);
}
Based on snapshot info how i do loading into my local path
|
Accepted answer
Ralph Schoon (63.7k●3●36●48)
| answered Jul 02 '19, 5:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER How do you do that using the client?
Boopathy Nagaraj selected this answer as the correct answer
Comments
Boopathy Nagaraj
commented Jul 02 '19, 5:39 a.m.
Thanks. For creating repository from the snapshot, do we have API? 1
Yes there is API.
See IWorkspaceManager.createWorkspace(...)
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.