Commit bb1a576442830e85ec7f28d09d455d74c4c29220

Authored by rjmfernandes
1 parent dccc62ede0
Exists in master

Create README.md

Showing 1 changed file with 28 additions and 0 deletions   Show diff stats
... ... @@ -0,0 +1,28 @@
  1 +This library adds a scheduled job that will empty your Alfresco trashcan according to configuration.
  2 +It receives as parameters (configured on alfresco-global.properties):
  3 +
  4 +trashcan.cron=0 30 * * * ?
  5 +
  6 +trashcan.daysToKeep=1
  7 +
  8 +trashcan.deleteBatchCount=1000
  9 +
  10 +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).
  11 +In case you wish to delete all items (to the max number set) irrespective of the archived date just set trashcan.daysToKeep to -1.
  12 +
  13 +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).
  14 +
  15 +This has been tested for:
  16 +
  17 +- Alfresco Enterprise 4.1.1.3 (use version https://code.google.com/p/alfresco-trashcan-cleaner/source/browse/?name=1.2.0)
  18 +
  19 +- Alfresco Community 4.2.e (use version - https://code.google.com/p/alfresco-trashcan-cleaner/source/browse/?name=v2.0.0) - only unit tests
  20 +
  21 +- Alfresco Enterprise 4.2.0 (last version - https://code.google.com/p/alfresco-trashcan-cleaner/source/browse/?name=v2.1.0) - only unit tests
  22 +
  23 +If you want to add log related to this job, just add to log4j.properties:
  24 +
  25 +log4j.logger.org.alfresco.trashcan=debug
  26 +
  27 +This new version takes into account the new way Alfresco 4.2 trashes content keeping a secondary parent reference inside trashcan to the original owner (those references dont have an archive date associated with it what caused an error when trying past versions of the cleaner with 4.2 ).
  28 +The new trashcan cleaner does not try to delete those references.
... ...