Package com.avoka.fc.core.service.fluent
Class FluentDynamicDataService
java.lang.Object
com.avoka.fc.core.service.fluent.AbstractFluentService
com.avoka.fc.core.service.fluent.FluentDynamicDataService
- All Implemented Interfaces:
IFluentService
,IDynamicDataService
,IGroovyDebugLogService
,IServiceDefinitionAware
,IUnitTestableService
Provides a Fluent Groovy API Form Dynamic Data service.
- Since:
- 5.0
-
Field Summary
Fields inherited from class com.avoka.fc.core.service.fluent.AbstractFluentService
inputParams
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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the Event Logging level[ "Info" | "Warning" | "Error" | "None" ]
.getFormData
(jakarta.servlet.http.HttpServletRequest request, Form form, Submission submission) Return the dynamic form data for the request and form.Return the content type that shall be set on the response to the form.boolean
Return whether dynamic data calls will be accepted after form submissionboolean
Return whether the service is currently in test mode.void
setAllowCallsAfterSubmission
(boolean allowCallsAfterSubmission) Set whether dynamic data calls will be accepted after form submissionvoid
setResponseContentType
(String responseContentType) Set the desired content type of the response sent to the form.Methods inherited from class com.avoka.fc.core.service.fluent.AbstractFluentService
buildErrorMessage, createExceptionAndLog, getCause, getClient, getCommitChanges, getExecutionTimeout, getFunctionTrigger, getGroovyDebugLogging, getGroovyScript, getGroovyServiceLog, getLogger, getRequestUser, getServiceDefinition, getServiceNameAndVersion, getServiceTimeout, getSlf4jLogger, getTestLogOutput, invoke, isExceptionDebugLoggingEnabled, isGroovyLoggingEnabled, runUnitTest, setCommitChanges, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setLogger, setServiceDefinition
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.IGroovyDebugLogService
isGroovyDebugLogging
-
Constructor Details
-
FluentDynamicDataService
public FluentDynamicDataService()
-
-
Method Details
-
getFormData
public String getFormData(jakarta.servlet.http.HttpServletRequest request, Form form, Submission submission) Return the dynamic form data for the request and form.- Specified by:
getFormData
in interfaceIDynamicDataService
- Parameters:
request
- the AJAX form request (required)form
- the form which made the request (require)submission
- the form submission- Returns:
- the dynamic form data (typically JSON)
- See Also:
-
getErrorType
- Specified by:
getErrorType
in interfaceIFluentService
- Returns:
- the service error type to be used to classify the error logging records
-
getResponseContentType
Return the content type that shall be set on the response to the form.- Specified by:
getResponseContentType
in interfaceIDynamicDataService
- Returns:
- the content type that shall be set on the response
- See Also:
-
setResponseContentType
Set the desired content type of the response sent to the form.- Parameters:
responseContentType
- the content type
-
setAllowCallsAfterSubmission
public void setAllowCallsAfterSubmission(boolean allowCallsAfterSubmission) Set whether dynamic data calls will be accepted after form submission- Parameters:
allowCallsAfterSubmission
- a parameter determining whether dynamic data calls will be accepted after form submission
-
isAllowCallsAfterSubmission
public boolean isAllowCallsAfterSubmission()Return whether dynamic data calls will be accepted after form submission- Specified by:
isAllowCallsAfterSubmission
in interfaceIDynamicDataService
- Returns:
- true if dynamic data calls will be accepted after form submission
- See Also:
-
isInTestMode
public boolean isInTestMode()Description copied from interface:IDynamicDataService
Return whether the service is currently in test mode. This will cause certain security checks to be skipped.- Specified by:
isInTestMode
in interfaceIDynamicDataService
- Returns:
- false
- See Also:
-
getEventLoggingLevel
Description copied from interface:IDynamicDataService
Return the Event Logging level[ "Info" | "Warning" | "Error" | "None" ]
.- Specified by:
getEventLoggingLevel
in interfaceIDynamicDataService
- Returns:
- "None"
- See Also:
-