S
- the type of stateE
- the type of eventpublic class DefaultSecurityConfigurer<S,E> extends AnnotationConfigurerAdapter<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>> implements SecurityConfigurer<S,E>
SecurityConfigurer
.Constructor and Description |
---|
DefaultSecurityConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(StateMachineConfigurationBuilder<S,E> builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder . |
SecurityConfigurer<S,E> |
enabled(boolean enabled)
Specify if security is enabled.
|
SecurityConfigurer<S,E> |
event(java.lang.String expression)
Specify a security attributes for events.
|
SecurityConfigurer<S,E> |
event(java.lang.String attributes,
SecurityRule.ComparisonType match)
Specify a security attributes for events.
|
SecurityConfigurer<S,E> |
eventAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
Specify a custom
AccessDecisionManager for events. |
SecurityConfigurer<S,E> |
transition(java.lang.String expression)
Specify a security attributes for transitions.
|
SecurityConfigurer<S,E> |
transition(java.lang.String attributes,
SecurityRule.ComparisonType match)
Specify a security attributes for transitions.
|
SecurityConfigurer<S,E> |
transitionAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
Specify a custom
AccessDecisionManager for transitions. |
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public void configure(StateMachineConfigurationBuilder<S,E> builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.configure
in interface AnnotationConfigurer<ConfigurationData<S,E>,StateMachineConfigurationBuilder<S,E>>
configure
in class AnnotationConfigurerAdapter<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>
builder
- the builderjava.lang.Exception
- if error occurredpublic SecurityConfigurer<S,E> enabled(boolean enabled)
SecurityConfigurer
enabled
in interface SecurityConfigurer<S,E>
enabled
- the enable flagpublic SecurityConfigurer<S,E> transitionAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
SecurityConfigurer
AccessDecisionManager
for transitions.transitionAccessDecisionManager
in interface SecurityConfigurer<S,E>
accessDecisionManager
- the access decision managerpublic SecurityConfigurer<S,E> eventAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
SecurityConfigurer
AccessDecisionManager
for events.eventAccessDecisionManager
in interface SecurityConfigurer<S,E>
accessDecisionManager
- the access decision managerpublic SecurityConfigurer<S,E> event(java.lang.String attributes, SecurityRule.ComparisonType match)
SecurityConfigurer
event
in interface SecurityConfigurer<S,E>
attributes
- the security attributesmatch
- the match typepublic SecurityConfigurer<S,E> event(java.lang.String expression)
SecurityConfigurer
event
in interface SecurityConfigurer<S,E>
expression
- the the security expressionpublic SecurityConfigurer<S,E> transition(java.lang.String attributes, SecurityRule.ComparisonType match)
SecurityConfigurer
transition
in interface SecurityConfigurer<S,E>
attributes
- the security attributesmatch
- the match typepublic SecurityConfigurer<S,E> transition(java.lang.String expression)
SecurityConfigurer
transition
in interface SecurityConfigurer<S,E>
expression
- the the security expression