资 源 简 介
This library adds a scheduled job that will empty your Alfresco trashcan according to configuration. It receives as parameters (configured on alfresco-global.properties):
trashcan.cron=0 30 * * * ?
trashcan.daysToKeep=1
trashcan.deleteBatchCount=1000
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.
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 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报