Package com.avoka.fc.core.service.impl
Class GroovyFormSecurityFilterService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.AbstractGroovyService
-
- com.avoka.fc.core.service.impl.GroovyFormSecurityFilterService
-
- All Implemented Interfaces:
IFormSecurityFilterService
,IServiceDefinitionAware
,IUnitTestableService
public class GroovyFormSecurityFilterService extends AbstractGroovyService implements IFormSecurityFilterService
Provides a templated Groovy-based implementation of the form security filter.- Since:
- 4.3.0
-
-
Constructor Summary
Constructors Constructor Description GroovyFormSecurityFilterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorType()
void
performCheck(HttpServletRequest request, TemplateVersion version, Submission submission)
Validates a request for an in-progress submission.-
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
-
performCheck
public void performCheck(HttpServletRequest request, TemplateVersion version, Submission submission) throws RedirectException
Validates a request for an in-progress submission. Runs before the FormSubmissionAccessController.- Specified by:
performCheck
in interfaceIFormSecurityFilterService
- Parameters:
request
- the HTTP servlet requestversion
- the requested form versionsubmission
- the submission, if one exists- Throws:
RedirectException
- if the request is not valid
-
-