Class DirectInvoiceActionServiceImpl.DirectInvokeOrderGeneratorTask
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
ch.tocco.nice2.optional.order.api.action.invoice.tasks.InvokeOrderGeneratorTask
ch.tocco.nice2.optional.order.impl.action.invoice.DirectInvoiceActionServiceImpl.DirectInvokeOrderGeneratorTask
- All Implemented Interfaces:
org.quartz.InterruptableJob
,org.quartz.Job
- Direct Known Subclasses:
DirectInvoiceGeneratorJob
- Enclosing class:
DirectInvoiceActionServiceImpl
public static class DirectInvoiceActionServiceImpl.DirectInvokeOrderGeneratorTask
extends InvokeOrderGeneratorTask
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.optional.order.api.action.invoice.tasks.InvokeOrderGeneratorTask
InvokeOrderGeneratorTask.Recipient
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.order.api.action.invoice.tasks.InvokeOrderGeneratorTask
commandExecutor, contextManager, dataModel, orderGeneratorService, queryBuilderFactory, rebindService, selectionService, textResources, validationResultPrinter
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager
-
Constructor Summary
ConstructorDescriptionDirectInvokeOrderGeneratorTask
(ContextManager contextManager, RebindService rebindService, OrderGeneratorService orderGeneratorService, TextResources textResources, ValidationResultPrinter validationResultPrinter, CommandExecutor commandExecutor, DataModel dataModel, EntityExplorerActionSelectionService selectionService, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetBillingPositions
(Entity source) Returns all billing positions for a given source entity.protected List
<PrimaryKeyList> getSourceEntities
(EntityList selection, int maxTxSize) The selected entities for which the action should be performed.protected void
newContextEnded
(Context context) Hook for subclasses to perform cleanup before a context is closed.protected void
newContextStarted
(Context context, JobDataMapReader jobData) Hook for subclasses to perform initialization for a new context.Methods inherited from class ch.tocco.nice2.optional.order.api.action.invoice.tasks.InvokeOrderGeneratorTask
createOrderGeneratorBeans, doExecute, generateOrders, getSourceEntities
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
-
DirectInvokeOrderGeneratorTask
public DirectInvokeOrderGeneratorTask(ContextManager contextManager, RebindService rebindService, OrderGeneratorService orderGeneratorService, TextResources textResources, ValidationResultPrinter validationResultPrinter, CommandExecutor commandExecutor, DataModel dataModel, EntityExplorerActionSelectionService selectionService, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getSourceEntities
Description copied from class:InvokeOrderGeneratorTask
The selected entities for which the action should be performed.- Specified by:
getSourceEntities
in classInvokeOrderGeneratorTask
-
getBillingPositions
Description copied from class:InvokeOrderGeneratorTask
Returns all billing positions for a given source entity.- Specified by:
getBillingPositions
in classInvokeOrderGeneratorTask
-
newContextStarted
Description copied from class:InvokeOrderGeneratorTask
Hook for subclasses to perform initialization for a new context.- Overrides:
newContextStarted
in classInvokeOrderGeneratorTask
- Throws:
Exception
-
newContextEnded
Description copied from class:InvokeOrderGeneratorTask
Hook for subclasses to perform cleanup before a context is closed.- Overrides:
newContextEnded
in classInvokeOrderGeneratorTask
- Throws:
Exception
-