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.
Node node = new Node(someNodeRef); String query = "PATH:\""+node.getPath()+"/*\""; [code] However, for some reason it only seems to work if I replace the full namespace URIs (eg "{http://www.alfresco.org/model/application/1.0}") with the shortened versions ("app:") in the path. This is with 1.4p.
Node node = new Node(someNodeRef); String query = "PATH:\""+node.getPath().toPrefixString(resolver)+"/*\"";
NodeService nodeService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getNodeService(); Node node = new Node(nodeRef); String query = "PATH:\"" + nodeService.getPath(nodeRef).toPrefixString(resolver) + "/*\"";