Class SecuredNodeWorkerFactory
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorkerFactory
-
- com.levigo.jadice.server.core.security.SecuredNodeWorkerFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.InitializingBean
public class SecuredNodeWorkerFactory extends NodeWorkerFactory implements org.springframework.beans.factory.InitializingBean
ANodeWorkerFactory
that considers the credentials that are provided in the given job context.- Since:
- jadice server 4.3.1.0
- See Also:
Job.getServerCredentials()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.core.NodeWorkerFactory
NodeWorkerFactory.WorkerBeanDefinitionParser, NodeWorkerFactory.WorkerNamespaceHandler
-
-
Field Summary
-
Fields inherited from class com.levigo.jadice.server.core.NodeWorkerFactory
beanFactory
-
-
Constructor Summary
Constructors Constructor Description SecuredNodeWorkerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
<N extends Node>
NodeWorker<N>createWorker(ServerJob job, N node)
Build aNodeWorker
for a givenNode
org.springframework.security.access.AccessDecisionManager
getAccessDecisionManager()
void
setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
void
setJobLimitRules(List<LimitEnforcingRule> jobLimitRules)
void
setNodeAccessRules(List<RoleEnforcingRule> nodeAccessRules)
void
setNodeLimitRules(List<LimitEnforcingRule> nodeLimitRules)
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorkerFactory
setBeanFactory
-
-
-
-
Method Detail
-
createWorker
public <N extends Node> NodeWorker<N> createWorker(ServerJob job, N node) throws Exception
Description copied from class:NodeWorkerFactory
Build aNodeWorker
for a givenNode
- Overrides:
createWorker
in classNodeWorkerFactory
- Type Parameters:
N
- TheNode
's class- Parameters:
job
- The context in which the worker will worknode
- TheNode
for which to create a worker- Returns:
- a fully initiated worker that can be subsequently connected to the rest of the workflow
- Throws:
Exception
- whenever something goes wrong
-
setAccessDecisionManager
public void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
- Parameters:
accessDecisionManager
- the accessDecisionManager to set
-
getAccessDecisionManager
public org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()
- Returns:
- the accessDecisionManager
-
setNodeAccessRules
public void setNodeAccessRules(List<RoleEnforcingRule> nodeAccessRules) throws org.springframework.expression.ParseException
- Parameters:
nodeAccessRules
- the nodeAccessRules to set- Throws:
org.springframework.expression.ParseException
-
setNodeLimitRules
public void setNodeLimitRules(List<LimitEnforcingRule> nodeLimitRules) throws org.springframework.expression.ParseException
- Throws:
org.springframework.expression.ParseException
-
setJobLimitRules
public void setJobLimitRules(List<LimitEnforcingRule> jobLimitRules) throws org.springframework.expression.ParseException
- Throws:
org.springframework.expression.ParseException
-
-