11-04-2016 06:43 AM
Hello,
How can i get the NodeRef of dictionary without using lucene queries?
11-04-2016 09:30 AM
Use the XPath based selectNodes operation to lookup nodes without requiring Lucene / SOLR.
11-04-2016 12:54 PM
If you're referring to the "Data Dictionary" node, then as Axel says ... some Java examples (untested):
...
NodeRef storeRootNodeRef = nodeService.getRootNode(new StoreRef("workspace://SpacesStore"));
NodeRef ddNodeRef = searchService.selectNodes(storeRootNodeRef, "/app:company_home/app:dictionary", null, namespaceService, false).get(0);
or
...
NodeRef ddNodeRef = searchService.selectNodes(repositoryHelper.getCompanyHome(), "/app:dictionary", null, namespaceService, false).get(0);
Regards,
Jan
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.