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