Class TestRequestScope
java.lang.Object
com.aquima.interactions.test.templates.context.TestPortalScope
com.aquima.interactions.test.templates.context.TestRequestScope
- All Implemented Interfaces:
com.aquima.interactions.portal.IDisposableScope
,com.aquima.interactions.portal.IPortalScope
,com.aquima.interactions.portal.IRequestScope
,Serializable
public class TestRequestScope
extends TestPortalScope
implements com.aquima.interactions.portal.IRequestScope
Request scope implementation used by the context templates.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTestRequestScope
(com.aquima.interactions.foundation.text.ILanguage language) Constructs the request scope with the language that should be returned by the getLanguage method. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangedValue
(com.aquima.interactions.profile.ValueReference reference, com.aquima.interactions.foundation.IValue previousValue) This method may be invoked to add a value that was changed by the event.void
addPortalChange
(com.aquima.interactions.portal.IPortalChange portalChange) void
addProjectChange
(com.aquima.interactions.portal.IProjectChange projectChange) com.aquima.interactions.profile.ValueReference[]
com.aquima.interactions.foundation.text.ILanguage
com.aquima.interactions.portal.IPortalChange
com.aquima.interactions.portal.IProjectChange
com.aquima.interactions.foundation.IValue
getOriginalValue
(com.aquima.interactions.profile.ValueReference reference) com.aquima.interactions.portal.model.session.scope.PortalScopeType
getType()
boolean
boolean
boolean
isChangedValue
(com.aquima.interactions.profile.ValueReference reference) Methods inherited from class com.aquima.interactions.test.templates.context.TestPortalScope
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.IPortalScope
clearAttribute, getAttribute, getAttributeNames, hasAttribute, setAttribute
-
Constructor Details
-
TestRequestScope
public TestRequestScope(com.aquima.interactions.foundation.text.ILanguage language) Constructs the request scope with the language that should be returned by the getLanguage method.- Parameters:
language
- the language that should be returned by the getLanguage method.
-
-
Method Details
-
getLanguage
public com.aquima.interactions.foundation.text.ILanguage getLanguage()- Specified by:
getLanguage
in interfacecom.aquima.interactions.portal.IRequestScope
-
addChangedValue
public void addChangedValue(com.aquima.interactions.profile.ValueReference reference, com.aquima.interactions.foundation.IValue previousValue) This method may be invoked to add a value that was changed by the event.- Parameters:
reference
- The attribute whose value was changed.previousValue
- The value of the attribute before it was changed.
-
getChangedValues
public com.aquima.interactions.profile.ValueReference[] getChangedValues()- Specified by:
getChangedValues
in interfacecom.aquima.interactions.portal.IRequestScope
-
getOriginalValue
public com.aquima.interactions.foundation.IValue getOriginalValue(com.aquima.interactions.profile.ValueReference reference) - Specified by:
getOriginalValue
in interfacecom.aquima.interactions.portal.IRequestScope
-
isChangedValue
public boolean isChangedValue(com.aquima.interactions.profile.ValueReference reference) - Specified by:
isChangedValue
in interfacecom.aquima.interactions.portal.IRequestScope
-
addProjectChange
public void addProjectChange(com.aquima.interactions.portal.IProjectChange projectChange) - Specified by:
addProjectChange
in interfacecom.aquima.interactions.portal.IRequestScope
-
hasNextProjectChange
public boolean hasNextProjectChange()- Specified by:
hasNextProjectChange
in interfacecom.aquima.interactions.portal.IRequestScope
-
getNextProjectChange
public com.aquima.interactions.portal.IProjectChange getNextProjectChange()- Specified by:
getNextProjectChange
in interfacecom.aquima.interactions.portal.IRequestScope
-
addPortalChange
public void addPortalChange(com.aquima.interactions.portal.IPortalChange portalChange) - Specified by:
addPortalChange
in interfacecom.aquima.interactions.portal.IRequestScope
-
hasNextPortalChange
public boolean hasNextPortalChange()- Specified by:
hasNextPortalChange
in interfacecom.aquima.interactions.portal.IRequestScope
-
getNextPortalChange
public com.aquima.interactions.portal.IPortalChange getNextPortalChange()- Specified by:
getNextPortalChange
in interfacecom.aquima.interactions.portal.IRequestScope
-
getType
public com.aquima.interactions.portal.model.session.scope.PortalScopeType getType()- Specified by:
getType
in interfacecom.aquima.interactions.portal.IPortalScope
- Overrides:
getType
in classTestPortalScope
-