Class RecycleBinPurgeTask
java.lang.Object
org.exoplatform.documents.service.RecycleBinPurgeTask
- All Implemented Interfaces:
org.springframework.scheduling.annotation.SchedulingConfigurer
@Configuration
@EnableScheduling
public class RecycleBinPurgeTask
extends Object
implements org.springframework.scheduling.annotation.SchedulingConfigurer
Starts the daily run of the Recycle Bins when its hour comes. It decides
nothing: what the run does is
RecycleBinService.purgeExpired().-
Constructor Summary
ConstructorsConstructorDescriptionRecycleBinPurgeTask(org.exoplatform.documents.service.RecycleBinService recycleBinService, String configuredCron) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar)
-
Constructor Details
-
RecycleBinPurgeTask
public RecycleBinPurgeTask(org.exoplatform.documents.service.RecycleBinService recycleBinService, @Value("${documents.recycleBin.purge.cron:}") String configuredCron)
-
-
Method Details
-
configureTasks
public void configureTasks(org.springframework.scheduling.config.ScheduledTaskRegistrar taskRegistrar) - Specified by:
configureTasksin interfaceorg.springframework.scheduling.annotation.SchedulingConfigurer
-