Commit fc8826c1aa07809d4d3f2873d6f01d8365ef5a88

Authored by Google Code Exporter
0 parents
Exists in wiki

Migrating wiki contents from Google Code

Showing 1 changed file with 24 additions and 0 deletions   Show diff stats
... ... @@ -0,0 +1,24 @@
  1 +This library adds a scheduled job that will empty your Alfresco trashcan according to configuration. It receives as parameters (configured on alfresco-global.properties):
  2 +
  3 +`trashcan.cron=0 30 * * * ?`
  4 +
  5 +`trashcan.daysToKeep=1`
  6 +
  7 +`trashcan.deleteBatchCount=1000`
  8 +
  9 +In the above configuration the scheduled process will clean all deleted items older than one day to a maximum of 1000 (each execution) each hour at the middle of the hour (30 minutes). In case you wish to delete all items (to the max number set) irrespective of the archived date just set trashcan.daysToKeep to -1.
  10 +
  11 +The major differences with existing addon (http://addons.alfresco.com/addons/trashcan-cleaner) is the fact this job is not based on search engine and the scheduled job is cluster aware (uses the Alfresco [org.alfresco.schedule.ScheduledJobLockExecuter](https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/schedule/ScheduledJobLockExecuter.java)).
  12 +
  13 +This has been tested for:
  14 +
  15 +- Alfresco Enterprise 4.1.1.3 (use version https://code.google.com/p/alfresco-trashcan-cleaner/source/browse/?name=1.2.0)
  16 +
  17 +- Alfresco Community 4.2.e (use version - https://code.google.com/p/alfresco-trashcan-cleaner/source/browse/?name=v2.0.0) - only unit tests
  18 +
  19 +- Alfresco Enterprise 4.2.0 (last version - https://code.google.com/p/alfresco-trashcan-cleaner/source/browse/?name=v2.1.0) - only unit tests
  20 +
  21 +If you want to add log related to this job, just add to log4j.properties:
  22 +
  23 +`log4j.logger.org.alfresco.trashcan=debug`
  24 +
... ...