The following table lists root objects that expose ScriptNode objects:
Root Object | Type in Script Runtime | Description |
---|---|---|
companyhome | org.alfresco.repo.jscript.ScriptNode | The company home ScriptNode. See ScriptNode API for properties and methods. |
document | org.alfresco.repo.jscript.ScriptNode | The current node ScriptNode (if any) |
person | org.alfresco.repo.jscript.ScriptNode | The ScriptNode representing the Person object of the currently authenticated user. See ScriptNode API for properties and methods. |
roothome | org.alfresco.repo.jscript.ScriptNode | The store root ScriptNode. The repository root folder. See ScriptNode API for properties and methods. |
script | org.alfresco.repo.jscript.ScriptNode | The ScriptNode representing the script object itself. This is only available if the script is loaded from the Java classpath. |
space | org.alfresco.repo.jscript.ScriptNode | The primary parent ScriptNode for the current node (ScriptNode). For a script executing from a rule, the space object is the space in which the rule resides. If the rule is inherited, this might not be the expected space. |
userhome | org.alfresco.repo.jscript.ScriptNode | The current user’s Home Space ScriptNode. See ScriptNode API for properties and methods. |