AnsweredAssumed Answered

Rename a node

Question asked by skoalbrother952 on Jan 10, 2011
Latest reply on Jan 10, 2011 by skoalbrother952
Hello,

Is it possible to rename an existing node?

I have tried the java and javascript APIs to rename a node, both did not change the name nor did they generate an error.  The java snippit is below


      NodeRef node = new NodeRef("user://alfrescoUserStore/0c946e1b-b5b2-4f86-86ee-26fb15f10c9c");
      serviceRegistry.getNodeService().setProperty(node, ContentModel.PROP_NAME, "A_NEW_NAME");


Regards,
D

Outcomes