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

getClientLibrary(IFilesystemRestService2.class) returns null

Hi,
I'm trying to write a client side plugin, which delivers change sets to a stream without having to create a workspace.
For this I'm trying to use the  the following Class to create changesets directly on a stream:
IFilesystemRestService2 restService = (IFilesystemRestService2) repo .getClientLibrary(IFilesystemRestService2.class);

This is used by the web UI. I analyzed the calls my browser makes to find any parameters and services.
However the above method returns null. I suspect this is because the class is located in an *internal* package.

Does anybody have any experiences on that?

Thanks

0 votes


Accepted answer

Permanent link
I assume its because there is no client side function to do this.

the web UI always sends a web request to the server, and code runs on the server.
far as I know, there is no function to 'create' scm content via the web ui, only view.
the service is provided (in V5) in
com.ibm.team.filesystem.service_3.2.200.v20140320_0115
which not part of the client api
com.ibm.team.filesystem.client_3.2.200.v20140414_0046

the apis are package like this
client - client side only
common - used in both
service - server side only

on the client you will find the .client and .common jars
on the server you will find .common and .service jars

I created a service, and I had to package it the same way
Kevin Eifinger selected this answer as the correct answer

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,938
× 479

Question asked: Jun 27 '14, 6:21 a.m.

Question was seen: 4,236 times

Last updated: Jul 07 '14, 4:39 a.m.

Confirmation Cancel Confirm