package at.ac.tuwien.inso.service;

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

import java.util.*;

public interface UisUserService {

    List<UisUser> findAllMatching(String searchFilter);

    UisUser findOne(long id);

    boolean existsUserWithIdentificationNumber(String id);
}

@@ -29,16 +29,82 @@
 rvice;%0A%0A
+import org.springframework.security.access.prepost.PreAuthorize;%0A%0A
 import a
@@ -187,16 +187,54 @@
 vice %7B%0A%0A
+    @PreAuthorize(%22hasRole('ADMIN')%22)%0A
     List
@@ -290,34 +290,111 @@
     
-UisUser findOne(long id);%0A
+@PreAuthorize(%22hasRole('ADMIN')%22)%0A    UisUser findOne(long id);%0A%0A    @PreAuthorize(%22isAuthenticated()%22)
 %0A   

Add method security for UisUserService