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

Summary


In this chapter, we understood in detail how to develop a Java-backed web script in Alfresco. We took a sample use case scenario and first identified the requisites and identified the logic implementation to be included in the controller before actually implementing the web script. We implemented the web script description document, response templates for JSON and XML, Java-backed controller, and associated the controller with the web script step by step. We then deployed the web script and registered the web script to the web script framework.

Later, we tested the web script in order to see its output in different test scenarios to test the logic implemented in the controller. Finally, we understood the differences between the two helper classes provided by the web script framework in Alfresco to implement the Java-backed controller for a web script. Also, we had a look at some quick helpful pointers to understand in which scenarios we can have both Java and JavaScript types of controllers...