AnsweredAssumed Answered

Get NodeRef by path

Question asked by robertmarkbram on Jun 13, 2010
Latest reply on Mar 30, 2016 by arunvallamkondu
Hi All,

Can I create a NodeRef purely from the path?

It seems like NodeRef doesn't allow it, and looking at the various methods in the SearchService and FileFolderService they all require a NodeRef or something similar to search.

Let's say I already know this information about  a node (from Node Browser):

Node Identifier
Primary Path:    /{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}EBNS
Reference:   workspace://SpacesStore/1960748f-cf69-4784-89a0-a4cbd6f03b49
Type:   {http://www.alfresco.org/model/content/1.0}folder
Parent:   workspace://SpacesStore/410438c0-095e-49ac-bfd3-e167b3be863c

How could I do something like this:
NodeRef bnr = new NodeRef("/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}EBNS");

Thanks for any advice!

Rob
:)

Outcomes