]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org/argeo/security/SystemExecutionService.java
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();