Class UpdateCustomFieldVisitor
java.lang.Object
com.aquima.interactions.portal.model.session.page.UpdateCustomFieldVisitor
- All Implemented Interfaces:
IVisitor
This visitor sets all the values of the portal event in the corresponding custom fields, and checks required and type
validations. If errors are detected they are set in the corresponding field so the dynamic container can handle the
errors.
- Since:
- 5.2
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorDescriptionUpdateCustomFieldVisitor
(PortalEvent portalEvent, IValueFormatter inputFormat, IMetaModel model, IProject project) -
Method Summary
Modifier and TypeMethodDescriptionThis method will be invoked for each element that is encountered during the visit.protected IMultilingualText
getMessage
(String key, String[] parameters) void
leave
(ICompositeElement container, IVisitor childVisitor) This method will be invoked after all the children of the specified container have been processed with the childVisitor.
-
Constructor Details
-
UpdateCustomFieldVisitor
public UpdateCustomFieldVisitor(PortalEvent portalEvent, IValueFormatter inputFormat, IMetaModel model, IProject project)
-
-
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. -
getMessage
-
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.
-