03-17-2009 05:53 PM
+ 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
03-18-2009 09:23 AM
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);
}
}
03-18-2009 12:04 PM
03-19-2009 06:22 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.