Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Custom script processor implementation


We should now have a high-level understanding that the web script framework in Alfresco supports JavaScript-backed web scripts and uses the RhinoScript processor to execute JavaScript-backed web scripts. In the out-of-the-box web script framework implementation as provided in spring-webscripts-*.jar, the script processor implementation is org.springframework.extensions.webscripts.processor.JSScriptProcessor and is registered with the script processor registry. However, in Alfresco, there is an extended implementation to register the script processor with the web script processor registry in the web script framework in Alfresco. Let's try to understand how the JavaScript processor is configured with the web script framework in Alfresco. If you take a look at web-scripts-application-context.xml under tomcat\webapps\alfresco\WEB-INF\classes\alfresco inside your Alfresco-installed directory, there is a bean entry for the org.springframework.extensions.webscripts...