Class RegistrationPresenceInheritanceBatchJob

java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.optional.reservation.impl.batch.RegistrationPresenceInheritanceBatchJob
All Implemented Interfaces:
org.quartz.Job

@DisallowConcurrentExecution public class RegistrationPresenceInheritanceBatchJob extends AbstractJob
This batchjob is used to update all "total presence rates", "total hours actual" and "total hours desired" on registrations of events which have a related module (also an Event). These values are calculated out of: - all registrations of the event itself - the registrations of the sub events (modules) - all registrations of relParallel_event - the registrations of the sub events (modules) of relParallel_event - the parallel event of the parallel event are ignored This is done recursively.

hours_total_actual = sum of all duration_hour_actual of the registrations hours_total_desired = sum of all duration_hour_total of the registrations presence_rate_total = (hours_total_actual/hours_total_desired)*100

  • Constructor Details

  • Method Details

    • setRegistrationPresenceInheritanceFields

      @Autowired(required=false) public void setRegistrationPresenceInheritanceFields(List<RegistrationPresenceInheritanceFieldContribution> registrationPresenceInheritanceFields)
    • doExecute

      protected void doExecute(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader)
      Specified by:
      doExecute in class AbstractJob
    • setSwitchParallelEventRelation

      @Value("${feature.registrationPresenceInheritance.switchParallelEventRelation}") public void setSwitchParallelEventRelation(boolean switchParallelEventRelation)