Class UpdateFieldVisitor
java.lang.Object
com.aquima.interactions.portal.model.session.PortalContextDelegate
com.aquima.interactions.portal.model.session.page.UpdateFieldVisitor
- All Implemented Interfaces:
IVisitor
,IPortalContext
,IInternalPortalContext
,Serializable
This visitor sets all the error messsages from the IRequestScope in the corresponding fields, and updates the field
values to reflect the value from the profile. This visitor is used when a request has failed to update the old page
model with the new values and errors.
- Since:
- 5.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateFieldVisitor
(IInternalPortalContext context, EventErrors errors, ValueReference focusRef) -
Method Summary
Modifier and TypeMethodDescriptionThis method will be invoked for each element that is encountered during the visit.protected EventError[]
getElementErrors
(RuntimeKey elementId) protected EventError[]
getFieldErrors
(ValueReference fieldReference, Field field) void
leave
(ICompositeElement compositeElement, IVisitor childVisitor) This method will be invoked after all the children of the specified container have been processed with the childVisitor.Methods inherited from class com.aquima.interactions.portal.model.session.PortalContextDelegate
forModule, forModule, getActiveInstance, getApplication, getApplicationMode, getApplicationModel, getAuditEngine, getCaseEngineClient, getCommentsManager, getCommunicationEngine, getComposer, getConfiguration, getConnectionManager, getContentManagerFactory, getContentManagerFactory, getContext, getCurrentFlow, getCurrentLanguage, getDebugger, getDocumentEngine, getElementComposer, getExpressionParser, getFactoryManager, getFlowEngine, getFlowScope, getFunctionCallDefinitionManager, getId, getMappingComposer, getMappingManager, getMaskManager, getMatchEngine, getMetaModel, getPageScope, getProcessScope, getProfile, getProject, getRequestScope, getResourceManager, getRuleEngine, getServiceManager, getSessionId, getSessionScope, getState, getTraceEngine, getTreeEngine, getUserProfile, getUserScope, getWebServices, pushActiveInstance, restore
-
Constructor Details
-
UpdateFieldVisitor
public UpdateFieldVisitor(IInternalPortalContext context, EventErrors errors, ValueReference focusRef)
-
-
Method Details
-
accept
Description copied from interface:IVisitor
This method will be invoked for each element that is encountered during the visit. The return type of this method is the visitor that should be used to process the child elements of the current element. When the current element does not have any children, or when the child elements should not be processed, this method should return a null value as result. The returned visitor may either be a new visitor, for instance with specific context information for the element, or the same visitor. -
leave
Description copied from interface:IVisitor
This method will be invoked after all the children of the specified container have been processed with the childVisitor. The implementation of this method may choose to merge the results of the child visitor with this visitor. -
getFieldErrors
-
getElementErrors
-