Summary
In this chapter, we have gone through all the possible functionalities that you can do inside your JavaScript controller for a web script using the available JavaScript APIs. We gained knowledge about how to identify the JavaScript APIs from the Alfresco codebase. We also went through the list of common root objects exposing the JavaScript APIs we found from the Alfresco codebase.
Next, we went through various other root objects provided by the web script framework in Alfresco. Later, we saw some code examples so you understand how to use root objects and the relevant JavaScript API inside the controller to do some generic operations on a node in Alfresco. At the end, you learned how to create a custom JavaScript extension to create your own root object and expose the relevant API method for the custom root object when the available JavaScript API does not meet your requirements. Overall, you have now got an understanding of how to develop a JavaScript controller using various JavaScript...