Class ConcurrentPageScope
java.lang.Object
com.aquima.interactions.portal.model.session.concurrent.ConcurrentPortalScope
com.aquima.interactions.portal.model.session.concurrent.ConcurrentPortalMessageScope
com.aquima.interactions.portal.model.session.concurrent.ConcurrentPageScope
- All Implemented Interfaces:
IDisposableScope
,IPageScope
,IPortalMessageScope
,IPortalScope
,Serializable
Page scope implementation that uses locking to handle concurrent method calls.
- Since:
- 8.4.3
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorDescriptionConcurrentPageScope
(IPageScope pageScope, ReadWriteLock lock) Construct a concurrent page scope. -
Method Summary
Modifier and TypeMethodDescriptionThis method will return an array containing the references to all the values that were changed by fields from the current page.getOriginalValue
(ValueReference reference) This method returns the value of the attribute as it was before the value got changed by the page event.getType()
This method will return the scope type of the portal scope implementation.boolean
isChangedValue
(ValueReference reference) This method may be used to check if a specific value has been updated by an event from the current page.Methods inherited from class com.aquima.interactions.portal.model.session.concurrent.ConcurrentPortalMessageScope
clearPortalMessageAction, getMappedPortalMessages, getPortalMessageAction, setPortalMessageAction
Methods inherited from class com.aquima.interactions.portal.model.session.concurrent.ConcurrentPortalScope
clearAttribute, destroyDisposableObjects, getAttribute, getAttributeNames, hasAttribute, setAttribute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.portal.IDisposableScope
destroyDisposableObjects
Methods inherited from interface com.aquima.interactions.portal.IPortalMessageScope
clearPortalMessageAction, getMappedPortalMessages, getPortalMessageAction, setPortalMessageAction
Methods inherited from interface com.aquima.interactions.portal.IPortalScope
clearAttribute, getAttribute, getAttributeNames, hasAttribute, setAttribute
-
Constructor Details
-
ConcurrentPageScope
Construct a concurrent page scope.- Parameters:
pageScope
- The delegate page scope, may not be null.lock
- The read/write lock to handle concurrent calls, may not be null.
-
-
Method Details
-
isChangedValue
Description copied from interface:IPageScope
This method may be used to check if a specific value has been updated by an event from the current page.- Specified by:
isChangedValue
in interfaceIPageScope
- Parameters:
reference
- Reference to the value that might have been updated.- Returns:
- Boolean indicating if the value was updated by an event from the current page.
-
getChangedValues
Description copied from interface:IPageScope
This method will return an array containing the references to all the values that were changed by fields from the current page. The array will contain the references to values from the current event, but also the references to the values that were changed by previous refresh actions.- Specified by:
getChangedValues
in interfaceIPageScope
- Returns:
- an array containing the references to all the values that were changed by fields from the current page.
-
getOriginalValue
Description copied from interface:IPageScope
This method returns the value of the attribute as it was before the value got changed by the page event. If the value did not get changed by the page event, the method will return a null value. If the value got changed multiple times by subsequent refresh events, the method will still return the value as it was before the page was shown. Intermediate values from subsequent page refreshes are lost.- Specified by:
getOriginalValue
in interfaceIPageScope
- Parameters:
reference
- The reference to the attribute whose value is requested before it was modified by the page event.- Returns:
- The value of the attribute as it was before the value got changed by the page event.
-
getType
Description copied from interface:IPortalScope
This method will return the scope type of the portal scope implementation.- Specified by:
getType
in interfaceIPortalScope
- Returns:
- The current scope type.
-