Class TutorScheduleServiceImpl
java.lang.Object
org.example.crmedu.domain.service.schedule.TutorScheduleServiceImpl
- All Implemented Interfaces:
TutorScheduleService
Implementation of the
TutorScheduleService
interface. Provides business logic for managing TutorSchedule
entities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSchedule
(TutorSchedule schedule, Long tutorId) Creates a new schedule.void
Deletes a schedule by its unique identifier.Retrieves a schedule by its unique identifier.getTutorSchedules
(int pageNumber, int pageSize, Long tutorId) Retrieves a paginated list of tutor schedules.void
update
(TutorSchedule updatedSchedule, Long id) Updates an existing schedule.
-
Constructor Details
-
TutorScheduleServiceImpl
public TutorScheduleServiceImpl()
-
-
Method Details
-
createSchedule
Description copied from interface:TutorScheduleService
Creates a new schedule.- Specified by:
createSchedule
in interfaceTutorScheduleService
- Parameters:
schedule
- the schedule to createtutorId
- the tutor unique identifier who owns the schedule- Returns:
- the created
TutorSchedule
-
findById
Description copied from interface:TutorScheduleService
Retrieves a schedule by its unique identifier.- Specified by:
findById
in interfaceTutorScheduleService
- Parameters:
id
- the unique identifier of the schedule- Returns:
- the found
TutorSchedule
-
getTutorSchedules
Description copied from interface:TutorScheduleService
Retrieves a paginated list of tutor schedules.- Specified by:
getTutorSchedules
in interfaceTutorScheduleService
- Parameters:
pageNumber
- the page number (starting from 0)pageSize
- the number of tutors per pagetutorId
- the unique identifier of the tutor that owns this schedule- Returns:
- a
Page
containing the requested schedules
-
update
Description copied from interface:TutorScheduleService
Updates an existing schedule.- Specified by:
update
in interfaceTutorScheduleService
- Parameters:
updatedSchedule
- the updated schedule dataid
- the unique identifier of the schedule to update
-
delete
Description copied from interface:TutorScheduleService
Deletes a schedule by its unique identifier.- Specified by:
delete
in interfaceTutorScheduleService
- Parameters:
id
- the unique identifier of the schedule to delete
-