-
Book Overview & Buying
-
Table Of Contents
Alfresco 3 Web Services
By :
After the descriptor and the templates, the third typical element of a Web Script is the controller which is often mostly implemented as a JavaScript program.
Alfresco provides a JavaScript execution environment that is composed of an interpreter and a number of root objects that, taken together, make up the Alfresco JavaScript APIs. These APIs let scripts access and manipulate repository objects and present a useful encapsulation of most services provided by the Alfresco repository.
In this chapter, a brief overview of the main concepts of the Alfresco JavaScript APIs will be presented, including:
Which root objects are available to the scripts for performing operations
General scripting techniques, such as including libraries, logging, and debugging
Searching the repository using Lucene
Manipulating nodes and their content
Augmenting a Web Script controller with Java code
Armed with this knowledge, we will then perform a step-by...
Change the font size
Change margin width
Change background colour