Class PageScope
java.lang.Object
com.aquima.interactions.portal.model.session.scope.PortalScope
com.aquima.interactions.portal.model.session.scope.PortalMessageScope
com.aquima.interactions.portal.model.session.scope.PageScope
- All Implemented Interfaces:
IDisposableScope
,IPageScope
,IPortalMessageScope
,IPortalScope
,Serializable
This class implements the IPageScope interface and is used to store page specific attributes.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangedField
(ValueReference reference, IValue previousValue) This 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.scope.PortalMessageScope
clearPortalMessageAction, getMappedPortalMessages, getPortalMessageAction, setPortalMessageAction
Methods inherited from class com.aquima.interactions.portal.model.session.scope.PortalScope
clearAttribute, destroyDisposableObjects, discardParent, getAttribute, getAttributeNames, getParentScope, hasAttribute, isCleared, mergeWithParent, 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
-
PageScope
public PageScope()Default constructor for the page scope. This constructor is mainly used when restoring a session. -
PageScope
Constructs the page scope with a parent page scope.- Parameters:
parent
- The parent page scope.
-
-
Method Details
-
addChangedField
-
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.
-