<?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 problem on vesionig in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-on-vesionig/m-p/268675#M221805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have a small problem, if you put a document on the properties I have Alfresco and septum as version 0.1 of the document I have I would be 1.0. The problem is that I need to set the document must be versioned (Utils.createNamedValue ("{} &lt;/SPAN&gt;&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;&lt;SPAN&gt; autoVersion", "true") how do I get as an initial version 1.0 . this is the code I wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NamedValue[] contentProps = new NamedValue[8];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;documentName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[1] = Utils.createNamedValue(Constants.PROP_CONTENT,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentString);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// dataCreation= "2005-09-16T17:01:03.456+01:00";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[2] = Utils.createNamedValue(Constants.PROP_CREATED, it.opera21.migration.Utils.convertToAlfrescoDateFormatFromShare(metadati.getCreation_date()));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[3] = Utils.createNamedValue(PROP_MODIFIED, it.opera21.migration.Utils.convertToAlfrescoDateFormatFromShare(metadati.getCreation_date()));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[4] = Utils.createNamedValue(Constants.PROP_DESCRIPTION, metadati.getTitle());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[5] = Utils.createNamedValue(Constants.PROP_TITLE, metadati.getTitle());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[6] = Utils.createNamedValue(PROP_AUTHOR, metadati.getReport());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[7] = Utils.createNamedValue("{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}autoVersion" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}autoVersion&lt;/A&gt;&lt;SPAN&gt;", "true");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CML cml1 = new CML();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CMLCreate create2 = new CMLCreate(null, parentReference, null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;null, null, Constants.TYPE_CONTENT, contentProps);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cml1.setCreate(new CMLCreate[] { create2 });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UpdateResult[] result;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;result = WebServiceFactory.getRepositoryService().update(cml1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to add this piece of code but the result is always the same as I do start to have a verion 1.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[17] = Utils.createNamedValue("{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}initialVersion" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}initialVersion&lt;/A&gt;&lt;SPAN&gt;", "true");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[18] = Utils.createNamedValue("{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}versionType" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}versionType&lt;/A&gt;&lt;SPAN&gt;", "MAJOR");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contentProps[19] = Utils.createNamedValue("{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}versionLabel" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}versionLabel&lt;/A&gt;&lt;SPAN&gt;", "1.0");&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2011 19:44:40 GMT</pubDate>
    <dc:creator>antoneav</dc:creator>
    <dc:date>2011-12-08T19:44:40Z</dc:date>
    <item>
      <title>problem on vesionig</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-on-vesionig/m-p/268675#M221805</link>
      <description>Hi, I have a small problem, if you put a document on the properties I have Alfresco and septum as version 0.1 of the document I have I would be 1.0. The problem is that I need to set the document must be versioned (Utils.createNamedValue ("{} http://www.alfresco.org/model/content/1.0 autoVersion", "</description>
      <pubDate>Thu, 08 Dec 2011 19:44:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-on-vesionig/m-p/268675#M221805</guid>
      <dc:creator>antoneav</dc:creator>
      <dc:date>2011-12-08T19:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem on vesionig</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-on-vesionig/m-p/268676#M221806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;could you try following way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first just allowversion true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;update the content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then again update the content with the cm:versionLabel as 1.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure but this may work as when we do from UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Initially we allow versioning then while editing it will update the new version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 15:07:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-on-vesionig/m-p/268676#M221806</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2011-12-14T15:07:49Z</dc:date>
    </item>
  </channel>
</rss>

