1 | package project.educatum.service;
|
---|
2 |
|
---|
3 | import project.educatum.model.Class;
|
---|
4 | import project.educatum.model.Student;
|
---|
5 | import project.educatum.model.Teacher;
|
---|
6 | import project.educatum.model.Subject;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | public interface TeacherService {
|
---|
11 |
|
---|
12 | List<Teacher> findAll();
|
---|
13 |
|
---|
14 | void register(String ime, String prezime, String email, String password, String repeatPassword, String telBroj, String opis);
|
---|
15 |
|
---|
16 | List<Student> getStudentsByTeacher(Integer id);
|
---|
17 |
|
---|
18 | void updateEnabled(Integer teacherID);
|
---|
19 |
|
---|
20 | List<Subject> getSubjectsByTeacher(Integer id);
|
---|
21 |
|
---|
22 | Teacher findById(Integer id);
|
---|
23 |
|
---|
24 | Teacher findByEmail(String email);
|
---|
25 |
|
---|
26 | List<Class> getClassesByTeacher(Integer id);
|
---|
27 |
|
---|
28 | void save(Teacher teacher);
|
---|
29 |
|
---|
30 | List<Teacher> findAllByNameLike(String ime);
|
---|
31 |
|
---|
32 | void delete(Integer id);
|
---|
33 |
|
---|
34 | void addSubject(Integer teacherId, Integer subjectId, String desc);
|
---|
35 |
|
---|
36 | void addStudent(Integer teacherID, Integer ucenikId, Integer priceByClass, Integer numScheduledClasses);
|
---|
37 |
|
---|
38 | List<Teacher> getAllTeachersBySubject(Integer id);
|
---|
39 |
|
---|
40 | Teacher edit(Integer id,String ime, String prezime, String opis, String email, String telefonskiBroj);
|
---|
41 |
|
---|
42 | double getRatingForTeacher(Long teacherID);
|
---|
43 | }
|
---|