Class SubjectServiceImpl
java.lang.Object
org.example.crmedu.domain.service.subject.SubjectServiceImpl
- All Implemented Interfaces:
SubjectService
Implementation of the
SubjectService
interface. Provides business logic for managing Subject
entities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new subject.void
Deletes a subject by its unique identifier.findAll
(int pageNumber, int pageSize) Retrieves a paginated list of subjects.Retrieves a subject by its unique identifier.void
Updates an existing subject
-
Constructor Details
-
SubjectServiceImpl
public SubjectServiceImpl()
-
-
Method Details
-
create
Description copied from interface:SubjectService
Creates a new subject.- Specified by:
create
in interfaceSubjectService
- Parameters:
subject
- the subject to create- Returns:
- the created
Subject
-
findById
Description copied from interface:SubjectService
Retrieves a subject by its unique identifier.- Specified by:
findById
in interfaceSubjectService
- Parameters:
id
- the unique identifier of the subject- Returns:
- the found
Subject
-
findAll
Description copied from interface:SubjectService
Retrieves a paginated list of subjects.- Specified by:
findAll
in interfaceSubjectService
- Parameters:
pageNumber
- the page number (starting from 0)pageSize
- the number of subjects per page- Returns:
- a
Page
containing the requested subjects
-
update
Description copied from interface:SubjectService
Updates an existing subject- Specified by:
update
in interfaceSubjectService
- Parameters:
subject
- the updated subject dataid
- the unique identifier of the subject to update
-
delete
Description copied from interface:SubjectService
Deletes a subject by its unique identifier.- Specified by:
delete
in interfaceSubjectService
- Parameters:
id
- the unique identifier of the subject to delete
-