Class InputQualificationResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.qualification.impl.resources.api.InputQualificationResource
- All Implemented Interfaces:
RestResource
@Path("/qualification/input/{inputKey}")
public class InputQualificationResource
extends AbstractRestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionInputQualificationResource
(ResourceBeanService resourceBeanService, QualificationService qualificationService, QualificationBeanFactory beanFactory, PrincipalService principalService, ExamService examService, ThresholdValueService thresholdValueService) -
Method Summary
Modifier and TypeMethodDescriptionloadParticipant
(String inputKey, String participantKey) loadStructure
(String inputKey) writeExams
(String inputKey, List<ExamBean> beans) writeInput
(String inputKey, List<DataBean> beans) writeNodeInput
(String inputKey, String node, List<DataBean> beans) writeNodeParticipant
(String inputKey, String participantKey, String node, DataBean bean) writeParticipant
(String inputKey, String participantKey, List<DataBean> beans) writeThresholdValues
(String inputKey, List<ThresholdValueBean> beans) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
InputQualificationResource
public InputQualificationResource(ResourceBeanService resourceBeanService, QualificationService qualificationService, QualificationBeanFactory beanFactory, PrincipalService principalService, ExamService examService, ThresholdValueService thresholdValueService)
-
-
Method Details
-
loadInput
-
loadStructure
@GET @Path("/structure") @Produces("application/json") public StructureBean loadStructure(@PathParam("inputKey") String inputKey) -
writeInput
-
writeNodeInput
-
loadParticipant
@GET @Path("/participant/{participantKey}") @Produces("application/json") public ParticipantBean loadParticipant(@PathParam("inputKey") String inputKey, @PathParam("participantKey") String participantKey) -
writeParticipant
@POST @Path("/participant/{participantKey}") @Produces("application/json") @Consumes("application/json") public ParticipantBean writeParticipant(@PathParam("inputKey") String inputKey, @PathParam("participantKey") String participantKey, List<DataBean> beans) -
writeNodeParticipant
@POST @Path("/participant/{participantKey}/{node}") @Produces("application/json") @Consumes("application/json") public ParticipantBean writeNodeParticipant(@PathParam("inputKey") String inputKey, @PathParam("participantKey") String participantKey, @PathParam("node") String node, DataBean bean) -
writeExams
-
writeThresholdValues
@POST @Path("/thresholdValues") @Produces("application/json") @Consumes("application/json") public List<ThresholdValueBean> writeThresholdValues(@PathParam("inputKey") String inputKey, List<ThresholdValueBean> beans)
-