Module: alfresco/core/JsNode

alfresco/core/JsNode

Author:
  • Dave Draper
License:
Source:

Methods

constructor()

Source:

constructor()

This instantiates the "inner" class and then returns builds a linked node as required.
Source:

getCategories()

Source:

getNode() → {object}

Source:
Returns:
The node object
Type
object

getTags()

Source:

hasAspect(aspect) → {boolean}

Parameters:
Name Type Description
aspect string The aspect to check for
Source:
Returns:
true eif the node has the aspect and false otherwise.
Type
boolean

hasPermission(permission) → {boolean}

Parameters:
Name Type Description
permission string The permission to check for
Source:
Returns:
True if the node has the permission and false otherwise.
Type
boolean

hasProperty(property) → {boolean}

Parameters:
Name Type Description
property string The property to check for
Source:
Returns:
true if the node has the property and false otherwise
Type
boolean

hasTag(tag) → {boolean}

Parameters:
Name Type Description
tag string The tag to check for
Source:
Returns:
True if the node has the tag and false otherwise
Type
boolean

setNodeRef(nodeRef)

Parameters:
Name Type Description
nodeRef string The new NodeRef to process.
Source:

toJson() → {string}

Source:
Returns:
A stringified representation of the node.
Type
string