Package ch.tocco.nice2.tasks.impl.batch
Class DeleteOldTaskExecutionBatchJob
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
ch.tocco.nice2.tasks.impl.batch.DeleteOldTaskExecutionBatchJob
- All Implemented Interfaces:
org.quartz.InterruptableJob
,org.quartz.Job
@DisallowConcurrentExecution
public class DeleteOldTaskExecutionBatchJob
extends AbstractInterruptableJob
remove activities if start_date is older than specified duration
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager
-
Constructor Summary
ConstructorDescriptionDeleteOldTaskExecutionBatchJob
(Context ctx, QueryBuilderFactory queryBuilderFactory, CascadingDeleteService cascadingDeleteService, CommandExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) void
setDaysToDeleteOldActivity
(int daysToDeleteOldActivity) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.quartz.Job
execute
-
Constructor Details
-
DeleteOldTaskExecutionBatchJob
public DeleteOldTaskExecutionBatchJob(Context ctx, QueryBuilderFactory queryBuilderFactory, CascadingDeleteService cascadingDeleteService, CommandExecutor executor)
-
-
Method Details
-
doExecute
- Specified by:
doExecute
in classAbstractJob
-
setDaysToDeleteOldActivity
public void setDaysToDeleteOldActivity(int daysToDeleteOldActivity)
-