Class AbstractInvoiceActionResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.action.spi.AbstractActionResource
ch.tocco.nice2.optional.order.spi.action.invoice.resource.AbstractInvoiceActionResource
- All Implemented Interfaces:
RestResource
- Direct Known Subclasses:
AccrualInvoiceActionResource
,DefaultInvoiceActionResource
,DirectInvoiceActionResource
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
AbstractActionResource.AbstractActionJob, AbstractActionResource.AbstractInterruptableActionJob, AbstractActionResource.ActionMessageConfig, AbstractActionResource.ActionResultBean, AbstractActionResource.ActionResultBeanBuilder, AbstractActionResource.ActionResultFlags, AbstractActionResource.GetFormEntityTask, AbstractActionResource.SelectionType
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
businessUnitManager, commandExecutor, context, defaultDisplayService, defaultValueService, entityBeanRebinder, formBeanService, l10n, log, notificationService, securityManager, taskSchedulingService, textResources
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractInvoiceActionResource
(OrderGeneratorService orderGeneratorService, QueryBuilderFactory queryBuilderFactory, String initialFormEntityName) -
Method Summary
Modifier and TypeMethodDescriptionprotected TextMessage
name of the action displayed in the notification center if no specific text is setprotected Optional
<PreCheckResponseBean> checkRoleAccess
(EntitySelectionBean selection) protected PreCheckResponseBean
createBillingPositionPreCheckBean
(List<Entity> entities) protected PreCheckResponseBean
createPriceCategoryPreCheckBean
(List<Entity> entities) protected PreCheckResponseBean
createRecipientPreCheckBean
(List<Entity> entities) protected AbstractActionResource.ActionResultBean
doPerformAction
(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) protected Optional
<PreCheckResponseBean> executeCheckTask
(EntitySelectionBean selection, String taskName, Function<List<Entity>, PreCheckResponseBean> preCheckMapper) protected Stream
<Supplier<Optional<PreCheckResponseBean>>> getChecks
(ActionResourceBean actionResourceBean) getEntityToCheck
(Entity entity) protected abstract Class
<? extends AbstractJob> getOrderGeneratorClass
(ActionDataBean actionDataBean) protected abstract JobDataMapBuilder
getOrderJobDataMapBuilder
(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean) protected void
invokeTask
(Class<? extends AbstractJob> jobClass, JobDataMapBuilder jobData) preAction
(ActionResourceBean actionResourceBean) is ran before the actual logic and can be used to run checks or return a form that needs to be filled before executionMethods inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
formEntityMissing, getCallableType, getCurrentUsername, getInitialFormValueResponseBean, getJobClass, getParentEntity, getSelectedEntities, getSelectedEntity, getTaskData, ignoreMissingEntities, loadInitialForm, performAction, recoveryEnabled, setBusinessUnitManager, setCommandExecutor, setContext, setDefaultDisplayService, setDefaultValueService, setEntityBeanRebinder, setFormBeanService, setL10n, setLog, setNotificationService, setSecurityManager, setSelectionService, setTaskSchedulingService, setTextResources, taskCancelledMessage, taskFailedMessage, taskFailedTitle, taskFinishedMessage, taskSchedulingMessage, taskStartedMessage, verifyFormEntityBean
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Field Details
-
CREATE_INVOICE_TASK_NAME
- See Also:
-
-
Constructor Details
-
AbstractInvoiceActionResource
protected AbstractInvoiceActionResource(OrderGeneratorService orderGeneratorService, QueryBuilderFactory queryBuilderFactory, String initialFormEntityName)
-
-
Method Details
-
preAction
Description copied from class:AbstractActionResource
is ran before the actual logic and can be used to run checks or return a form that needs to be filled before execution- Overrides:
preAction
in classAbstractActionResource
-
doPerformAction
protected AbstractActionResource.ActionResultBean doPerformAction(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) - Specified by:
doPerformAction
in classAbstractActionResource
-
actionName
Description copied from class:AbstractActionResource
name of the action displayed in the notification center if no specific text is set- Specified by:
actionName
in classAbstractActionResource
-
getOrderGeneratorClass
protected abstract Class<? extends AbstractJob> getOrderGeneratorClass(ActionDataBean actionDataBean) -
getOrderJobDataMapBuilder
protected abstract JobDataMapBuilder getOrderJobDataMapBuilder(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean) -
getChecks
protected Stream<Supplier<Optional<PreCheckResponseBean>>> getChecks(ActionResourceBean actionResourceBean) -
invokeTask
-
getEntityToCheck
-
checkRoleAccess
-
executeCheckTask
protected Optional<PreCheckResponseBean> executeCheckTask(EntitySelectionBean selection, String taskName, Function<List<Entity>, PreCheckResponseBean> preCheckMapper) -
createRecipientPreCheckBean
-
createPriceCategoryPreCheckBean
-
createBillingPositionPreCheckBean
-