Class AbstractInvoiceActionService
java.lang.Object
ch.tocco.nice2.optional.order.impl.action.invoice.AbstractInvoiceActionService
- All Implemented Interfaces:
InvoiceActionServiceBase
- Direct Known Subclasses:
BillingPositionInvoiceActionServiceImpl
,DefaultInvoiceActionServiceImpl
,DirectInvoiceActionServiceImpl
public abstract class AbstractInvoiceActionService
extends Object
implements InvoiceActionServiceBase
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BusinessUnitManager
static final String
protected final OrderGeneratorService
protected static final String
protected final SecurityManager
protected final EntityExplorerActionSelectionService
protected final TaskSchedulingService
Fields inherited from interface ch.tocco.nice2.optional.order.api.action.invoice.InvoiceActionServiceBase
FIELD_SETTINGS_MERGE_ORDER_POSITIONS, FIELD_SETTINGS_MERGE_ORDERS
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractInvoiceActionService
(BusinessUnitManager businessUnitManager, SecurityManager securityManager, OrderGeneratorService orderGeneratorService, EntityExplorerActionSelectionService selectionService, TaskSchedulingService taskSchedulingService) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable String
@Nullable String
void
checkSelectionSize
(EntityExplorerActionSelection selection) protected @Nullable String
executeCheckTask
(EntityExplorerActionSelection selection, String taskName) getDefaultLanguage
(EntityExplorerActionSelection selection) getEntitiesToCheck
(EntityExplorerActionSelection selection) protected void
invokeTask
(Class<? extends InvokeOrderGeneratorTask> jobClass, JobDataMapBuilder jobData) void
setMaxTxSize
(int maxTxSize)
-
Field Details
-
CREATE_INVOICE_TASK_NAME
- See Also:
-
RELATION_BILLING_POSITION
- See Also:
-
businessUnitManager
-
securityManager
-
orderGeneratorService
-
selectionService
-
taskSchedulingService
-
-
Constructor Details
-
AbstractInvoiceActionService
protected AbstractInvoiceActionService(BusinessUnitManager businessUnitManager, SecurityManager securityManager, OrderGeneratorService orderGeneratorService, EntityExplorerActionSelectionService selectionService, TaskSchedulingService taskSchedulingService)
-
-
Method Details
-
setMaxTxSize
@Value("${nice2.optional.order.invoiceMaxTxSize}") public void setMaxTxSize(int maxTxSize) -
checkSelectionSize
- Specified by:
checkSelectionSize
in interfaceInvoiceActionServiceBase
-
checkInvoiceRecipients
- Specified by:
checkInvoiceRecipients
in interfaceInvoiceActionServiceBase
-
checkPriceCategories
- Specified by:
checkPriceCategories
in interfaceInvoiceActionServiceBase
-
checkBillingPositions
- Specified by:
checkBillingPositions
in interfaceInvoiceActionServiceBase
-
getDefaultLanguage
- Specified by:
getDefaultLanguage
in interfaceInvoiceActionServiceBase
-
executeCheckTask
@Nullable protected @Nullable String executeCheckTask(EntityExplorerActionSelection selection, String taskName) -
getEntitiesToCheck
protected com.google.common.collect.Multimap<String,Entity> getEntitiesToCheck(EntityExplorerActionSelection selection) -
invokeTask
protected void invokeTask(Class<? extends InvokeOrderGeneratorTask> jobClass, JobDataMapBuilder jobData)
-