Class BaseTaskController<E extends Task,D,A>
java.lang.Object
at.jku.dke.etutor.task_app.controllers.BaseTaskControllerWithoutRequestMapping<E,D,A>
at.jku.dke.etutor.task_app.controllers.BaseTaskController<E,D,A>
- Type Parameters:
E
- The type of the task entity.D
- The type of the task DTO.A
- The type of the additional data inModifyTaskDto
.
- All Implemented Interfaces:
TaskController<D,
A>
@RequestMapping("/api/task")
public abstract class BaseTaskController<E extends Task,D,A>
extends BaseTaskControllerWithoutRequestMapping<E,D,A>
Base implementation of
TaskController
with predefined request mapping base.
Add @RestController
to the extending class.
-
Field Summary
Fields inherited from class at.jku.dke.etutor.task_app.controllers.BaseTaskControllerWithoutRequestMapping
taskService
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseTaskController
(TaskService<E, A> taskService) Creates a new instance of classBaseTaskController
. -
Method Summary
Modifier and TypeMethodDescriptionprotected URI
createDetailsUri
(long id) Creates the URI for the details of the task with the given ID.
-
Constructor Details
-
BaseTaskController
Creates a new instance of classBaseTaskController
.- Parameters:
taskService
- The task group service.
-
-
Method Details
-
createDetailsUri
Description copied from class:BaseTaskControllerWithoutRequestMapping
Creates the URI for the details of the task with the given ID.- Specified by:
createDetailsUri
in classBaseTaskControllerWithoutRequestMapping<E extends Task,
D, A> - Parameters:
id
- The ID of the task.- Returns:
- The URI where the details of the task can be found.
-