cancel
Showing results for 
Search instead for 
Did you mean: 

Rename a node

skoalbrother952
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
That code is fine.

I wonder whether your question should be in regard to the node's path rather than the name?

skoalbrother952
Champ in-the-making
Champ in-the-making
That code is fine.

I wonder whether your question should be in regard to the node's path rather than the name?

Implying that nodes in certain stores cannot have the name changed?