Root objects

The JavaScript API provides a number of root objects which are available from your JavaScript code.

The root objects available to your JavaScript code will depend on the context in which the code is invoked. Different contexts will have access to a different set of root objects. There are several contexts to be considered:

  1. Web scripts
  2. Surf
  3. Rules/actions
  4. Workflow
  5. Explorer

  • Root objects that expose ScriptNode objects
    • companyhome
    • document
    • person
    • roothome
    • script
    • space
    • userhome
  • Root objects also available in web scripts
    • args
    • argsM
    • headers
    • session
    • url
  • Root objects that expose additional APIs (frequently used)
    • actions
    • activities
    • cmis
    • cmisServer
    • people
    • search
    • logger
    • jsonUtils
    • session
    • paging
    • imap
    • workflow
  • Root Objects that expose services
    • actionTrackingService
    • atom
    • commentService
    • groups
    • preferenceService
    • renditionService
    • replicationService
    • siteService
    • transfer

Comments

Popular posts from this blog

Install Alfresco Content Service 6.0 on ubuntu 16 using distribution zip

Lucene and fts-search

Call javascript webscript from contoller