<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to change the name of a node? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312611#M265741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To change the name of a node I do this (with a java backed webscript):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;getNodeService().setProperty(nodeRef, QName.createQName("&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;", "name"), "012345");&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I go to alfresco share and I see the name property with the new name and if I do &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;getFileFolderService().getFileInfo(nodeRef).getName()&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;returns me the new name. All seems ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But lucene don't find me the new folder and doing a &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;getNodeService().getPath(nodeRef)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 08:39:05 GMT</pubDate>
    <dc:creator>spilby</dc:creator>
    <dc:date>2014-11-19T08:39:05Z</dc:date>
    <item>
      <title>How to change the name of a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312611#M265741</link>
      <description>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().</description>
      <pubDate>Wed, 19 Nov 2014 08:39:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312611#M265741</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-11-19T08:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the name of a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312612#M265742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using FileFolderService's rename() method and see if it works for you or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 09:30:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312612#M265742</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-11-19T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the name of a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312613#M265743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do a &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;getFileFolderService().rename(nodeRef, name);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; with the new name, but the result is the same. The name of the node is changed (getFileInfo(nodeRef).getName() returns me the new name), but the getPath returns me the old name… &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 11:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312613#M265743</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-11-19T11:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the name of a node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312614#M265744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one? Someone knows how change the path name of a node? I need this information, please. Thanks a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:03:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-name-of-a-node/m-p/312614#M265744</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-11-24T12:03:03Z</dc:date>
    </item>
  </channel>
</rss>

