Class EvaluationExecutionParticipationUpdateResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.evaluation.impl.widgets.AbstractEvaluationExecutionParticipationResource
ch.tocco.nice2.optional.evaluation.impl.widgets.EvaluationExecutionParticipationUpdateResource
- All Implemented Interfaces:
RestResource
@Path("/widgets/evaluationExecutionParticipation/{uuid}/")
public class EvaluationExecutionParticipationUpdateResource
extends AbstractEvaluationExecutionParticipationResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.evaluation.impl.widgets.AbstractEvaluationExecutionParticipationResource
commandExecutor, getAnswerTask, queryBuilderFactory, securityManager, textResources
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionEvaluationExecutionParticipationUpdateResource
(SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor, TextResources textResources, PersistenceService persistenceService, L10N l10N, EmailTemplateLoadService emailTemplateService, MailFactory mailFactory, HasAnyEditableQuestionProvider hasAnyEditableQuestionProvider) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
saveAnswer
(String uuid, String questionKey, EvaluationExecutionParticipationUpdateResource.SaveAnswerBean answersBean) jakarta.ws.rs.core.Response
saveComment
(String uuid, String questionKey, EvaluationExecutionParticipationUpdateResource.SaveCommentBean commentBean) void
setAnswerSavers
(List<AnswerSaverContribution> contributions) void
jakarta.ws.rs.core.Response
shareAnswers
(String uuid, EvaluationExecutionParticipationUpdateResource.ShareAnswerBean requestBean) Methods inherited from class ch.tocco.nice2.optional.evaluation.impl.widgets.AbstractEvaluationExecutionParticipationResource
getEvaluationPartyAssignment, getShareableAccessForQuestion, getValidExecutionCondition
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
EvaluationExecutionParticipationUpdateResource
public EvaluationExecutionParticipationUpdateResource(SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor, TextResources textResources, PersistenceService persistenceService, L10N l10N, EmailTemplateLoadService emailTemplateService, MailFactory mailFactory, HasAnyEditableQuestionProvider hasAnyEditableQuestionProvider)
-
-
Method Details
-
finish
@POST @Produces("application/json") @Path("finish") public jakarta.ws.rs.core.Response finish(@PathParam("uuid") String uuid) -
saveAnswer
@PUT @Produces("application/json") @Path("questions/{questionKey}/saveAnswer") public jakarta.ws.rs.core.Response saveAnswer(@PathParam("uuid") String uuid, @PathParam("questionKey") String questionKey, EvaluationExecutionParticipationUpdateResource.SaveAnswerBean answersBean) -
saveComment
@PUT @Produces("application/json") @Path("questions/{questionKey}/saveComment") public jakarta.ws.rs.core.Response saveComment(@PathParam("uuid") String uuid, @PathParam("questionKey") String questionKey, EvaluationExecutionParticipationUpdateResource.SaveCommentBean commentBean) -
setAnswerSavers
-
setSaveAnswerHooks
@Autowired(required=false) public void setSaveAnswerHooks(List<EvaluationExecutionSaveAnswerHook> hooks)