Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Core Repository ServicesNode Service
For up-to-date Node Service documentation, please refer to the NodeServiceImpl API.
Nodes are Unnamed
API Considerations
NodeRef createNode(NodeRef parentRef, String name, String nodeType, [Map properties])
Description:
Creates a new, non-abstract node as a primary child of the given parent node.
Parameters:
Result:
void deleteNode(NodeRef nodeRef)
Description:
Deletes the given node.
Parameters:
Result:
void addChild(NodeRef parentRef, NodeRef childRef, String name)
Description:
Add an existing node as a non-primary child of the given parent.
Parameters:
Result:
NodeRef addChildReference(NodeRef parentRef, String refIdOrPath, String name)
Description:
Creates a child reference node.
Parameters:
Result:
void removeChild(NodeRef parentRef, NodeRef childRef)
Description:
Sever the parent-child relationship. The removal of the relationship may mandate a deletion of the child node.
Parameters:
Result:
void removeChildren(NodeRef parentRef, String name)
Description:
Sever the parent-child relationships of the given name and remove any child nodes where the association was primary.
Parameters:
Result:
String getType(NodeRef nodeRef)
Description:
Get node type.
Parameters:
Result:
Map getProperties(NodeRef nodeRef)
Description:
Get map of all available properties.
Parameters:
Result:
void setProperties(NodeRef nodeRef, Map properties)
Description:
Set all node properties. Any properties present on the node but not in the map will be removed.
Parameters:
Result:
Object getProperty(NodeRef nodeRef, String propertyName)
Description:
Get map of all available properties.
Parameters:
Result:
Collection getParents(NodeRef nodeRef)
Description:
Get list of all parent IDs.
Parameters:
Result:
NodeRef getParent(NodeRef nodeRef, String pathElement)
Description:
Get parent related by specific path element.
Parameters:
Result:
NodeRef getPrimaryParent(NodeRef nodeRef)
Description:
Get primary parent.
Parameters:
Result:
String getPath(NodeRef nodeRef)
Description:
Get primary node path to the given node.
Parameters:
Result:
List getPaths(NodeRef nodeRef)
Description:
Get all node paths to the given node.
Parameters:
Result: