<?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: Cancellazione custom rendition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48606#M27837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Puoi settare nell'alfresco-global.properties le proprietà:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none"&gt;&lt;CODE&gt;system.content.orphanCleanup.cronExpression=0 0 4 * * ? &lt;BR /&gt;system.content.orphanProtectDays=XX &lt;BR /&gt;system.content.eagerOrphanCleanup=false #move to oblivion immediately‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fai molta attenzione, però, a come setti i parametri...&lt;/P&gt;&lt;P&gt;per approfondire ti segnalo la pagina ufficiale della documentazione: &lt;A class="link-titled" href="https://docs.alfresco.com/community/concepts/cs-overview.html" title="https://docs.alfresco.com/community/concepts/cs-overview.html" rel="nofollow noopener noreferrer"&gt;Content stores overview | Alfresco Documentation&lt;/A&gt; e (molto meglio!) questa ottima guida: &lt;A class="link-titled" href="https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/" title="https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/" rel="nofollow noopener noreferrer"&gt;https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2017 09:36:00 GMT</pubDate>
    <dc:creator>davidciamberlan</dc:creator>
    <dc:date>2017-09-06T09:36:00Z</dc:date>
    <item>
      <title>Cancellazione custom rendition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48601#M27832</link>
      <description>Buongiorno,in Alfresco 4.2.2 ho definito delle rendition customizzate per le immagini che vengono calcolate automaticamente da Alfresco.Avrei necessità di cancellare i file prodotti da queste rendition (non le foto originali).Qualcuno riuscirebbe a darmi qualche indicazione&amp;nbsp;se c'è&amp;nbsp;un meccanismo di c</description>
      <pubDate>Wed, 06 Sep 2017 07:32:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48601#M27832</guid>
      <dc:creator>agz_wrd</dc:creator>
      <dc:date>2017-09-06T07:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cancellazione custom rendition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48602#M27833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao,&lt;/P&gt;&lt;P&gt;usando js puoi recuperare recuperare tutte le renditions di un nodo e poi cancellarle (eventualemente in modo selettivo).&lt;/P&gt;&lt;P&gt;Il codice potrebbe essere qualcosa di simile (non testato):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; renditions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; renditionService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getRenditions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;yourDoc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; each &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rendition &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; renditions&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// eventualmente scegli quale rendition eliminare o mantenere&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yourDoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeNode&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rendition&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ‍‍‍‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In java il ragionamento è analogo. Puoi usare il &lt;A href="http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/rendition/RenditionService.html" rel="nofollow noopener noreferrer"&gt;renditionService&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 08:21:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48602#M27833</guid>
      <dc:creator>davidciamberlan</dc:creator>
      <dc:date>2017-09-06T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cancellazione custom rendition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48603#M27834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grazie di queste informazioni.&lt;/P&gt;&lt;P&gt;Sulla cancellazione&amp;nbsp;poi hai (o qualcun'altro) ha idea di come funziona?&lt;/P&gt;&lt;P&gt;E' istantanea oppure segue una logica&amp;nbsp;particolare?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 08:25:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48603#M27834</guid>
      <dc:creator>agz_wrd</dc:creator>
      <dc:date>2017-09-06T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cancellazione custom rendition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48604#M27835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao, &lt;/P&gt;&lt;P&gt;non so se interpreto bene la tua domanda (nel caso correggimi!)...&lt;/P&gt;&lt;P&gt;Se intendi la cancellazione fisica dei documenti dall'Hard Disk, quella segue un ben preciso processo: &lt;A href="http://alfrescoinaction.it/alfresco-document-life-cycle/" rel="nofollow noopener noreferrer"&gt;ciclo di vita dei documenti&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 08:49:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48604#M27835</guid>
      <dc:creator>davidciamberlan</dc:creator>
      <dc:date>2017-09-06T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cancellazione custom rendition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48605#M27836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfetto, proprio la conferma delle indicazioni che avevo trovato.&lt;/P&gt;&lt;P&gt;Scusa ma ora mi viene l'ultima domanda: da quanto ho letto in altri post non è bene mettere il protectDays a 0..&lt;/P&gt;&lt;P&gt;Avrei però necessità di cancellare file in modo rapido per liberare disco.&lt;/P&gt;&lt;P&gt;C'è un modo per attivare manualmente il job (o comunque forzarlo in un orario che non sia il default) per liberare spazio settando il protectDays ad 1 ad esempio? (quindi mi eliminerebbe gli orphaned di 13 gg).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 08:54:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48605#M27836</guid>
      <dc:creator>agz_wrd</dc:creator>
      <dc:date>2017-09-06T08:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cancellazione custom rendition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48606#M27837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Puoi settare nell'alfresco-global.properties le proprietà:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none"&gt;&lt;CODE&gt;system.content.orphanCleanup.cronExpression=0 0 4 * * ? &lt;BR /&gt;system.content.orphanProtectDays=XX &lt;BR /&gt;system.content.eagerOrphanCleanup=false #move to oblivion immediately‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fai molta attenzione, però, a come setti i parametri...&lt;/P&gt;&lt;P&gt;per approfondire ti segnalo la pagina ufficiale della documentazione: &lt;A class="link-titled" href="https://docs.alfresco.com/community/concepts/cs-overview.html" title="https://docs.alfresco.com/community/concepts/cs-overview.html" rel="nofollow noopener noreferrer"&gt;Content stores overview | Alfresco Documentation&lt;/A&gt; e (molto meglio!) questa ottima guida: &lt;A class="link-titled" href="https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/" title="https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/" rel="nofollow noopener noreferrer"&gt;https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 09:36:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancellazione-custom-rendition/m-p/48606#M27837</guid>
      <dc:creator>davidciamberlan</dc:creator>
      <dc:date>2017-09-06T09:36:00Z</dc:date>
    </item>
  </channel>
</rss>

