Package com.avoka.fc.core.service.fluent
Class FluentFormSecurityFilterService
- java.lang.Object
-
- com.avoka.fc.core.service.fluent.AbstractFluentService
-
- com.avoka.fc.core.service.fluent.FluentFormSecurityFilterService
-
- All Implemented Interfaces:
IFluentService
,IFormSecurityFilterService
,IServiceDefinitionAware
,IUnitTestableService
public class FluentFormSecurityFilterService extends AbstractFluentService implements IFormSecurityFilterService
Provides a Fluent Groovy API Form Security Filter Service.- Since:
- 5.0
-
-
Field Summary
-
Fields inherited from interface com.avoka.fc.core.service.fluent.IFluentService
PARAM_ACTION_PROPERTIES, PARAMS_FILEDATA, PARAMS_FILENAME, PARAMS_FORM, PARAMS_FORM_XML, PARAMS_FUNC_PARAM, PARAMS_JOB, PARAMS_JOB_ACTION, PARAMS_PARAMS, PARAMS_REQUEST, PARAMS_ROWS, PARAMS_SVC_DEF, PARAMS_TEST_PARAMS, PARAMS_TXN, PARAMS_USER
-
-
Constructor Summary
Constructors Constructor Description FluentFormSecurityFilterService()
-
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.fluent.AbstractFluentService
createExceptionAndLog, getCause, getClient, getCommitChanges, getExecutionTimeout, getFunctionTrigger, getGroovyScript, getGroovyServiceLog, getLogger, getRequestUser, getServiceDefinition, getServiceNameAndVersion, getServiceTimeout, getSlf4jLogger, getTestLogOutput, invoke, isExceptionDebugLoggingEnabled, isGroovyDebugLogging, isGroovyLoggingEnabled, runUnitTest, setCommitChanges, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setLogger, setServiceDefinition
-
-
-
-
Method Detail
-
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- See Also:
IFormSecurityFilterService.performCheck(HttpServletRequest, TemplateVersion, Submission)
-
getErrorType
public String getErrorType()
- Specified by:
getErrorType
in interfaceIFluentService
- Returns:
- the service error type to be used to classify the error logging records
-
-