cancel
Showing results for 
Search instead for 
Did you mean: 

Change Name of the Node

pmrreddy
Champ on-the-rise
Champ on-the-rise
Hi All,


I need to change the content node name in my custom java service, as i did the below

Map<QName,Serializable> propMap = nodeService.getProperties(myNodeRef);

propMap.put(ContentModel.PROP_NAME,"node_new_name");

nodeService.setProperties(myNodeRef,propMap);


After executed this when i go through company home data dictionary the new name is applied and its showing, But when I go thgough the Node Browser up to the node parent in the parent node child properties its shwowing the old name, any suggestions how to change this


I need to change the name of the Ti1 Node , SL is the Parent node of the Ti1 when i go upto the SL the children table shows as below after i executed.


Children
Child Name   Child Node   Primary   Association Type   Index
Ti1   workspace://SpacesStore/509acab8-a204-4fd1-b3b5-e8b7f7711530   true   {http://www.alfresco.org/model/content/1.0}contains   -1
Ti2   workspace://SpacesStore/06869146-1bd0-4896-96c2-8c4311bbf0d3   true   {http://www.alfresco.org/model/content/1.0}contains   -1
ddd   workspace://SpacesStore/60e14e71-b48a-42fd-a46e-6cdb38ea56ef   true   {http://www.alfresco.org/model/content/1.0}contains   -1






Regards
Parameswara Reddy
3 REPLIES 3

sanket
Champ on-the-rise
Champ on-the-rise
The node is renamed, but not reflected in the node browser. Which alfresco version you are using ?
The indexing process could be still active.
Are you able to search the renamed content with the new name ?
Are you using alfresco share or alfresco explorer ?

pmrreddy
Champ on-the-rise
Champ on-the-rise
Hi Sanket,


I am using Alfresco 4.0.e with Explorer and the indexing process is active, and regarding search i am able to find the node with name but the problem i am getting search the childs of this node through path query.

Regards
Pmrreddy

sanket
Champ on-the-rise
Champ on-the-rise
Please refer the release notes for your version
http://wiki.alfresco.com/wiki/Alfresco_Community_4.0.d_Release_Notes
http://wiki.alfresco.com/wiki/Alfresco_Community_4.0.e_Release_Notes

Check the "Known Issues" section in this link; and see if your problem is not lying within that.

1) I guess you might be using solr for indexing. Please confirm.

2) Secondly, are you getting any errors in the log ? If yes, please share.
3) Also share the path query you are firing.
4) Are you firing the query in node browser directly or through some java code ?