info.magnolia.module.form.processors
Interface FormProcessor
- All Known Implementing Classes:
- AbstractEMailFormProcessor, AbstractFormProcessor, SendConfirmationEMailProcessor, SendContactEMailProcessor, TrackEmailProcessor
public interface FormProcessor
Processes a submitted form.
- Author:
- tmiyar
Method Summary |
void |
process(javax.jcr.Node content,
Map<String,Object> parameters)
Performs an action when a form is submitted and validates successfully. |
process
void process(javax.jcr.Node content,
Map<String,Object> parameters)
throws FormProcessorFailedException
- Performs an action when a form is submitted and validates successfully. When encountering errors the
FormProcessor can throw FormProcessorFailedException with a messages suitable to be displayed to the user. If it
throws a runtime exception it is logged and a generic error message is displayed to the user.
- Parameters:
content
- the node used to configure the processor, this is where it can find its settingsparameters
- a map of the parameters collected from the form
- Throws:
FormProcessorFailedException
- when an error occurs and the FormProcessor has a message that is suitable error message for the user
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.