Class GroovySubmissionPreprocessor
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.AbstractGroovyService
-
- com.avoka.fc.core.service.submission.GroovySubmissionPreprocessor
-
- All Implemented Interfaces:
IServiceDefinitionAware
,ISubmissionPreprocessorService
,IUnitTestableService
public class GroovySubmissionPreprocessor extends AbstractGroovyService implements ISubmissionPreprocessorService
Provides a GroovyScript Submission Preprocessor service.
-
-
Constructor Summary
Constructors Constructor Description GroovySubmissionPreprocessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorType()
SubmissionDataBean
processSubmission(SubmissionDataBean submissionDataBean, HttpServletRequest request)
Processes and potentially rejects a submission before it is stored in Journey Manager.-
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
-
-
-
-
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
-
processSubmission
public SubmissionDataBean processSubmission(SubmissionDataBean submissionDataBean, HttpServletRequest request) throws RedirectException, SubmissionException
Processes and potentially rejects a submission before it is stored in Journey Manager.- Specified by:
processSubmission
in interfaceISubmissionPreprocessorService
- Parameters:
submissionDataBean
- the submission datarequest
- the request- Returns:
- the submission data (potentially modified)
- Throws:
RedirectException
- to redirect to another resourceSubmissionException
- if a recoverable error occurred, and the user should be able to resubmit the form using the submitted data
-
-