cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share Webscript

rutaveejshah
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

sujaypillai
Confirmed Champ
Confirmed Champ
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>


<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>