package at.ac.tuwien.inso.service;

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

import java.util.*;

public interface SemesterService {
    Semester create(Semester semester);

    Semester getCurrentSemester();

    List<Semester> findAll();
}

@@ -29,16 +29,82 @@
 rvice;%0A%0A
+import org.springframework.security.access.prepost.PreAuthorize;%0A%0A
 import a
@@ -186,16 +186,55 @@
 ervice %7B
+%0A%0A    @PreAuthorize(%22hasRole('ADMIN')%22)
 %0A    Sem
@@ -275,39 +275,117 @@
     
-Semester getCurrentSemester();%0A
+@PreAuthorize(%22isAuthenticated()%22)%0A    Semester getCurrentSemester();%0A%0A    @PreAuthorize(%22isAuthenticated()%22)
 %0A   

Add method security for SemesterService