Class ExportActionResource
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.action.export.ExportActionResource
- All Implemented Interfaces:
RestResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
AbstractActionResource.AbstractActionJob, AbstractActionResource.AbstractInterruptableActionJob, AbstractActionResource.ActionResultBean, AbstractActionResource.ActionResultBeanBuilder, AbstractActionResource.ActionResultFlags, AbstractActionResource.GetFormEntityTaskNested 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, taskSchedulingServiceFields inherited from class ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
businessUnitManager, context, defaultDisplayService, defaultValueService, formBeanService, initialFormEntityName, initialFormName, l10n, log, requiresFormEntity, securityManager, textResourcesFields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionExportActionResource(ExportHelperService exportHelperService, DataModel dataModel, PersistenceService persistenceService, OrderingParser orderingParser) -
Method Summary
Modifier and TypeMethodDescriptionprotected TextMessagename of the action displayed in the notification center if no specific text is setprotected AbstractActionResource.ActionResultBeandoPerformAction(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) protected CallableTypeper 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.loadFormData(EntitySelectionBean selection) Methods inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
doValidate, getCurrentUsername, getFormEntity, getParentEntity, getTaskData, performAction, recoveryEnabled, setCommandExecutor, setEntityBeanRebinder, setNotificationService, setTaskContextBuilder, setTaskSchedulingService, taskCancelledMessage, taskFailedMessage, taskFailedTitle, taskFinishedMessage, taskSchedulingMessage, taskStartedMessage, validate, verifyFormEntityBeanMethods inherited from class ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
getInitialFormValueResponseBean, getSelectedEntities, getSelectedEntity, loadInitialForm, preAction, setBusinessUnitManager, setContext, setDefaultDisplayService, setDefaultValueService, setFormBeanService, setL10n, setLog, setSecurityManager, setSelectionService, setTextResourcesMethods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
ExportActionResource
public ExportActionResource(ExportHelperService exportHelperService, DataModel dataModel, PersistenceService persistenceService, OrderingParser orderingParser)
-
-
Method Details
-
loadFormData
@POST @Path("/formData") @Consumes("application/json") @Produces("application/json") public ExportActionResource.ExportFormData loadFormData(EntitySelectionBean selection) -
loadAdditionalPaths
@POST @Path("/templatePaths") @Consumes("application/json") @Produces("application/json") public ExportActionResource.TemplatePaths loadAdditionalPaths(ExportActionResource.TemplateValue value) -
getCallableType
Description copied from class:AbstractActionResourceper default the callable type (persisted as Task_execution) is DATA_PROCESSING. however for some action a more specific type can be set- Overrides:
getCallableTypein classAbstractActionResource
-
actionName
Description copied from class:AbstractActionResourcename of the action displayed in the notification center if no specific text is set- Specified by:
actionNamein classAbstractActionResource
-
getJobClass
Description copied from class:AbstractActionResourceeach 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:
getJobClassin classAbstractActionResource
-
doPerformAction
protected AbstractActionResource.ActionResultBean doPerformAction(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) - Specified by:
doPerformActionin classAbstractActionResource
-