Class ExamEditResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.action.spi.AbstractPreActionResource
ch.tocco.nice2.optional.qualification.impl.resources.ExamEditResource
- All Implemented Interfaces:
RestResource
@Path("/qualification/actions/examEdit")
public class ExamEditResource
extends AbstractPreActionResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
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
ConstructorDescriptionExamEditResource
(QualificationBeanFactory qualificationBeanFactory, ExamService examService, ClientQuestionService clientQuestionService, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionloadData
(EntitySelectionBean selectionBean) 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 executionjakarta.ws.rs.core.Response
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
-
ExamEditResource
public ExamEditResource(QualificationBeanFactory qualificationBeanFactory, ExamService examService, ClientQuestionService clientQuestionService, QueryBuilderFactory queryBuilderFactory)
-
-
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
-
loadData
@Path("/load") @POST @Consumes("application/json") @Produces("application/json") public ExamEditResource.ExamEditData loadData(EntitySelectionBean selectionBean) -
saveData
@Path("/save") @POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response saveData(ExamEditResource.ExamEditSaveRequest request)
-