Interface TaskGroupService<G extends TaskGroup,S>

Type Parameters:
G - The task group type.
S - The type of the additional data used in ModifyTaskGroupDto.
All Known Implementing Classes:
BaseTaskGroupService

@Validated public interface TaskGroupService<G extends TaskGroup,S>
Interface for classes that manage TaskGroups.
  • Method Details

    • get

      Optional<G> get(long id)
      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.