<?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 Export and import custom content model with java in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60982#M21348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been searching a lot, but I didn't find yet any possible solution to how (or even if) this is possible to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one Alfresco Community installed on one machine, and other installed on another machine. I have created via Alfresco web UI a custom data model with Model Manager tool. Now, I want to export it, and then, import it in the other machine. Which ways would I have to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking to do it with Java and API rest (like working with Alfresco nodes), but I think this is not possible.I am trying to do some type of application/process to do that, but I am a bit lost right know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 13:57:28 GMT</pubDate>
    <dc:creator>odpas</dc:creator>
    <dc:date>2018-04-24T13:57:28Z</dc:date>
    <item>
      <title>Export and import custom content model with java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60982#M21348</link>
      <description>Hello,&amp;nbsp;I have been searching a lot, but I didn't find yet any possible solution to how (or even if) this is possible to do it.I have one Alfresco Community installed on one machine, and other installed on another machine. I have created via Alfresco web UI a custom data model with Model Manager tool</description>
      <pubDate>Tue, 24 Apr 2018 13:57:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60982#M21348</guid>
      <dc:creator>odpas</dc:creator>
      <dc:date>2018-04-24T13:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export and import custom content model with java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60983#M21349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Odpas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you're referring to Share Content Model Manager (CMM) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/community/concepts/admintools-cmm-intro.html" title="https://docs.alfresco.com/community/concepts/admintools-cmm-intro.html" rel="nofollow noopener noreferrer"&gt;Content modeling with Model Manager | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can analyse the calls from Share CMM to the Repository, you will see that Share uses a "private" CMM REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp;may be able to use this private API to deploy (dynamic) models that&amp;nbsp;remain compatible with Share CMM ?&amp;nbsp;Please be aware the API is not public, hence subject to change at any time (ie. not officially documented or supported - in terms of backwards compatibility).&amp;nbsp;There are also some limitations for models supported via Share CMM, so your mileage may vary. Please run your own modelling tests (and also&amp;nbsp;search&amp;nbsp;JIRA).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you&amp;nbsp;can also&amp;nbsp;manage&amp;nbsp;Dynamic Models via the public APIs (CMIS or REST):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/community/tasks/deploy-dynamic.html" title="https://docs.alfresco.com/community/tasks/deploy-dynamic.html" rel="nofollow noopener noreferrer"&gt;Deploying a content model: dynamic approach | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, you will need to construct a valid XML content model. As an admin, this can be uploaded to the "/Data Dictionary/Models" folder and activated (by setting&amp;nbsp;"cm:modelActive" property to true) - using Share &amp;amp;/or public APIs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/model/contentModel.xml#L133" title="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/model/contentModel.xml#L133" rel="nofollow noopener noreferrer"&gt;alfresco-repository/contentModel.xml at master · Alfresco/alfresco-repository · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be noted that dynamic model changes must be "incremental". Dynamic models can only be deleted if there are no existing references. In the future, it&amp;nbsp;might&amp;nbsp;be useful to support a non-incremental development mode. This would be similar to updating / removing static models (and potentially leaving residual references &amp;amp;/or broken behaviours&amp;nbsp;that depend on the model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 16:16:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60983#M21349</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2018-04-24T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export and import custom content model with java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60984#M21350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-userid="93179" data-username="janv" href="https://community.alfresco.com/people/janv" style="color: #8bc34a; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;" rel="nofollow noopener noreferrer"&gt;@Jan Vonka&lt;/A&gt;, Great answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were very helpful. I will try with&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Dynamic Models via the public APIs (CMIS or REST) approach.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 15:58:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/export-and-import-custom-content-model-with-java/m-p/60984#M21350</guid>
      <dc:creator>odpas</dc:creator>
      <dc:date>2018-04-26T15:58:33Z</dc:date>
    </item>
  </channel>
</rss>

