<?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: Expire Web Content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229029#M182159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never, ever modify the file system directly, to do so will corrupt your repository!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The staging sandbox should be read-only to prevent you from being able to edit it directly.&amp;nbsp;&amp;nbsp;&amp;nbsp; You may decide to "undo" your delete some time in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at these methods &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AssetService.deleteAsset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SandboxService.submitAll()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2009 15:30:02 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2009-08-13T15:30:02Z</dc:date>
    <item>
      <title>Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229023#M182153</link>
      <description>Hi,I am testing expiration capabilities in Alfresco 3.2I tested the change request workflow. I have a requirement where on reaching the expiration date, content should be physically deleted from the file system(deployment target), but not from the repositoryPlease let me know, how can I achieve this</description>
      <pubDate>Thu, 13 Aug 2009 12:25:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229023#M182153</guid>
      <dc:creator>preetigupta</dc:creator>
      <dc:date>2009-08-13T12:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229024#M182154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Normally content would be "deleted" after expiration and then this change can be deployed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why do you want and mean by "to keep deleted content"?&amp;nbsp; Remember that the even though you have deleted the content it is still there in the version history.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 12:54:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229024#M182154</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-08-13T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229025#M182155</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 just tested in Alfresco 3.2 Community Edition and 3.1. It does not delete from the target file system. It keeps it there and sends a workflow task to review and resubmit it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My requirement is that the file should be deleted from the target site at time of expiration. That is, it should not be available to users any more. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its upto reviewer then to resubmit it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly help me in this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Preeti Gupta&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 13:18:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229025#M182155</guid>
      <dc:creator>preetigupta</dc:creator>
      <dc:date>2009-08-13T13:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229026#M182156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way to achieve what you want (which is also what we've done) is to define your own expirey component.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look inside the file 'scheduled-jobs-context.xml' (alfresco version 2.2.5) you'll see a scheduled task defined by a bean named 'avmExpiredContentTrigger'. It's scheduled to activate at 3:30am every morning. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This bean executes the java class 'org.alfresco.repo.avm.AVMExpiredContentJob'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using this you could write you own version of this class, to simply the delete the content instead of activating a workflow with the expirey-reminder task (which is what it currently does). You could reference the source code of this existing class as inspiration for your own. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's pretty straightforward to do, but it's a bit laborious to write the routine to delete the node from a user sandbox (dedicated for this process alone), and then activate the workflow which asynchronously promotes the deletion to the staging sandbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.ixxus.com" rel="nofollow noopener noreferrer"&gt;http://www.ixxus.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 14:26:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229026#M182156</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2009-08-13T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229027#M182157</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;Thanks so much for the direction. I would try to do the way you have suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So as per my understanding, you suggest me to call my custom class , and then delete the file from the physical file system. (Normal Java File operation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything else I need to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Preeti Gupta&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 14:41:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229027#M182157</guid>
      <dc:creator>preetigupta</dc:creator>
      <dc:date>2009-08-13T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229028#M182158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I suppose you could delete from the file system if you've enabled CIFS (or FTP / WebDAV), but it's probably better to use the 'removeNode' method on the AVMService service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember, I believe best-practice is not to edit the staging sandbox directly, but instead to make changes within a user-sandbox, which then needs to be submitted/promoted to the staging sandbox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 14:47:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229028#M182158</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2009-08-13T14:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229029#M182159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never, ever modify the file system directly, to do so will corrupt your repository!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The staging sandbox should be read-only to prevent you from being able to edit it directly.&amp;nbsp;&amp;nbsp;&amp;nbsp; You may decide to "undo" your delete some time in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at these methods &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AssetService.deleteAsset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SandboxService.submitAll()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 15:30:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229029#M182159</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-08-13T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expire Web Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229030#M182160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends which alfresco version you're using. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But mrogers is correct in asserting that you shouldn't change the staging-sandbox directly, even if you can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incidentally Preeti, I assumed you meant alfresco's virtual-filesystem, not the actual content-store. If you did not mean the virtual-filesystem (i.e. Alfresco-CIFS), then heed the advice of mrogers. Either way, I'd stick to the AVMService (or useful equivalent), if I were you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 15:35:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expire-web-content/m-p/229030#M182160</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2009-08-13T15:35:04Z</dc:date>
    </item>
  </channel>
</rss>

