Class CallbackVisitor
java.lang.Object
com.aquima.interactions.portal.model.session.CallbackVisitor
- All Implemented Interfaces:
IVisitor
Page visitor that is used to invoked the handle methods for the registered callback methods.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorDescriptionCallbackVisitor
(PortalContext context, EventErrors errors, boolean beforeValidation) Constructs the callback visitor with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method will be invoked for each element that is encountered during the visit.protected IInternalPortalContext
protected EventErrors
protected InstanceStack
protected boolean
protected boolean
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.boolean
This method returns a boolean indicating if the transaction was marked for roll-back.
-
Constructor Details
-
CallbackVisitor
Constructs the callback visitor with the required arguments.- Parameters:
context
- The current portal context.errors
- Object that can be used to add errors and warnings to.beforeValidation
- Boolean indicating if the callback visitor is used before or after validation.
-
-
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. -
rollbackTransaction
public boolean rollbackTransaction()This method returns a boolean indicating if the transaction was marked for roll-back.- Returns:
- a boolean indicating if the transaction was marked for roll-back.
-
hasErrors
protected boolean hasErrors() -
isFlowBlocked
protected boolean isFlowBlocked() -
getContext
-
getInstanceContext
-
getEventErrors
-