Understanding what you can do with the JavaScript API
While developing web scripts in Alfresco, the repository JavaScript APIs provided by Alfresco will help you perform a lot of the following actions at a high level as listed in the following list:
Creating a folder
Creating content
Making a copy of a node
Moving a node from one location to another
Deleting a node
Finding a node
Performing searches against a repository
Traversing through the node hierarchy
Modifying properties on a node
Adding or removing an aspect on a node
Creating, modifying, or removing associations for a node
Getting permission for a node
Modifying permission for a node
Creating and removing groups
Creating and removing users
Basically, you can think of Alfresco JavaScript APIs as a wrapper to access Alfresco services from the JavaScript-backed controller. Alfresco uses the Mozilla Rhino JavaScript engine for Java, which allows JavaScript files to access Alfresco Java objects using a simple bean-style approach in scripting. Also,...