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

I want IVersionableHandle object with plain java Api

Hello,
I am working with plain java application, i am able to find project area, stream, component.
Now I want IVersionableHandle object to do few operation, I am not able to find the exact way how can i get this object with plain java api.

Please let me know the steps to find this handler.

I want to give IVersionableHandle to this function as an input
public static List<Association> getAllAssociationsForFile(ITeamRepository repo,
                                                          IWorkspaceHandle workspace,
                                                          IComponentHandle component,
                                                          String sandboxLocation_CanBeNullIfRunningFromWithinEclipseRTC,
                                                          IVersionableHandle file)




If any other information required then let me know.

Thanks!!

Regards,
Vikas
 

0 votes

Comments

Hi, can you explain what information you have? Like the path to the file, or the file name?

I IVersionableHandle is a reference to a file under source control. So what do you want a reference to?

I've made a lot of stuff like this, and can easily supply code samples.

Hello,
 
  As of now I have file Path(loaded path eg: "tk/Just_a_file.txt" ) and file UUID.

Regards,
Vikas

Please let me know the solution.

Hi Vikash, 
how did you get RTC source control file path using Plain Java API. i am new to this and idk know how to start.



One answer

Permanent link
Try getting the configuration from the connection and then asking the config for the child entries.

See:
   IFlowNodeConnection#configuration(IComponentHandle)
   IConfiguration#childEntries


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,934
× 1,202
× 411

Question asked: May 28 '15, 2:35 a.m.

Question was seen: 4,472 times

Last updated: Oct 20 '15, 2:27 a.m.

Confirmation Cancel Confirm