Class DirectInvoiceActionResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
ch.tocco.nice2.rest.action.spi.AbstractActionResource
ch.tocco.nice2.optional.order.spi.action.invoice.resource.AbstractInvoiceActionResource
ch.tocco.nice2.optional.order.impl.action.invoice.resource.DirectInvoiceActionResource
- All Implemented Interfaces:
RestResource
@Path("/order/actions/directInvoice")
public class DirectInvoiceActionResource
extends AbstractInvoiceActionResource
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
AbstractActionResource.AbstractActionJob, AbstractActionResource.AbstractInterruptableActionJob, AbstractActionResource.ActionResultBean, AbstractActionResource.ActionResultBeanBuilder, AbstractActionResource.ActionResultFlags, AbstractActionResource.GetFormEntityTask
Nested classes/interfaces inherited from class ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
AbstractPreActionResource.SelectionType
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.order.spi.action.invoice.resource.AbstractInvoiceActionResource
CREATE_INVOICE_TASK_NAME
Fields inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
commandExecutor, entityBeanRebinder, notificationService, taskSchedulingService
Fields inherited from class ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
businessUnitManager, context, defaultDisplayService, defaultValueService, formBeanService, initialFormEntityName, initialFormName, l10n, log, requiresFormEntity, securityManager, textResources
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ModifierConstructorDescriptionprotected
DirectInvoiceActionResource
(OrderGeneratorService orderGeneratorService, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stream
<Supplier<Optional<PreCheckResponseBean>>> getChecks
(ActionResourceBean actionResourceBean) protected Class
<? extends AbstractJob> each action resource needs an empty job class as inner class which either implements AbstractActionJob or AbstractInterruptableActionJob.protected Class
<? extends AbstractJob> getOrderGeneratorClass
(ActionDataBean actionDataBean) protected JobDataMapBuilder
getOrderJobDataMapBuilder
(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean) Methods inherited from class ch.tocco.nice2.optional.order.spi.action.invoice.resource.AbstractInvoiceActionResource
actionName, checkRoleAccess, createBillingPositionPreCheckBean, createPriceCategoryPreCheckBean, createRecipientPreCheckBean, doPerformAction, executeCheckTask, getEntityToCheck, invokeTask, preAction
Methods inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
doValidate, getCallableType, getCurrentUsername, getFormEntity, getParentEntity, getTaskData, performAction, recoveryEnabled, setCommandExecutor, setEntityBeanRebinder, setNotificationService, setTaskContextBuilder, setTaskSchedulingService, taskCancelledMessage, taskFailedMessage, taskFailedTitle, taskFinishedMessage, taskSchedulingMessage, taskStartedMessage, validate, verifyFormEntityBean
Methods inherited from class ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
getInitialFormValueResponseBean, getSelectedEntities, getSelectedEntity, loadInitialForm, setBusinessUnitManager, setContext, setDefaultDisplayService, setDefaultValueService, setFormBeanService, setL10n, setLog, setSecurityManager, setSelectionService, setTextResources
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
DirectInvoiceActionResource
protected DirectInvoiceActionResource(OrderGeneratorService orderGeneratorService, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
getJobClass
Description copied from class:AbstractActionResource
each action resource needs an empty job class as inner class which either implements AbstractActionJob or AbstractInterruptableActionJob. the class is needed to run the job in the task scheduler. if AbstractInterruptableActionJob is used the doPerformAction must implement a cancellation handling- Specified by:
getJobClass
in classAbstractActionResource
-
getOrderGeneratorClass
- Specified by:
getOrderGeneratorClass
in classAbstractInvoiceActionResource
-
getOrderJobDataMapBuilder
protected JobDataMapBuilder getOrderJobDataMapBuilder(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean) - Specified by:
getOrderJobDataMapBuilder
in classAbstractInvoiceActionResource
-
getChecks
protected Stream<Supplier<Optional<PreCheckResponseBean>>> getChecks(ActionResourceBean actionResourceBean) - Overrides:
getChecks
in classAbstractInvoiceActionResource
-