]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - SystemExecutionService.java
f5ef357c04b1201d1a8dbc64d9005e213ba9bc60
1 package org
.argeo
.security
;
3 import org
.springframework
.core
.task
.TaskExecutor
;
6 * Allows to execute code authenticated as a system user (that is not a real
9 public interface SystemExecutionService
{
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.
15 public void executeAsSystem(Runnable runnable
);
17 public TaskExecutor
createSystemAuthenticatedTaskExecutor();