Class ProgramAutoDisableJob

java.lang.Object
io.meeds.gamification.scheduled.ProgramAutoDisableJob
All Implemented Interfaces:
org.quartz.Job

@DisallowConcurrentExecution public class ProgramAutoDisableJob extends Object implements org.quartz.Job
Disables automatically Programs without active rules. This should be executed each midnight to check on programs with outdated rules.
  • Constructor Details

    • ProgramAutoDisableJob

      public ProgramAutoDisableJob()
  • Method Details

    • execute

      public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      execute in interface org.quartz.Job
      Throws:
      org.quartz.JobExecutionException
    • checkAndChangeProgramStatus

      public void checkAndChangeProgramStatus(long programId)