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
About the Author
About the Reviewers

A must-know ScriptNode API

If you are working on creating web scripts and accessing or manipulating nodes in Alfresco through a JavaScript controller, then you must have an understanding of the ScriptNode API. This provides access to various properties of a node and also provides different useful methods for a node in terms of security, thumbnailing, ownership, versioning, tagging, transformation, and so on. You can go through the code for ScriptNode to get understanding of the different methods. Its code is available in alfresco-repository-*.jar and its fully qualified class name is org.alfresco.repo.jscript.ScriptNode.

Similarly, to access the properties of a node and perform various other things in response templates, you should check org.alfresco.repo.template.TemplateNode available in alfresco-repository-*jar.