cancel
Showing results for 
Search instead for 
Did you mean: 

Content Retrieval - content.get.desc.xml

randomman
Champ in-the-making
Champ in-the-making
I have a few questions regarding the Content Retrieval web service.

Firstly, what is the reasoning behind the authentication level being set to 'guest' rather than 'none' as that's only way to be able to directly link repository documents from web pages.

Am I thinking along the wrong lines here? Should I be trying to avoid direct linking to items in the repository?

My second question is why does this particular service only have an xml file? Unlike other web services, there's no ftl or js files associated with it in \alfresco\templates\webscripts\org\alfresco\repository\store. What's that all about?
2 REPLIES 2

davidc
Star Contributor
Star Contributor
Firstly, what is the reasoning behind the authentication level being set to 'guest' rather than 'none' as that's only way to be able to directly link repository documents from web pages.

'guest' means at least guest.  You have to be authenticated to retrieve content from the repository, even if that means being guest.  You can add guest=true to the url to force guest access.

My second question is why does this particular service only have an xml file? Unlike other web services, there's no ftl or js files associated with it in \alfresco\templates\webscripts\org\alfresco\repository\store. What's that all about?

This particular Web Script is backed by a Spring Java bean due to the streaming (of arbitrary content) requirement which is not easily supported by freemarker alone.  See http://wiki.alfresco.com/wiki/Web_Scripts#Advanced_Java_Web_Scripts for details on how to hook Java into your Web Script.

randomman
Champ in-the-making
Champ in-the-making
Thanks for the info and the swift response!  Smiley Happy