Class GroovyFormSavedProcessor
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.AbstractGroovyService
-
- com.avoka.fc.core.service.submission.GroovyFormSavedProcessor
-
- All Implemented Interfaces:
IServiceDefinitionAware
,IUnitTestableService
,IFormSavedProcessor
public class GroovyFormSavedProcessor extends AbstractGroovyService implements IFormSavedProcessor, IServiceDefinitionAware
Provides a GroovyScript form saved processor service.- Since:
- 3.5.0
-
-
Constructor Summary
Constructors Constructor Description GroovyFormSavedProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorType()
void
onSubmissionSaved(HttpServletRequest request, Submission submission, String submissionXML)
This event handler is invoked when the submission has been saved.-
Methods inherited from class com.avoka.fc.core.service.AbstractGroovyService
createExceptionAndLog, executeGroovyScript, executeGroovyScript, getCause, getExecutionTimeout, getGroovyScript, getGroovyServiceLog, getServiceDefinition, getServiceName, getServiceNameAndVersion, getServiceTimeout, getTestLogOutput, isExceptionDebugLoggingEnabled, isGroovyDebugLogging, isGroovyLoggingEnabled, isGroovyTypeChecked, runUnitTest, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setGroovyTypeChecked, setServiceDefinition, setUseModuleClassLoader
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.avoka.fc.core.service.IServiceDefinitionAware
getServiceDefinition, setServiceDefinition
-
-
-
-
Method Detail
-
getErrorType
public String getErrorType()
- Specified by:
getErrorType
in classAbstractGroovyService
- Returns:
- the service error type to be used to classify the error logging records
- Since:
- 4.3.4
-
onSubmissionSaved
public void onSubmissionSaved(HttpServletRequest request, Submission submission, String submissionXML)
This event handler is invoked when the submission has been saved.- Specified by:
onSubmissionSaved
in interfaceIFormSavedProcessor
- Parameters:
request
- the servlet requestsubmission
- the reference submissionsubmissionXML
- the submission form XML data- See Also:
IFormSavedProcessor.onSubmissionSaved(javax.servlet.http.HttpServletRequest, Submission, String)
-
-