Friday, July 26, 2013

Getting parent nodeRef in alfresco



Sometime we require to populate nodes and require parent nodeRef of the given node.
Following snippet will help us to get the parent nodeRef :

NodeRef titleRef = getNodeService().getPrimaryParent(contentXMLNodeRef).getParentRef();

hope this helps !

1 comment: