I'm trying to access the filename, location and author of changed files for a given stream. Below code is what I have so far. Looking at the api documentation this does not seem possible? Can this be achieved using the java api or some other method ?
IChangeSetSearchCriteria c = IChangeSetSearchCriteria.FACTORY.newInstance();
WorkspaceManager mgr = (WorkspaceManager) SCMPlatform.getWorkspaceManager(repo);
IWorkspaceSearchCriteria criteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
criteria.setKind(IWorkspaceSearchCriteria.STREAMS);
criteria.setExactName("mystream");
Note: try to not use the Stream name directly, as a Stream can be renamed or another Stream can have the same name.
See this thread for more.
For going from a UUID to an ItemHandle
Regarding listing the content of a changeset, this thread provides some clues:
Again, fetching the changeset (as in this thread) can be key to be sure to get all the data.
Note: taking the REST API route might be easier:
Your query is a POST
That will return:
With
_OQt98EyrEeGAvYGjhK23_g
theworkspaceItemId
of the Stream (a Stream is a Workspace with the element "stream
" set to true!)You can get the WorkspaceItemId of a Stream with the following query:
That will return results including: