<?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 Re: Model Alfresco in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110129#M30849</link>
    <description>&lt;P&gt;My problem: is when the user deletes a folder in the documantLibrary, I have to launch a javascript to retrieve them.&lt;/P&gt;&lt;P&gt;When a site is created, it is the result of a duplication of a xx model. In my opinion, we should compare with the source model and copy the missing files from the model.&lt;BR /&gt;what I thought of as a solution and I don't know if it's possible to do it !!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But according to your answer I think&amp;nbsp; of recovering them from the trash but how to do it in JS please?&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 15:26:38 GMT</pubDate>
    <dc:creator>ALfreSara</dc:creator>
    <dc:date>2020-05-14T15:26:38Z</dc:date>
    <item>
      <title>Model Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110125#M30845</link>
      <description>&lt;DIV class="tlid-input input"&gt;&lt;DIV class="source-wrap"&gt;&lt;DIV class="input-full-height-wrapper tlid-input-full-height-wrapper"&gt;&lt;DIV class="source-input"&gt;&lt;DIV class="source-footer-wrap source-or-target-footer"&gt;&lt;DIV class="character-count tlid-character-count"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="tlid-results-container results-container"&gt;&lt;DIV class="tlid-result result-dict-wrapper"&gt;&lt;DIV class="result tlid-copy-target"&gt;&lt;DIV class="text-wrap tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;how to compare with the source model and copy from the model the elements via JS&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;thanks for the help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 May 2020 11:02:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110125#M30845</guid>
      <dc:creator>ALfreSara</dc:creator>
      <dc:date>2020-05-14T11:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Model Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110126#M30846</link>
      <description>&lt;P&gt;Can you explain what you want to achieve? its not completly clear&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:08:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110126#M30846</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-05-14T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Model Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110127#M30847</link>
      <description>&lt;P&gt;thank you for reply,&lt;/P&gt;&lt;P&gt;when we create a site we create it according to a model.&lt;BR /&gt;- how can I recover a model and see these elements (js)?&lt;BR /&gt;- how can I know the model in which the site is created via (js)?&lt;BR /&gt;- I deleted some files in my site and the objective is to make the comparison with the source model and copy from the model the missing files.&lt;/P&gt;&lt;P&gt;did you understand me?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 13:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110127#M30847</guid>
      <dc:creator>ALfreSara</dc:creator>
      <dc:date>2020-05-14T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Model Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110128#M30848</link>
      <description>&lt;P&gt;No it is still not clear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you referring to content model ? if yes -&amp;gt; "site creation doesn't care what content models you have created/deployed in repository."&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What model you want to recover and what js you are looking to see ?&lt;/P&gt;
&lt;P&gt;When you delete files from sites/repository, it goes to trash can. you can recover the deleted files from there if needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide detailed descripition of your use case.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 13:56:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110128#M30848</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-05-14T13:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Model Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110129#M30849</link>
      <description>&lt;P&gt;My problem: is when the user deletes a folder in the documantLibrary, I have to launch a javascript to retrieve them.&lt;/P&gt;&lt;P&gt;When a site is created, it is the result of a duplication of a xx model. In my opinion, we should compare with the source model and copy the missing files from the model.&lt;BR /&gt;what I thought of as a solution and I don't know if it's possible to do it !!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But according to your answer I think&amp;nbsp; of recovering them from the trash but how to do it in JS please?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 15:26:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110129#M30849</guid>
      <dc:creator>ALfreSara</dc:creator>
      <dc:date>2020-05-14T15:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Model Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110130#M30850</link>
      <description>&lt;P&gt;I am not sure what is the real benefit implement a js to retrieve the deleted files. it would be simple for the user to simply go to their trashcan and restore the deleted file as needed. But it may be a particular use case for you which is fine.&lt;/P&gt;
&lt;P&gt;You need to also understand the lifecycle of a node/file/folder etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Refer these posts , they are old but helpful:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.arvixe.com/content-lifecycle-in-alfresco/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://blog.arvixe.com/content-lifecycle-in-alfresco/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you still want to use your custom js to restore files, you would have make a lot of customizations to list of files which are deleted and then restore them based on their nodeIds. You might have to implement some sort of UI as well.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Have a look at these rest apis which can be a reference for your customization in order to list deleted files and retrieve them:&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-list-trashcan.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-list-trashcan.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-restore-trashcan-items.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-restore-trashcan-items.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;"&lt;U&gt;When a site is created, it is the result of a duplication of a xx model. In my opinion, we should compare with the source model and copy the missing files from the model&lt;/U&gt;" &lt;STRONG&gt;----&amp;gt;&lt;/STRONG&gt; Seems you are confusing between site and content model with this statement you mentioned above. It is not correct. Content model is created/deployed at repository level. You create/configure, types, aspects, constraints, associations etc. in your content model and when you create sites, you could utilize your custom types aspects etc. to create content/metadata/associations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend to go through these docs and understand the site and content model:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/sites-intro.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/sites-intro.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/library-intro.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/library-intro.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/references/dev-extension-points-content-model.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/references/dev-extension-points-content-model.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/references/dev-extension-points-content-model-define-and-deploy.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/references/dev-extension-points-content-model-define-and-deploy.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 17:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/model-alfresco/m-p/110130#M30850</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-05-14T17:34:43Z</dc:date>
    </item>
  </channel>
</rss>

