Commit 3b87ba92b5e063f8e58dcb979964c305f047f88e

Authored by Steven Glover
1 parent d9814fcb5c
Exists in master

Add comments to alfresco-global.properties. Rename daysToKeep property to keepPeriod.

src/main/config/alfresco/module/alfresco-trashcan-cleaner/alfresco-global.properties
  1 +# cron schedule for the Trashcan Cleaner job
1 2 trashcan.cron=0 30 * * * ?
2 3  
3   -trashcan.daysToKeep=P1D
  4 +# the period for which trashcan items are kept (in java.time.Duration format)
  5 +trashcan.keepPeriod=P1D
4 6  
  7 +# how many trashcan items to delete per job run
5 8 trashcan.deleteBatchCount=1000
... ...
src/main/config/alfresco/module/alfresco-trashcan-cleaner/context/service-context.xml
... ... @@ -6,7 +6,7 @@
6 6 <constructor-arg ref="nodeService" />
7 7 <constructor-arg ref="transactionService" />
8 8 <constructor-arg value="${trashcan.deleteBatchCount}" />
9   - <constructor-arg value="${trashcan.daysToKeep}" />
  9 + <constructor-arg value="${trashcan.keepPeriod}" />
10 10 </bean>
11 11  
12 12 <bean id="trashcanCleanerJob" class="org.alfresco.util.CronTriggerBean">
... ...
src/main/java/org/alfresco/trashcan/TrashcanCleaner.java
... ... @@ -78,7 +78,6 @@ public class TrashcanCleaner
78 78  
79 79 /**
80 80 *
81   - *
82 81 * @param nodeService
83 82 * @param transactionService
84 83 * @param deleteBatchCount
... ...