Improve Jackrabbit security
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.core / src / main / java / org / argeo / security / core / KeyBasedSystemExecutionService.java
index 01d760f12befc1ce88fa38eb37c4d308505c6a49..08ef6428ad925f9cc19db8ffece144002df41218 100644 (file)
@@ -8,11 +8,12 @@ import org.springframework.security.AuthenticationManager;
 import org.springframework.security.context.SecurityContext;
 import org.springframework.security.context.SecurityContextHolder;
 
-public class KeyBasedSystemExecutionService implements SystemExecutionService {
+public class KeyBasedSystemExecutionService implements SystemExecutionService,
+               TaskExecutor {
        private AuthenticationManager authenticationManager;
        private String systemAuthenticationKey;
 
-       public void executeAsSystem(Runnable runnable) {
+       public void execute(Runnable runnable) {
                wrapWithSystemAuthentication(runnable).run();
        }