Alfresco Share Webscript

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2013 01:12 AM
Hello Everyone!
Is it possible to write java backed web script in alfresco share?
If yes then where should i make the bean entry for newly made java backed webscript?
Beacuse i have seen that alfresco share web-script stored in a different place.
Is it possible to write java backed web script in alfresco share?
If yes then where should i make the bean entry for newly made java backed webscript?
Beacuse i have seen that alfresco share web-script stored in a different place.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2013 08:52 AM
Yes its possible to write java backed webscript on Alfresco Share side.
But if you look into the Share architecture most of the webscripts are implemented on repository (Alfresco) side and are exposed as JSON response. This is then consumed on Share side using another webscript
using a javascript controller. For e.g. the Document Library is all javascript based repository webscripts instead of JAVA.
For reference purpose you may look into the webscripts for I18N resources and messages & CMIS defined in <strong>tomcat\webapps\share\WEB-INF\classes\alfresco\slingshot-application-context.xml</strong>
But if you look into the Share architecture most of the webscripts are implemented on repository (Alfresco) side and are exposed as JSON response. This is then consumed on Share side using another webscript
using a javascript controller. For e.g. the Document Library is all javascript based repository webscripts instead of JAVA.
For reference purpose you may look into the webscripts for I18N resources and messages & CMIS defined in <strong>tomcat\webapps\share\WEB-INF\classes\alfresco\slingshot-application-context.xml</strong>
<bean id="webscript.org.springframework.extensions.messages.get" parent="webscript" class="org.alfresco.web.scripts.MessagesWebScript" /> <bean id="webscript.org.springframework.extensions.messages.post" parent="webscript" class="org.alfresco.web.scripts.MessagesWebScript" /><bean id="webscript.org.springframework.extensions.cmis.content.get" class="org.springframework.extensions.cmis.CMISContentStreamWebScript" parent="webscript"> <property name="ScriptParameterFactory" ref="cmis.script" /> </bean>
