AnsweredAssumed Answered

How to change the name of a node?

Question asked by spilby on Nov 19, 2014
Latest reply on Nov 19, 2014 by spilby
Hi,

To change the name of a node I do this (with a java backed webscript):


getNodeService().setProperty(nodeRef, QName.createQName("http://www.alfresco.org/model/content/1.0", "name"), "012345");


I go to alfresco share and I see the name property with the new name and if I do


getFileFolderService().getFileInfo(nodeRef).getName()


returns me the new name. All seems ok.

But lucene don't find me the new folder and doing a


getNodeService().getPath(nodeRef)


I can see that the path has the older name. How can I update the path? Is necessary to update another property in addition to the name?

Thanks a lot!

Outcomes