cancel
Showing results for 
Search instead for 
Did you mean: 

Rename categories

andreas108
Champ in-the-making
Champ in-the-making
Hi,

is there a way to to rename a category via Webservice API?
I tried the example in
http://wiki.alfresco.com/wiki/IngresTutorial_Alfresco_Web_Service_API_for_Java
but this seems only to work with spaces.
Does anybody has a solution?

Thank you very much,
Andreas
1 REPLY 1

jcustovic
Champ in-the-making
Champ in-the-making
You can try renaming just like ordinary node:
First get the reference to your category like
categoryNodeRef = new Reference(WORKSPACE_STORE, null, "/cm:categoryRoot/cm:generalclassifiable/cm:" + ISO9075.encode(categoryName));
and then just try to update Constants.PROP_NAME property.