cancel
Showing results for 
Search instead for 
Did you mean: 

Access parent space node

pcuvecle
Champ in-the-making
Champ in-the-making
Hi,

I try to get the NodeRef of the parent space of a document node but I face a problem.

I guess that ChildAssociationRef.getParentRef() should return a reference to the parent space but my document is in a jBPM workflow so I get a reference to the package.


Primary path the returned parent is /{http://www.alfresco.org/model/system/1.0}system/{http://www.alfresco.org/model/system/1.0}workflow/{...

type:
{http://www.alfresco.org/model/content/1.0}systemfolder

How is it possible to get the parent space from the NodeService ?

Thanks for your help
1 REPLY 1

pcuvecle
Champ in-the-making
Champ in-the-making
I finally found the answer :


NodeRef parentSpace = nodeService.getPrimaryParent(docNode).getParentRef();