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. |
3 answers
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. |
IFileItem javadoc says to use IFSContentManager, but I cannot find it...
|
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 |
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.