Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Persistable handles for various items

Hello,
One of our requirements is that we record which stream, component,
baseline an eclipse project is coming from, and record it for later use.
Later use being that we could reconnect back to the stream, create
branches etc. from the recorded information.

Though the streams, components, baselines have IDs, UIDs, etc., there
seems to be no easy way to retrieve information about a stream,
component, baseline except by using their names.
Ex: IWorkspaceManager.findAllWorkspaces(IAuditableHandle scopeHandle,
String namePattern, IProgressMonitor progressMonitor)

Since names are changeable for streams, components, it does not seem to
be a good reference that we can persist and later reuse.

Is there a better way to ID streams, components, baselines without using
names, and if so how could one query the server for information about
them so that the client could reconnect.

Regards,
Sri.

0 votes



One answer

Permanent link
This isn't a problem to find without having to search the repository, try the following (written from memory but is close to what you want)

IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repository);
IWorkspaceHandle workspaceHandle = IWorkspace.ITEM_TYPE.create(repository, workspaceUUID, null);
IWorkspaceConnection connection = wm.getWorkspaceConnection(workspaceHandle, monitor);
connection.getComponents();

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Oct 30 '07, 4:24 p.m.

Question was seen: 6,605 times

Last updated: Oct 30 '07, 4:24 p.m.

Confirmation Cancel Confirm