<?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 Editing Older Version in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/editing-older-version/m-p/280672#M233802</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;SPAN&gt;I am new to Alfresco ,I have a requirement like want to update the custom property of older Versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the content will be in versionstore and i am able to retrieve the version, but not able to update the property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to updtate ?if Yes can someone give the webscript code to update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That will be really helpfull for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rajesh&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 05:57:16 GMT</pubDate>
    <dc:creator>rajesh2</dc:creator>
    <dc:date>2013-05-21T05:57:16Z</dc:date>
    <item>
      <title>Editing Older Version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/editing-older-version/m-p/280672#M233802</link>
      <description>Hi,I am new to Alfresco ,I have a requirement like want to update the custom property of older Versions.I guess the content will be in versionstore and i am able to retrieve the version, but not able to update the property.Is it possible to updtate ?if Yes can someone give the webscript code to upda</description>
      <pubDate>Tue, 21 May 2013 05:57:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/editing-older-version/m-p/280672#M233802</guid>
      <dc:creator>rajesh2</dc:creator>
      <dc:date>2013-05-21T05:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Older Version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/editing-older-version/m-p/280673#M233803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rajesh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used javabacked webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's see what a code looks like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String nodeUuid = (String) parameters.get("uuid");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String versionLabel = (String) parameters.get("versionLabel");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String nodePath = "workspace/SpacesStore/" + nodeUuid;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NodeRef nodeRef = repository.findNodeRef("node", nodePath.split("/"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VersionHistory versionHistory = registry.getVersionService().getVersionHistory(nodeRef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Version version = versionHistory.getVersion(versionLabel);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NodeRef versionNode = version.getVersionedNodeRef();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;registry.getNodeService().setProperty(versionNode, "Your custom property Qname", "value");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't test the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish you solve the problem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 04:32:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/editing-older-version/m-p/280673#M233803</guid>
      <dc:creator>kofwhgh</dc:creator>
      <dc:date>2013-05-22T04:32:39Z</dc:date>
    </item>
  </channel>
</rss>

