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 (62.7k●3●36●43)
| 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 Thanks. For creating repository from the snapshot, do we have API? 1
Yes there is API.
See IWorkspaceManager.createWorkspace(...)
|