<?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 Set create date problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230448#M183578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to import files from a legacy system. I got all the directories and files to move fine, but I need to keep the original create date. I get it fine and use the ISODateFormat to format. Everything works with no errors, I go to alfresco and look at it, it has today's date! here is the relevant code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NamedValue createDateValue = Utils.createNamedValue("{&lt;A href="http://www.alfresco.org/model/content/1.0}created" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}created&lt;/A&gt;", fileDate);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NamedValue modDateValue = Utils.createNamedValue("{&lt;A href="http://www.alfresco.org/model/content/1.0}modified" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}modified&lt;/A&gt;", fileDate);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NamedValue[] contentProps = new NamedValue[] {createDateValue,modDateValue};&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Construct CML statement to create test doc content node&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMLCreate createDoc = new CMLCreate("ref1", docParent, null, null, null, Constants.createQNameString(NAMESPACE, CONTENT_TYPE), contentProps);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CML cml = new CML();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cml.setCreate(new CMLCreate[] {createDoc});&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;SPAN&gt;like I said - no errors are being thrown, just today's date is being thrown.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 22:10:05 GMT</pubDate>
    <dc:creator>mangar</dc:creator>
    <dc:date>2010-05-20T22:10:05Z</dc:date>
    <item>
      <title>Set create date problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230448#M183578</link>
      <description>I am trying to import files from a legacy system. I got all the directories and files to move fine, but I need to keep the original create date. I get it fine and use the ISODateFormat to format. Everything works with no errors, I go to alfresco and look at it, it has today's date! here is the relev</description>
      <pubDate>Thu, 20 May 2010 22:10:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230448#M183578</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2010-05-20T22:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set create date problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230449#M183579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar problem. While I can modify the description or name of a file I can't change the modifier/creator and modification/creation dates via web service client. Probably this is a design decision of alfresco architects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 11:48:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230449#M183579</guid>
      <dc:creator>hkır</dc:creator>
      <dc:date>2010-05-21T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set create date problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230450#M183580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is.&amp;nbsp; cm:created is the date the file was created in alfresco, likewise for the modified fields.&amp;nbsp;&amp;nbsp; Think about it.&amp;nbsp;&amp;nbsp; If you could set a value for cm:modified then it would have to be overwritten as you tried to set it to something else&amp;nbsp; :?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There are a small set of "protected" properties that you can't modify directly since they are used by the system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the ultimate solution may be to introduce another couple of date properties so we can distinguish between the date that the file was created in alfresco and for example what is shown in the CIFS interface.&amp;nbsp;&amp;nbsp;&amp;nbsp; The new values could be set without interfering with the functioning of alfresco.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; There's at least one JIRA enhancement open with some thoughts on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 12:21:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230450#M183580</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-05-21T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set create date problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230451#M183581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, cool. I have added a my:fileCreateDate property to my:doc parent. I set that, make it searchable, and presto! Same thing.&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe there should be a cm:fileCreateDate ?&amp;nbsp; Anyone?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 12:44:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-create-date-problem/m-p/230451#M183581</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2010-05-21T12:44:16Z</dc:date>
    </item>
  </channel>
</rss>

