1 19 20 package za.org.coefficient.interceptors; 21 22 import za.org.coefficient.authentication.CoefficientUser; 23 import za.org.coefficient.core.CoefficientInterceptor; 24 import za.org.coefficient.interfaces.CoefficientContext; 25 import za.org.coefficient.util.common.InvokerFactory; 26 27 32 public class WorkflowSetupInterceptor extends CoefficientInterceptor { 33 35 private static CoefficientUser workflowUser; 36 37 39 protected int handleInvoke(CoefficientContext ctx) throws Exception { 40 int retVal = INVOKE_PROCESS_CHILD; 41 42 if (workflowUser == null) { 43 workflowUser = (CoefficientUser)InvokerFactory 45 .getRemoteInvoker().invokeMethodOnModule("UserAdmin","findWorkflowUser", new Object [0]); 46 } 47 ctx.setWorkflowUser(workflowUser); 48 49 return retVal; 50 } 51 } 52 | Popular Tags |