public class SecurityFlowExecutionListener extends java.lang.Object implements FlowExecutionListener
| Constructor and Description |
|---|
SecurityFlowExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decide(SecurityRule rule,
java.lang.Object object)
Performs a Spring Security authorization decision.
|
org.springframework.security.access.AccessDecisionManager |
getAccessDecisionManager()
Get the access decision manager that makes flow authorization decisions.
|
protected java.util.Collection<org.springframework.security.access.ConfigAttribute> |
getConfigAttributes(SecurityRule rule)
Convert SecurityRule into a form understood by Spring Security
|
void |
sessionCreating(RequestContext context,
FlowDefinition definition)
Called to indicate a new flow definition session is about to be created.
|
void |
setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
Set the access decision manager that makes flow authorization decisions.
|
void |
stateEntering(RequestContext context,
StateDefinition state)
Called when a state transitions, after the transition is matched but before the transition occurs.
|
void |
transitionExecuting(RequestContext context,
TransitionDefinition transition)
Called when a transition is matched but before the transition occurs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteventSignaled, exceptionThrown, paused, requestProcessed, requestSubmitted, resuming, sessionEnded, sessionEnding, sessionStarted, sessionStarting, stateEntered, viewRendered, viewRenderingpublic org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()
public void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
accessDecisionManager - the decision manager to userpublic void sessionCreating(RequestContext context, FlowDefinition definition)
FlowExecutionListenersessionCreating in interface FlowExecutionListenercontext - the current flow request contextdefinition - the flow for which a new session is startingpublic void stateEntering(RequestContext context, StateDefinition state) throws EnterStateVetoException
FlowExecutionListenerstateEntering in interface FlowExecutionListenercontext - the current flow request contextstate - the proposed state to transition toEnterStateVetoException - when entering the state is not allowedpublic void transitionExecuting(RequestContext context, TransitionDefinition transition)
FlowExecutionListenertransitionExecuting in interface FlowExecutionListenercontext - the current flow request contexttransition - the proposed transitionprotected void decide(SecurityRule rule, java.lang.Object object)
rule - the rule to base the decisionobject - the execution listener phaseprotected java.util.Collection<org.springframework.security.access.ConfigAttribute> getConfigAttributes(SecurityRule rule)
rule - the rule to convert