source: src/main/java/project/educatum/service/TeacherService.java

Last change on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1package project.educatum.service;
2
3import project.educatum.model.Class;
4import project.educatum.model.Student;
5import project.educatum.model.Teacher;
6import project.educatum.model.Subject;
7
8import java.util.List;
9
10public 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}
Note: See TracBrowser for help on using the repository browser.