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 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:
      configureTasks in interface org.springframework.scheduling.annotation.SchedulingConfigurer