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

IContentService.retrieveContent

Hi,
I'm trying to retrive content from a versioned file in a follow up extension.
I have a problem using retrieveContent method: as on client side it accept IFileContent, on server side it only accept IContent and casting does not work.

Is there a way to get an IContent from an IFileContent?

Thanks,
Michele.

0 votes



3 answers

Permanent link
I've found a solution: use a different service.

The service I've found is IServerSideVersionedContentService with method fetchContent.

I don't understand very much why of this difference between client and server, I would expect to match IContentManager with IContentService instead of this specific class.

Michele.

2 votes


Permanent link
IFileItem javadoc says to use IFSContentManager, but I cannot find it...

0 votes


Permanent link
I found the above information to be correct, but I needed more context.

See the answer provied to my AbstractScmAdvisor question:
https://jazz.net/forum/questions/102417/abstractscmadvisor-how-do-you-read-changed-file-content/102578


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,936

Question asked: Dec 16 '11, 1:47 p.m.

Question was seen: 6,051 times

Last updated: Feb 13 '13, 6:32 p.m.

Confirmation Cancel Confirm