public abstract class ScopeType
extends org.springframework.core.enums.StaticLabeledEnum
getScope(RequestContext)
.
A "scope" defines a data structure for storing custom user attributes within a flow execution. Different scope types have different semantics in terms of how long attributes placed in those scope maps remain valid.
Modifier and Type | Field and Description |
---|---|
static ScopeType |
CONVERSATION
The "conversation" scope type.
|
static ScopeType |
FLASH
The "flash" scope type.
|
static ScopeType |
FLOW
The "flow" scope type.
|
static ScopeType |
REQUEST
The "request" scope type.
|
static ScopeType |
VIEW
The "view" scope type.
|
Modifier and Type | Method and Description |
---|---|
abstract MutableAttributeMap |
getScope(RequestContext context)
Accessor that returns the mutable attribute map for this scope type for a given flow execution request context.
|
Class |
getType() |
getCode, getLabel, shortValue
public static final ScopeType REQUEST
public static final ScopeType FLASH
Flash scope is typically used to store messages that should be preserved until after the next view renders.
public static final ScopeType VIEW
View scope is typically used to store view model objects manipulated over a series of Ajax requests.
public static final ScopeType FLOW
flow definition
. When the flow session ends any data in
flow scope goes out of scope.public static final ScopeType CONVERSATION
public Class getType()
getType
in interface org.springframework.core.enums.LabeledEnum
getType
in class org.springframework.core.enums.AbstractLabeledEnum
public abstract MutableAttributeMap getScope(RequestContext context)
context
- the context representing an executing request