<?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 How to modify the creation date ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59821#M21096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone:&lt;/P&gt;&lt;P&gt;I moved the contents of one repository to another, all right ... but the creation date was modified. I'm working with CMIS and it does not work when I try to change it because it's a read-only metadata, I found this piece of code that could solve my problem: &lt;/P&gt;&lt;P&gt;policyBehaviourFilter.disableBehaviour(node, ContentModel.ASPECT_AUDITABLE);&lt;BR /&gt; // Update CreatedDate&lt;BR /&gt; &amp;nbsp;nodeService.setProperty(node, ContentModel.PROP_CREATED, dateTime);&lt;BR /&gt; //Enable policy&lt;BR /&gt; policyBehaviourFilter.enableBehaviour(node, ContentModel.ASPECT_AUDITABLE);&lt;/P&gt;&lt;P&gt;but the truth is that I do not know how to create the ServiceRegistry, NodeService, BehaviourFilterv or Behavior and connect it to alfresco, with CMIS I do it this way: &lt;/P&gt;&lt;P&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;&amp;gt;();&lt;BR /&gt; parameter.put(SessionParameter.USER, “admin”));&lt;BR /&gt; parameter.put(SessionParameter.PASSWORD,”admin”);&lt;BR /&gt;&lt;SPAN&gt; parameter.put(SessionParameter.ATOMPUB_URL,”&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom”);" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom”);&lt;/A&gt;&lt;BR /&gt; parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());&lt;BR /&gt; // Object factory de Alfresco&lt;BR /&gt; parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");&lt;/P&gt;&lt;P&gt;SessionFactory factory = SessionFactoryImpl.newInstance();&lt;/P&gt;&lt;P&gt;Session session = factory.createSession(parameter);&lt;/P&gt;&lt;P&gt;And it works fine!! I am using alfresco community edition and I have Spring 4 configured in my project.&lt;/P&gt;&lt;P&gt;It would be great if someone could help me.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 02:13:12 GMT</pubDate>
    <dc:creator>jarkusk90</dc:creator>
    <dc:date>2018-04-24T02:13:12Z</dc:date>
    <item>
      <title>How to modify the creation date ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59821#M21096</link>
      <description>Hello everyone:I moved the contents of one repository to another, all right ... but the creation date was modified. I'm working with CMIS and it does not work when I try to change it because it's a read-only metadata, I found this piece of code that could solve my problem: policyBehaviourFilter.disa</description>
      <pubDate>Tue, 24 Apr 2018 02:13:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59821#M21096</guid>
      <dc:creator>jarkusk90</dc:creator>
      <dc:date>2018-04-24T02:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the creation date ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59822#M21097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you will not be able to execute that code by using CMIS.&lt;/P&gt;&lt;P&gt;Maybe it would be better to implement the code as an Alfresco service, and then&amp;nbsp;expose it as a REST API you could use&amp;nbsp;it to execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find a useful tutorial on how to develop this kind of customizations at&amp;nbsp;&lt;A class="link-titled" href="https://nathanmcminn.com/2017/04/19/a-simple-pattern-for-alfresco-extensions-2/" title="https://nathanmcminn.com/2017/04/19/a-simple-pattern-for-alfresco-extensions-2/" rel="nofollow noopener noreferrer"&gt;A Simple Pattern for Alfresco Extensions |&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 02:37:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59822#M21097</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-04-24T02:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the creation date ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59823#M21098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Thanks Douglas: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;I'll take a look at the tutorial and then comment on my experience.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 13:31:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59823#M21098</guid>
      <dc:creator>jarkusk90</dc:creator>
      <dc:date>2018-04-24T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the creation date ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59824#M21099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry,&lt;/P&gt;&lt;P&gt;I could not find in this tutorial what I was looking for, although I found that very interesting work method, which I could start using later, but for now I'm just a simple beginner who only knows how to work with CMIS, I do not know if Alfresco exposes some service that returns some Service Registry, NodeService, BehaviorFilter or Behavior, or what configuration I must do in Spring to be able to inject any of those objects in my beans, sorry for being a beginner.&lt;/P&gt;&lt;P&gt;Please, help me.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 02:33:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59824#M21099</guid>
      <dc:creator>jarkusk90</dc:creator>
      <dc:date>2018-04-26T02:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the creation date ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59825#M21100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those are not CMIS compatible components, so you are not going to be able to use them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 16:34:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-the-creation-date/m-p/59825#M21100</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-05-01T16:34:44Z</dc:date>
    </item>
  </channel>
</rss>

