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:
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.