Deleted.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Established Member
1 Solution

Accepted Solutions
Highlighted
Alfresco Employee

Re: How to get associations from the data list?

Jump to solution
8 Replies
Highlighted
Established Member

Re: How to get associations from the data list?

Jump to solution

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);

Highlighted
Established Member

Deleted.

Jump to solution

Deleted.

Highlighted
Established Member

Deleted.

Jump to solution

Deleted.

Highlighted
Established Member

Deleted.

Jump to solution

Deleted.

Highlighted
Alfresco Employee

Re: How to get associations from the data list?

Jump to solution
Highlighted
Established Member

Re: How to get associations from the data list?

Jump to solution

yes

Highlighted
Established Member

Deleted.

Jump to solution

Deleted.

Highlighted
Established Member

Deleted.

Jump to solution

Deleted.