<?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 Updating a doc version in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297883#M251013</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;I wrote a method that updates a doc content. It sets the stream for the new content, but the version is not incremented after calling &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;setContentStream&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; on the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Document&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; object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to do it manually by retrieving existing version, then incrementing it and then setting the property &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;VERSION_LABEL&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;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 14:12:10 GMT</pubDate>
    <dc:creator>horia</dc:creator>
    <dc:date>2013-07-10T14:12:10Z</dc:date>
    <item>
      <title>Updating a doc version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297883#M251013</link>
      <description>Hi,I wrote a method that updates a doc content. It sets the stream for the new content, but the version is not incremented after calling setContentStream‍ on the Document‍ object.Do I have to do it manually by retrieving existing version, then incrementing it and then setting the property VERSION_LA</description>
      <pubDate>Wed, 10 Jul 2013 14:12:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297883#M251013</guid>
      <dc:creator>horia</dc:creator>
      <dc:date>2013-07-10T14:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a doc version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297884#M251014</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;take a look at this &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/forum/developer-discussions/alfresco-api/update-document-version-07082013-1503" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/developer-discussions/alfresco-api/update-document-version-07082013-1503&lt;/A&gt;&lt;SPAN&gt; and read the corresponding API classes JavaDocs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:48:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297884#M251014</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2013-07-10T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a doc version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297885#M251015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Andrea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately the checkIn method described as solution in your link won't help me since my document is not a private copy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 16:15:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-a-doc-version/m-p/297885#M251015</guid>
      <dc:creator>horia</dc:creator>
      <dc:date>2013-07-10T16:15:27Z</dc:date>
    </item>
  </channel>
</rss>

