I have a lot of content types defined in my Alfresco deployment. I have a requrement to display the custom content type of the document in the properties tab of the selected document along with its custom properties. My requirement is to invoke a web script to get this information.
I did not find any readily available web scripts for doing this. Can any one help me with any pointers as to how I can retrieve this information?
Were you able to get the Properties of the document using web scripts. Even i am faced with the issue 1) how to get the version of the document 2) how to retrieve the custom properties. i have added some properties(eg price) in customModel.xml as an aspect. How to retrieve the custom properties in web scripts. 3) how to attach a thumbnail to the document while upload and how to retrieve this information using web scripts.
You may need to develop your own custom web script. In the controller logic you will need to select the documents using a Lucene query and then for each returned result retrieve the properties you need. For example, the document type can be accessed via the var mytype = document.properties.type statement in Javascript. Other custom properties are retrieved using document.properties["yournamespace:yourcustomproperty"]
Alfresco Share calls webscripts on the Alfresco Repository for everything it does. List of all webscripts in the repo is available at http://{yourhost}:{port}/alfresco/service/index. If you use Firefox and Firebug (or the developer tools in other browsers) when navigating Share, you'll see the REST calls to these webscripts.
There are webscripts available for everything you've described.
Could u show some pointers on the exact syntax or exact URL to get the version, attach thumbnail and retrieve thumbnail, to retrieve custom properties.