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
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager
-
Constructor Summary
ConstructorDescriptionRegistrationPresenceInheritanceBatchJob
(Context ctx, DataModel dataModel, PersistenceService persistenceService, CommandExecutor commandExecutor, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) void
setRegistrationPresenceInheritanceFields
(List<RegistrationPresenceInheritanceFieldContribution> registrationPresenceInheritanceFields) void
setSwitchParallelEventRelation
(boolean switchParallelEventRelation) Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManager
-
Constructor Details
-
RegistrationPresenceInheritanceBatchJob
public RegistrationPresenceInheritanceBatchJob(Context ctx, DataModel dataModel, PersistenceService persistenceService, CommandExecutor commandExecutor, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
setRegistrationPresenceInheritanceFields
@Autowired(required=false) public void setRegistrationPresenceInheritanceFields(List<RegistrationPresenceInheritanceFieldContribution> registrationPresenceInheritanceFields) -
doExecute
- Specified by:
doExecute
in classAbstractJob
-
setSwitchParallelEventRelation
@Value("${feature.registrationPresenceInheritance.switchParallelEventRelation}") public void setSwitchParallelEventRelation(boolean switchParallelEventRelation)
-