AnsweredAssumed Answered

[SOLVED] Obtaining Node from NodeRef

Question asked by bluearth on Feb 9, 2010
Latest reply on Feb 11, 2010 by bluearth
Hi all,

How do I obtain a Node given its NodeRef?

My real problam is actually this:

I need to generate clickable URL link to my newly created node.

I have just created a node using the FileFolderService create() method which returns a FileInfo.
From the FileInfo, I can obtain the NodeRef to the created node.

I plan to use this utility method to create the URL: Utils.generateURL(FacesContext, Node, Mode) from org.alfresco.web.ui.common.Utils
as we can see the method takes a Node, instead of NodeRef.

Or is there an easy way to do this?

Outcomes