Class InputEditResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
ch.tocco.nice2.optional.qualification.impl.resources.inputedit.InputEditResource
- All Implemented Interfaces:
RestResource
Resource is available for all logins since InputEdit can be used as a widget. Only updateData runs some code
privileged, but the actual loading of entities still runs secured.
when you touch this class, check if it might be easier to merge it InputQualificationResource
instead of changing it
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static final record
static final record
static class
static class
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.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
ConstructorDescriptionInputEditResource
(QualificationBeanFactory qualificationBeanFactory, RestSearchService restSearchService, QualificationService qualificationService, InputEditValidationService inputEditValidationService) -
Method Summary
Modifier and TypeMethodDescriptionloadForm
(EntitySelectionBean selection) loadInformation
(EntitySelectionBean selection) TODO move this into a form as soon as comfortably doable in clientpreAction
(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 executionvoid
setReadonlyActions
(List<String> readonlyActions) void
updateInputDatas
(EntitySelectionBean selection) 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
-
Field Details
-
EXAM_EDITOR_ACTION_ID
- See Also:
-
-
Constructor Details
-
InputEditResource
public InputEditResource(QualificationBeanFactory qualificationBeanFactory, RestSearchService restSearchService, QualificationService qualificationService, InputEditValidationService inputEditValidationService)
-
-
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
-
updateInputDatas
@POST @Path("/update-input-datas") @Consumes("application/json") public void updateInputDatas(EntitySelectionBean selection) -
loadForm
@POST @Path("/form") @Produces("application/json") @Consumes("application/json") public InputEditResource.InputEditFormDefinition loadForm(EntitySelectionBean selection) -
searchData
@POST @Path("/data/search") @Produces("application/json") @Consumes("application/json") public InputEditResource.InputEditData searchData(InputEditResource.InputEditSearchBean bean) -
updateData
@POST @Path("/data") @Produces("application/json") @Consumes("application/json") public InputEditResource.InputEditChangeResponse updateData(InputEditResource.InputEditValue data) -
loadInformation
@POST @Path("/information") @Produces("application/json") @Consumes("application/json") public List<InputEditResource.InputEditInformation> loadInformation(EntitySelectionBean selection) TODO move this into a form as soon as comfortably doable in client -
setReadonlyActions
-