package at.ac.tuwien.inso.service;

import at.ac.tuwien.inso.entity.*;

import java.util.*;

public interface LecturerService {
    Lecturer getLoggedInLecturer();

    Iterable<Subject> getOwnSubjects();

    List<Subject> findSubjectsFor(Lecturer lecturer);
}

@@ -29,16 +29,82 @@
 rvice;%0A%0A
+import org.springframework.security.access.prepost.PreAuthorize;%0A%0A
 import a
@@ -191,44 +191,127 @@
 e %7B%0A
-    Lecturer getLoggedInLecturer();%0A
+%0A    @PreAuthorize(%22hasRole('LECTURER')%22)%0A    Lecturer getLoggedInLecturer();%0A%0A    @PreAuthorize(%22hasRole('LECTURER')%22)
 %0A   
@@ -344,24 +344,63 @@
 ubjects();%0A%0A
+    @PreAuthorize(%22isAuthenticated()%22)%0A
     List%3CSub

Add method security for LecturerService