As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
+ COMPANYHOME + festival (of type ce:festival) + folder1 + folder1_1 + folder1_1_1 + folder1_1_1_1 - my_node
+ COMPANYHOME + festival (of type ce:festival) + folder1 - my_node
public NodeRef getAssociatedFestival (NodeRef nodeRef) { // Test if this nodeRef is of type ce:festival if(nodeService.getType(NodeRef).equals(QName_festival)) { return nodeRef; } else { // get the parent node of nodeRef and run this very method on it ChildAssociationRef cAssocRef = nodeService.getPrimaryParent(nodeRef); NodeRef parentRef = cAssocRef.getParentRef(); return getAssociatedFestival(parentRef); } }