Interface TaskGroupService<G extends TaskGroup,S>
- Type Parameters:
G
- The task group type.S
- The type of the additional data used inModifyTaskGroupDto
.
- All Known Implementing Classes:
BaseTaskGroupService
Interface for classes that manage
TaskGroup
s.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(long id, @Valid ModifyTaskGroupDto<S> dto) Creates a new task group.void
delete
(long id) Deletes the task group with the specified identifier.get
(long id) Returns the task group with the specified identifier.update
(long id, @Valid ModifyTaskGroupDto<S> dto) Updates an existing task group.
-
Method Details
-
get
Returns the task group with the specified identifier.- Parameters:
id
- The identifier.- Returns:
- The task group or an empty result if the task group does not exist.
-
create
Creates a new task group.- Parameters:
id
- The task group identifier.dto
- The task group data.- Returns:
- The data that should be sent to the task administration UI (might be
null
). - Throws:
DuplicateKeyException
- If a task group with the specified identifier already exists.
-
update
Updates an existing task group.- Parameters:
id
- The task group identifier.dto
- The new task group data.- Returns:
- The data that should be sent to the task administration UI (might be
null
). - Throws:
jakarta.persistence.EntityNotFoundException
- If the task group does not exist.
-
delete
void delete(long id) Deletes the task group with the specified identifier.- Parameters:
id
- The identifier of the task group to delete.
-