Class BirthdayCongratulateBatchJob
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
ch.tocco.nice2.optional.address.impl.batch.BirthdayCongratulateBatchJob
- All Implemented Interfaces:
org.quartz.InterruptableJob
,org.quartz.Job
@DisallowConcurrentExecution
public class BirthdayCongratulateBatchJob
extends AbstractInterruptableJob
sends a mail to all users with birthday = today
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager
-
Constructor Summary
ConstructorsConstructorDescriptionBirthdayCongratulateBatchJob
(MailFactory emailFactory, EmailTemplateLoadService emailTemplateLoadService, CommandExecutor commandExecutor, TimezoneResolverService timezoneResolverService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) void
setIgnoreArchived
(boolean ignoreArchived) Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
interrupt, isCancelled
Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManager
-
Constructor Details
-
BirthdayCongratulateBatchJob
public BirthdayCongratulateBatchJob(MailFactory emailFactory, EmailTemplateLoadService emailTemplateLoadService, CommandExecutor commandExecutor, TimezoneResolverService timezoneResolverService)
-
-
Method Details
-
doExecute
- Specified by:
doExecute
in classAbstractJob
-
setIgnoreArchived
@Value("${address.birthdayCongratulateBatchJob.ignoreArchived}") public void setIgnoreArchived(boolean ignoreArchived)
-