Getting a change set for a stream and baseline with plain Java
Lars Fockele (22●1●7●9)
| asked Nov 19 '13, 12:17 p.m.
retagged Dec 16 '13, 5:49 p.m. by David Lafreniere (4.8k●7)
Hi,
I'm trying to get all change sets for a specific component baseline in a defined stream, but I found no way to to it. What I want to do:
I'm able to get all change sets for a component baseline, but then I've no idea, in which stream it is. I'm able to get all change sets for a stream, but then I've no reference to the baseline. For both I took the setContext function, but I suspect, that I can't use it two times, if I do it in the way below, the program only takes the last setContext criteria: IChangeSetSearchCriteria changeSetSearchCriteria = IChangeSetSearchCriteria.FACTORY.newInstance(); changeSetSearchCriteria.setComponent(comps.get(j)); changeSetSearchCriteria.setContext(streamHandle); changeSetSearchCriteria.setContext(baselineHandle); List<IChangeSetHandle> changeSetHandles = wm.findChangeSets(changeSetSearchCriteria, IWorkspaceManager.MAX_QUERY_SIZE, null); Do you have an idea, how to solve it? Thanks in advance, Lars |
Comments
You might find examples for some of your questions in https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/ and the related posts.