download file (.process) using java api
Hi Team,
We want to downlod one file from repository(RTC) by using java api...
please provide detail descritption of every class. (what is IWorkspaceHandle) and all..
PSA of below code for the same
ITeamRepository repo = TeamPlatform.getTeamRepositoryService().getTeamRepository(repoUri);
repo.registerLoginHandler(new ILoginHandler2() {
@Override
public ILoginInfo2 challenge(ITeamRepository repo) {
return new UsernameAndPasswordLoginInfo(userId, password);
}
});
System.out.println("login begin");
repo.login(monitor);
System.out.println("Successfully login");
IWorkspaceManager manager=SCMPlatform.getWorkspaceManager(repo);
String UUIDStr = "_nsXjlEVkEeCyA4xyic0frg";
UUID workspaceUuid = UUID.valueOf(UUIDStr);
IWorkspaceHandle workspaceHandle = (IWorkspaceHandle)IWorkspace.ITEM_TYPE.createItemHandle(workspaceUuid, null);
//handle=(IWorkspaceHandle) loadComponents(repo, "159515-ESB-DEV",1, monitor).get(0);
//manager.findComponents("com", null, true, null);
IWorkspaceConnection connection= manager.getWorkspaceConnection(workspaceHandle, monitor);
List<Component> list= repo.itemManager().fetchCompleteItems(connection.getComponents(),ItemManager.DEFAULT,monitor);
for(int i=0;i<list.size();i++)
{
System.out.println(list.get(i));
}
|
3 answers
see Ralph's blog for samples of all kinds dealing with RTC and Source
http://rsjazz.wordpress.com/?s=source Comments
Ralph Schoon
commented Jul 10 '14, 9:18 a.m.
| edited Jul 10 '14, 9:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In particular:
|
Ralph Schoon (63.5k●3●36●46)
| answered Jul 11 '14, 4:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 11 '14, 4:32 a.m.
Unclear what you want here. Basically you have two options as I see it.
There are no there options I am aware of. If you ask how to download the data from a stream (and not a workspace) the code is the same for all except finding the stream. A repository workspace and a stream are almost identical. For the read operations anyway. |
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.
Comments
Thanks