<?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: Moving expired content to a separate folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267498#M220628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&amp;nbsp; Please refer to the wiki.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 May 2011 15:14:16 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2011-05-29T15:14:16Z</dc:date>
    <item>
      <title>Moving expired content to a separate folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267497#M220627</link>
      <description>Hi,I was looking at Content Expiry in Alfresco 3.4.What I want is, when content expires, the content should be moved to a predefined location(a folder). Now I looked at scheduled-jobs-context.xml for the bean avmExpiredContentTrigger that executes the java class 'org.alfresco.repo.avm.AVMExpiredCont</description>
      <pubDate>Mon, 23 May 2011 06:53:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267497#M220627</guid>
      <dc:creator>davix</dc:creator>
      <dc:date>2011-05-23T06:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Moving expired content to a separate folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267498#M220628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&amp;nbsp; Please refer to the wiki.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 15:14:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267498#M220628</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-05-29T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Moving expired content to a separate folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267499#M220629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, I found what I was looking for. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to move expired content to separate folder. So I wanted to modify org.alfresco.repo.avm.AVMExpiredContentProcessor.java. I see that there's a copy method in org.alfresco.service.cmr.avm.AVMServiceImpl.java . I tried using the method like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;String folderPath = nodePath.substring(0, nodePath.lastIndexOf("/")+1);&lt;BR /&gt;String destinationFolder = folderPath + "ExpiredContent";&lt;BR /&gt;AVMServiceImpl avmImpl = new AVMServiceImpl();&lt;BR /&gt;avmImpl.copy(node.getVersionID(), node.getPath(), destinationFolder, "ExpiredContent"); &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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I guess I'm not passing the parameters in the expected format because it doesn't seem to be working. Has anyone used this function to move content to another folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 11:45:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267499#M220629</guid>
      <dc:creator>davix</dc:creator>
      <dc:date>2011-06-01T11:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Moving expired content to a separate folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267500#M220630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You do not need to instantiate AVMServiceImpl. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, you can inject the avmService in your class and call the copy method of it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will work for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 06:01:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/moving-expired-content-to-a-separate-folder/m-p/267500#M220630</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2011-07-08T06:01:34Z</dc:date>
    </item>
  </channel>
</rss>

