]> git.argeo.org Git - lgpl/argeo-commons.git/blob - SystemExecutionService.java
f5ef357c04b1201d1a8dbc64d9005e213ba9bc60
[lgpl/argeo-commons.git] / SystemExecutionService.java
1 package org.argeo.security;
2
3 import org.springframework.core.task.TaskExecutor;
4
5 /**
6 * Allows to execute code authenticated as a system user (that is not a real
7 * person)
8 */
9 public interface SystemExecutionService {
10 /**
11 * Executes this Runnable within a system authenticated context.
12 * Implementations should make sure that this method is properly secured via
13 * Java permissions since it could access to everything without credentials.
14 */
15 public void executeAsSystem(Runnable runnable);
16
17 public TaskExecutor createSystemAuthenticatedTaskExecutor();
18 }