Class AbstractMarkingActionResource
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.marking.impl.action.AbstractMarkingActionResource
- All Implemented Interfaces:
RestResource
- Direct Known Subclasses:
MarkMultipleActionResource, UnmarkMultipleActionResource
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractActionResource
AbstractActionResource.AbstractActionJob, AbstractActionResource.AbstractInterruptableActionJob, AbstractActionResource.ActionResultBean, AbstractActionResource.ActionResultBeanBuilder, AbstractActionResource.ActionResultFlags, AbstractActionResource.GetFormEntityTaskNested classes/interfaces inherited from class AbstractPreActionResource
AbstractPreActionResource.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityMarkServiceprotected final PersistenceServiceFields inherited from class AbstractActionResource
commandExecutor, entityBeanRebinder, notificationService, taskSchedulingServiceFields inherited from class AbstractPreActionResource
businessUnitManager, context, defaultDisplayService, defaultValueService, formBeanService, initialFormEntityName, initialFormName, l10n, log, requiresFormEntity, securityManager, textResourcesFields inherited from class AbstractRestResource
uriInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMarkingActionResource(PersistenceService persistenceService, EntityMarkService markService) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractActionResource.ActionResultBeandoPerformAction(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) protected Class<? extends AbstractJob> each action resource needs an empty job class as inner class which either implements AbstractActionJob or AbstractInterruptableActionJob.protected abstract Consumer<EntityList> Methods inherited from class AbstractActionResource
actionName, doValidate, getCallableType, getCurrentUsername, getFormEntity, getParentEntity, getTaskData, performAction, recoveryEnabled, setCommandExecutor, setEntityBeanRebinder, setNotificationService, setTaskContextBuilder, setTaskSchedulingService, taskCancelledMessage, taskFailedMessage, taskFailedTitle, taskFinishedMessage, taskSchedulingMessage, taskStartedMessage, validate, verifyFormEntityBeanMethods inherited from class AbstractPreActionResource
getInitialFormValueResponseBean, getSelectedEntities, getSelectedEntity, loadInitialForm, preAction, setBusinessUnitManager, setContext, setDefaultDisplayService, setDefaultValueService, setFormBeanService, setL10n, setLog, setSecurityManager, setSelectionService, setTextResourcesMethods inherited from class AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Field Details
-
persistenceService
-
markService
-
-
Constructor Details
-
AbstractMarkingActionResource
protected AbstractMarkingActionResource(PersistenceService persistenceService, EntityMarkService markService)
-
-
Method Details
-
doPerformAction
protected AbstractActionResource.ActionResultBean doPerformAction(ActionDataBean actionDataBean, ActionResourceBean actionResourceBean, TaskContext taskContext) - Specified by:
doPerformActionin classAbstractActionResource
-
getMarkingConsumer
-
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
-