X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FExecutionThread.java;h=f29e2938fd6fedf22b4c47b81f8d16523e11cb57;hb=c4282a516108d936112fbd4b91291563ec30a5e4;hp=48a5df38bed6f9bf2be8c2e7e8d8d786af0f0712;hpb=a922e3cb35c6182dbbb40c29eee42f7320c298ee;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/org/argeo/slc/core/execution/ExecutionThread.java b/org.argeo.slc.core/src/org/argeo/slc/core/execution/ExecutionThread.java index 48a5df38b..f29e2938f 100644 --- a/org.argeo.slc.core/src/org/argeo/slc/core/execution/ExecutionThread.java +++ b/org.argeo.slc.core/src/org/argeo/slc/core/execution/ExecutionThread.java @@ -20,13 +20,10 @@ import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.argeo.slc.SlcException; import org.argeo.slc.execution.ExecutionFlowDescriptor; import org.argeo.slc.execution.ExecutionModulesManager; import org.argeo.slc.execution.ExecutionStep; import org.argeo.slc.execution.RealizedFlow; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.context.SecurityContextHolder; /** Thread of a single execution */ public class ExecutionThread extends Thread { @@ -49,11 +46,11 @@ public class ExecutionThread extends Thread { public void run() { // authenticate thread - Authentication authentication = getProcessThreadGroup() - .getAuthentication(); - if (authentication == null) - throw new SlcException("Can only execute authenticated threads"); - SecurityContextHolder.getContext().setAuthentication(authentication); +// Authentication authentication = getProcessThreadGroup() +// .getAuthentication(); +// if (authentication == null) +// throw new SlcException("Can only execute authenticated threads"); +// SecurityContextHolder.getContext().setAuthentication(authentication); // Retrieve execution flow descriptor ExecutionFlowDescriptor executionFlowDescriptor = realizedFlow