<?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 Creation Date and Modification Date fetched using CMIS api doesn't match with the dates displayed in Alfresco web application in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271309#M224439</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 have written a custom utility for Document Conversion. In the utility I preserve the Document Creation Date and Last Modification date by disabling the Audit Aspect as shown below: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserTransaction tx = transactionService.getUserTransaction();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tx.begin();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; behaviourFilter.disableBehaviour(ContentModel.ASPECT_AUDITABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef node = new NodeRef(document.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; internalNodeService.setProperty(node, ContentModel.PROP_CREATED, creationDate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; internalNodeService.setProperty(node, ContentModel.PROP_MODIFIED, lastModificationDate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; behaviourFilter.enableBehaviour(ContentModel.ASPECT_AUDITABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tx.commit();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I access the Alfresco web application (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco&lt;/A&gt;&lt;SPAN&gt;), I can see the Creation and Last Modification dates are set correctly. However when I retrieve the Document using CMIS api, the Creation and Last Modification Date doesn't match with the dates displayed in Alfresco web application. E.g. The Creation Date and Last Modification Dates are displayed as '17-Feb-2010' in Alfresco web application whereas the CMIS object displays these dates as '27-Jan-2013' that's the date when the conversion utility was executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get the correct Creation and Last Modification Date using CMIS api? &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2013 05:59:04 GMT</pubDate>
    <dc:creator>prasadbirje</dc:creator>
    <dc:date>2013-01-28T05:59:04Z</dc:date>
    <item>
      <title>Creation Date and Modification Date fetched using CMIS api doesn't match with the dates displayed in Alfresco web application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271309#M224439</link>
      <description>Hi, I have written a custom utility for Document Conversion. In the utility I preserve the Document Creation Date and Last Modification date by disabling the Audit Aspect as shown below: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserTransaction tx = transactionService.getUserTransaction();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tx.begin();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; behaviourFilter.d</description>
      <pubDate>Mon, 28 Jan 2013 05:59:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271309#M224439</guid>
      <dc:creator>prasadbirje</dc:creator>
      <dc:date>2013-01-28T05:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creation Date and Modification Date fetched using CMIS api doesn't match with the dates displayed in Alfresco web application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271310#M224440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does Alfresco has two seperate models one for CMIS and the other Content Model which is used by Alfresco exploer application? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody from Alfresco throw light on this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:29:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271310#M224440</guid>
      <dc:creator>prasadbirje</dc:creator>
      <dc:date>2013-01-31T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creation Date and Modification Date fetched using CMIS api doesn't match with the dates displayed in Alfresco web application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271311#M224441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well it seems to be the normal behavior as when you are converting document you are actually creating the new document and when you create the document by using alfresco services it set the creation date and modification date automatically you cannot manipulate those properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if you want to keep track of those you can create one more aspect like "OriginalDetail" with properties like "OriginalCreationDate" something like that and during conversion copy the creation date from old doc to new one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 09:03:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271311#M224441</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-02-01T09:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creation Date and Modification Date fetched using CMIS api doesn't match with the dates displayed in Alfresco web application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271312#M224442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mits,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I was able to change the Creation Date and Modification Date properties of Document by disabling the Auditable aspect. I am also able to see these being reflected in Alfresco explorer application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when I use CMIS api to retrieve the document, it doesn't return the Creation Date and Modification Date as seen in Alfresco explorer application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, using the Custom Aspect would be my last option to resolve this issue. However I am unable to find why the CMIS api doesn't return the same dates as that of the Alfresco explorer web application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 11:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271312#M224442</guid>
      <dc:creator>prasadbirje</dc:creator>
      <dc:date>2013-02-01T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creation Date and Modification Date fetched using CMIS api doesn't match with the dates displayed in Alfresco web application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271313#M224443</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;The two are in sync - there is only one place where this information is stored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 13:41:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creation-date-and-modification-date-fetched-using-cmis-api-doesn/m-p/271313#M224443</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2013-02-04T13:41:36Z</dc:date>
    </item>
  </channel>
</rss>

