Class BulkDeletionJob
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.entityoperation.impl.bulkdeletion.BulkDeletionJob
- All Implemented Interfaces:
org.quartz.Job
Deletes a Bulk_deletion using the cascadingDeleteService and tracks the status on the corresponding Bulk_deletion
and Deletion entities. If single Deletions can not be processed (e.g. there are dependencies that can not be
cascading deleted) the Deletion_status of this Deletion will be set to "failed". All other Deletions will still
be processed. This is achieved by creating a new Context for each Deletion.
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager
-
Constructor Summary
ConstructorDescriptionBulkDeletionJob
(Context ctx, QueryBuilderFactory queryBuilderFactory, ContextManager contextManager, CascadingDeleteService cascadingDeleteService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManager
-
Constructor Details
-
BulkDeletionJob
public BulkDeletionJob(Context ctx, QueryBuilderFactory queryBuilderFactory, ContextManager contextManager, CascadingDeleteService cascadingDeleteService)
-
-
Method Details
-
doExecute
- Specified by:
doExecute
in classAbstractJob
-