Chapter 7. Understanding JavaScript-based Web Scripts in Detail
In this chapter, we will cover the following topics:
What can you do with JavaScript APIs?
How do you find available JavaScript APIs in Alfresco?
Available root objects to access JavaScript APIs
Other root objects provided by the web script framework in Alfresco
A few code examples of some common functionalities in a JavaScript controller
Creating your own root object
The web script framework in Alfresco makes it easy to create, access, update, and delete content residing in the repository using JavaScript-backed web scripts. The JavaScript-backed web script will be very helpful when you need to do some kind of hotfixes without bringing down the production system. Another cool feature of JavaScript-backed web scripts is that you can have them deployed in the repository and can directly edit them in line using the Alfresco user interface. There is no need to depend on any specific editor while developing web scripts that have a JavaScript...