public class SecuredNodeWorkerFactory extends NodeWorkerFactory implements org.springframework.beans.factory.InitializingBean
NodeWorkerFactory
that considers the credentials that are provided in the given job
context.Job.getServerCredentials()
NodeWorkerFactory.WorkerBeanDefinitionParser, NodeWorkerFactory.WorkerNamespaceHandler
beanFactory
Constructor and Description |
---|
SecuredNodeWorkerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
<N extends Node> |
createWorker(ServerJob job,
N node)
Build a
NodeWorker for a given Node |
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) |
setBeanFactory
public <N extends Node> NodeWorker<N> createWorker(ServerJob job, N node) throws Exception
NodeWorkerFactory
NodeWorker
for a given Node
createWorker
in class NodeWorkerFactory
N
- The Node
's classjob
- The context in which the worker will worknode
- The Node
for which to create a workerException
- whenever something goes wrongpublic void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
accessDecisionManager
- the accessDecisionManager to setpublic org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()
public void setNodeAccessRules(List<RoleEnforcingRule> nodeAccessRules) throws org.springframework.expression.ParseException
nodeAccessRules
- the nodeAccessRules to setorg.springframework.expression.ParseException
public void setNodeLimitRules(List<LimitEnforcingRule> nodeLimitRules) throws org.springframework.expression.ParseException
org.springframework.expression.ParseException
public void setJobLimitRules(List<LimitEnforcingRule> jobLimitRules) throws org.springframework.expression.ParseException
org.springframework.expression.ParseException
Copyright © 2018 levigo holding gmbh. All rights reserved.