Package com.aspectran.core.activity
Class ActivityData
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
- Direct Known Subclasses:
TemplateModel
A map of data for saving activity results.
It is often used as a model for providing data used in views.
This class is generally not thread-safe. It is primarily designed for use in a single thread only.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()
Returns the value of the named action's process result without storing it in the cache.protected Activity
Returns the value of the named attribute from the request adapter without storing it in the cache.Returns the value of the request parameter from the request adapter without storing it in the cache.Returns the value of the named attribute from the session adapter without storing it in the cache.void
refresh()
values()
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ActivityData
Instantiates a new ActivityData.- Parameters:
activity
- the activity
-
-
Method Details
-
get
-
put
-
values
-
entrySet
-
getParameterWithoutCache
Returns the value of the request parameter from the request adapter without storing it in the cache. If the parameter does not exist, returns null.- Parameters:
name
- aString
specifying the name of the parameter- Returns:
- an
Object
containing the value of the parameter, ornull
if the parameter does not exist - See Also:
-
getAttributeWithoutCache
Returns the value of the named attribute from the request adapter without storing it in the cache. If no attribute of the given name exists, returns null.- Parameters:
name
- aString
specifying the name of the attribute- Returns:
- an
Object
containing the value of the attribute, ornull
if the attribute does not exist - See Also:
-
getActionResultWithoutCache
Returns the value of the named action's process result without storing it in the cache. If no process result of the given name exists, returns null.- Parameters:
name
- aString
specifying the name of the action- Returns:
- an
Object
containing the value of the action result, ornull
if the action result does not exist
-
getSessionAttributeWithoutCache
Returns the value of the named attribute from the session adapter without storing it in the cache. If no attribute of the given name exists, returns null.- Parameters:
name
- aString
specifying the name of the attribute- Returns:
- an
Object
containing the value of the attribute, ornull
if the attribute does not exist - See Also:
-
refresh
public void refresh() -
getActivity
-