Hi Team,
I want to find noderef of the folder based on its path in java webscript. I have disabled solr in my Alfresco. How can I get it using cmis or any other way which does not use solr?
Thanks
WIthout SOLR, you essentially have to use Alfresco's Java API (either FileFolderService.resolveNamePath(), SearchService.selectNodes() or iteratively NodeService.getChildByName()) to resolve a path to a node reference. Depending on which API you use, there are some differences in semantics / limitations. E.g. FileFolderService only allows you to deal with - as the name suggests - files and folders, and any nodes not fitting into those two base types will be unsupported. It also limits you to the cm:contains association for paths. SearchService.selectNodes() requires you to use an XPath, and NodeService.getChildByName() requires you to split your path and iteratively perform the lookup - but both are unrestricted with regards to type of nodes and child associations supported.
You can try to use getObjectByPath(String path) method of cmis Session interface
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.