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.
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.
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.
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
See the answer provied to my AbstractScmAdvisor question:
https://jazz.net/forum/questions/102417/abstractscmadvisor-how-do-you-read-changed-file-content/102578