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, validationResultPrinterFields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager -
Constructor Summary
ConstructorsConstructorDescriptionDirectInvokeOrderGeneratorTask(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 voidnewContextEnded(Context context) Hook for subclasses to perform cleanup before a context is closed.protected voidnewContextStarted(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, getSourceEntitiesMethods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
interrupt, isCancelledMethods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:InvokeOrderGeneratorTaskThe selected entities for which the action should be performed.- Specified by:
getSourceEntitiesin classInvokeOrderGeneratorTask
-
getBillingPositions
Description copied from class:InvokeOrderGeneratorTaskReturns all billing positions for a given source entity.- Specified by:
getBillingPositionsin classInvokeOrderGeneratorTask
-
newContextStarted
Description copied from class:InvokeOrderGeneratorTaskHook for subclasses to perform initialization for a new context.- Overrides:
newContextStartedin classInvokeOrderGeneratorTask- Throws:
Exception
-
newContextEnded
Description copied from class:InvokeOrderGeneratorTaskHook for subclasses to perform cleanup before a context is closed.- Overrides:
newContextEndedin classInvokeOrderGeneratorTask- Throws:
Exception
-