Alfresco Node Reference

cancel
Showing results for 
Search instead for 
Did you mean: 
gabrielf_andrad
Member II

Alfresco Node Reference

Boa tarde.

Alguem sabe se é possível localizar documentos através de uma busca pelo Alfresco Node Reference?

2 Replies
jpotts
Professional

Re: Alfresco Node Reference

Yes, it is possible. You can either go into the Node Browser in admin tools, paste in the node reference, then change the search selector to "NodeRef", or you can do it with code.

For example, using JavaScript, you can use the search service's findNode function.

cesarista
Customer

Re: Alfresco Node Reference

In addition to Jeff Potts' comment, you can use Javascript Console (for executing javascript API):

var n = search.findNode("workspace://SpacesStore/8ef8a5d7-7a49-4b95-9673-fbfaa315375f");
logger.log(n.name + " :: " + n.typeShort + " :: " + n.nodeRef);

Besides, you may always use the details page in Alfresco Share:

http://alfrescohost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/8ef8a5d7-7a49-4...

And finally, using Alfresco Node Browser, you may use also CMIS Search. Just select "cmis-strict" or "cmis-alfresco", select "workspace://SpacesStore" and type your query:

SELECT * FROM cmis:document WHERE cmisSmiley SurprisedbjectId = '8ef8a5d7-7a49-4b95-9673-fbfaa315375f'

Regards.

--C.