cancel
Showing results for 
Search instead for 
Did you mean: 
8 REPLIES 8

ratik_singhal
Star Contributor
Star Contributor

Hi,

try either two.. Hope you will be able to retrieve the association. 

(1)

List<ChildAssociationRef> nodes = nodeService.getChildAssocs(node);
List<ChildAssociationRef> testAssociate = new List<ChildAssociationRef>();
for (ChildAssociationRef element : nodes) {
if ("testAssociate".equalsIgnoreCase(element.getTypeQName().toString())) {
testAssociate.add(element);
}
}

(2)

nodeService.getChildAssocs(parentNodeRef, ContentModel.ASSOC_CONTAINS, RegexQNamePattern.MATCH_ALL);

Deleted.

Deleted.

Deleted.

Deleted.

Deleted.