Root objects for an execution script

Alfresco provides a set of default root objects also known as Script Node objects that wrap the common Alfresco repository concepts such as nodes, aspects, associations, and properties.

The list of these root objects, which you can use for an execution script, is as follows:

  • companyhome: The company home template node. This is available only if authenticated.
  • userhome: Current user's home space template node. This is available only if authenticated.
  • person: Current user's person object template node. This is available only if authenticated.
  • args: An associative array of any URL parameters.
  • search: The host object providing access to Lucene Search.
  • people: The host object providing access to Alfresco people and groups.
  • actions: The host object providing invocation of registered Alfresco actions.
  • logger: The host object providing access to console logging facilities for debugging of scripts.
  • session: Session-related information such as the current authentication ticket.
  • classification: Access to the root elements of the classification API.
  • utils: Access to a library of useful helper functions not provided as part of the generic JavaScript.
  • avm: Access to WCM objects such as avm stores and web projects.
  • webprojects: The root of the WCM JavaScript API. It provides access to web projects, sandboxes, WCM assets, and WCM project membership.
  • crossrepository: Cross repository copy support. This enables copying of nodes between document management spaces and WCM spaces.
  • argsM: An associative array of any URL parameters.
  • url: Provides access to the URL (or parts of the URL) that triggered the web script.
  • formdata: Provides access to multi-part/formdata requests allowing the upload of files via web scripts.
  • model: An empty associative array that may be populated by the JavaScript. Values placed into this array are available as root objects in web script response templates.
  • roothome: The repository root node.
  • guest: A Boolean indicating whether the web script executes as "Guest".
  • server: An associative array of metadata properties describing the repository server hosting the web script.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset