Package ubic.gemma.web.scheduler
Class SecureMethodInvokingJobDetailFactoryBean
- java.lang.Object
-
- org.springframework.util.MethodInvoker
-
- org.springframework.beans.support.ArgumentConvertingMethodInvoker
-
- org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean
-
- ubic.gemma.web.scheduler.SecureMethodInvokingJobDetailFactoryBean
-
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,FactoryBean<org.quartz.JobDetail>
,InitializingBean
public class SecureMethodInvokingJobDetailFactoryBean extends MethodInvokingJobDetailFactoryBean
Specialization of Spring task-running support so task threads have secure context (without using MODE_GLOBAL!). The thread where Quartz is being run is authenticated as GROUP_AGENT.- Author:
- paul
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean
MethodInvokingJobDetailFactoryBean.MethodInvokingJob, MethodInvokingJobDetailFactoryBean.StatefulMethodInvokingJob
-
-
Constructor Summary
Constructors Constructor Description SecureMethodInvokingJobDetailFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
invoke()
void
setManualAuthenticationService(gemma.gsec.authentication.ManualAuthenticationService manualAuthenticationService)
void
setUserManager(UserManager userManager)
-
Methods inherited from class org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean
afterPropertiesSet, getObject, getObjectType, getTargetClass, getTargetObject, isSingleton, postProcessJobDetail, resolveClassName, setBeanClassLoader, setBeanFactory, setBeanName, setConcurrent, setGroup, setJobListenerNames, setName, setTargetBeanName
-
Methods inherited from class org.springframework.beans.support.ArgumentConvertingMethodInvoker
doFindMatchingMethod, findMatchingMethod, getDefaultTypeConverter, getTypeConverter, registerCustomEditor, setTypeConverter
-
Methods inherited from class org.springframework.util.MethodInvoker
getArguments, getPreparedMethod, getTargetMethod, getTypeDifferenceWeight, isPrepared, prepare, setArguments, setStaticMethod, setTargetClass, setTargetMethod, setTargetObject
-
-
-
-
Method Detail
-
invoke
public Object invoke() throws InvocationTargetException, IllegalAccessException
- Overrides:
invoke
in classMethodInvoker
- Throws:
InvocationTargetException
IllegalAccessException
-
setManualAuthenticationService
public void setManualAuthenticationService(gemma.gsec.authentication.ManualAuthenticationService manualAuthenticationService)
- Parameters:
manualAuthenticationService
- the manualAuthenticationService to set
-
setUserManager
public void setUserManager(UserManager userManager)
- Parameters:
userManager
- the userManager to set
-
-