Class BaseSubmissionController<A>
java.lang.Object
at.jku.dke.etutor.task_app.controllers.BaseSubmissionControllerWithoutRequestMapping<A>
at.jku.dke.etutor.task_app.controllers.BaseSubmissionController<A>
- Type Parameters:
A
- The type of the submission input used inSubmitSubmissionDto
.
- All Implemented Interfaces:
SubmissionController<A>
@RequestMapping("/api/submission")
public abstract class BaseSubmissionController<A>
extends BaseSubmissionControllerWithoutRequestMapping<A>
Base implementation of
SubmissionController
with predefined request mapping base.
Add @RestController
to the extending class.
-
Field Summary
Fields inherited from class at.jku.dke.etutor.task_app.controllers.BaseSubmissionControllerWithoutRequestMapping
submissionService
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseSubmissionController
(SubmissionService<A> submissionService) Creates a new instance of classBaseSubmissionControllerWithoutRequestMapping
. -
Method Summary
Modifier and TypeMethodDescriptionprotected URI
createDetailsUri
(UUID id) Creates the URI for the details of the submission with the given ID.Methods inherited from class at.jku.dke.etutor.task_app.controllers.BaseSubmissionControllerWithoutRequestMapping
getResult, getSubmissions, submit
-
Constructor Details
-
BaseSubmissionController
Creates a new instance of classBaseSubmissionControllerWithoutRequestMapping
.- Parameters:
submissionService
- The submission service.
-
-
Method Details
-
createDetailsUri
Description copied from class:BaseSubmissionControllerWithoutRequestMapping
Creates the URI for the details of the submission with the given ID.- Specified by:
createDetailsUri
in classBaseSubmissionControllerWithoutRequestMapping<A>
- Parameters:
id
- The ID of the submission.- Returns:
- The URI where the details of the submission can be found.
-