Class ReportGenerationResource
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.reporting.impl.rest.ReportGenerationResource
- All Implemented Interfaces:
RestResource
-
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.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
ConstructorDescriptionReportGenerationResource
(ReportGenerationService reportGenerationService, OrderingParser orderingParser) -
Method Summary
Modifier and TypeMethodDescriptionprotected TextMessage
name of the action displayed in the notification center if no specific text is setprotected AbstractActionResource.ActionResultBean
doPerformAction
(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) protected CallableType
per default the callable type (persisted as Task_execution) is DATA_PROCESSING.protected Class
<? extends AbstractJob> each action resource needs an empty job class as inner class which either implements AbstractActionJob or AbstractInterruptableActionJob.performAction
(ActionResourceBean actionResourceBean) 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 executionprotected boolean
Override to disable recovery for a particular action resource.void
setReportSettingsEntities
(List<ReportSettingsEntityContribution> contributions) protected TextMessage
protected TextMessage
protected TextMessage
protected TextMessage
protected TextMessage
protected boolean
verifyFormEntityBean
(EntityBean formEntityBean) Methods inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
doValidate, getCurrentUsername, getFormEntity, getParentEntity, getTaskData, setCommandExecutor, setEntityBeanRebinder, setNotificationService, setTaskContextBuilder, setTaskSchedulingService, taskCancelledMessage, validate
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
-
ReportGenerationResource
public ReportGenerationResource(ReportGenerationService reportGenerationService, OrderingParser orderingParser)
-
-
Method Details
-
preAction
Description copied from class:AbstractPreActionResource
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 classAbstractPreActionResource
-
performAction
- Overrides:
performAction
in classAbstractActionResource
-
doPerformAction
protected AbstractActionResource.ActionResultBean doPerformAction(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) - Specified by:
doPerformAction
in classAbstractActionResource
-
getCallableType
Description copied from class:AbstractActionResource
per default the callable type (persisted as Task_execution) is DATA_PROCESSING. however for some action a more specific type can be set- Overrides:
getCallableType
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
-
taskSchedulingMessage
- Overrides:
taskSchedulingMessage
in classAbstractActionResource
-
taskStartedMessage
- Overrides:
taskStartedMessage
in classAbstractActionResource
-
taskFinishedMessage
- Overrides:
taskFinishedMessage
in classAbstractActionResource
-
taskFailedMessage
- Overrides:
taskFailedMessage
in classAbstractActionResource
-
taskFailedTitle
- Overrides:
taskFailedTitle
in classAbstractActionResource
-
verifyFormEntityBean
- Overrides:
verifyFormEntityBean
in classAbstractActionResource
-
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
-
recoveryEnabled
protected boolean recoveryEnabled()Description copied from class:AbstractActionResource
Override to disable recovery for a particular action resource.- Overrides:
recoveryEnabled
in classAbstractActionResource
- Returns:
- true if the job should be recovered after Nice restart, else false (default: true)
-
setReportSettingsEntities
@Autowired public void setReportSettingsEntities(List<ReportSettingsEntityContribution> contributions)
-