Package com.avoka.fc.core.service.form
Interface IDynamicDataService
-
- All Known Implementing Classes:
FluentDynamicDataService
,GroovyDynamicDataService
public interface IDynamicDataService
Provides a service interface for looking up dynamic form data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getEventLoggingLevel()
Return the Event Logging level[ "Info" | "Warning" | "Error" | "None" ]
.String
getFormData(HttpServletRequest request, Form form, Submission submission)
Return the lookup form data for the request and form.String
getResponseContentType()
Return the content type that shall be set on the response to the form.boolean
isAllowCallsAfterSubmission()
Return whether dynamic data calls will be accepted after form submissionboolean
isInTestMode()
Return whether the service is currently in test mode.
-
-
-
Method Detail
-
getFormData
String getFormData(HttpServletRequest request, Form form, Submission submission)
Return the lookup form data for the request and form.- Parameters:
request
- the AJAX form requestform
- the form which made the requestsubmission
- the form submission- Returns:
- the dynamic form data (typically JSON)
-
getResponseContentType
String getResponseContentType()
Return the content type that shall be set on the response to the form.- Returns:
- the content type that shall be set on the response
-
isInTestMode
boolean isInTestMode()
Return whether the service is currently in test mode. This will cause certain security checks to be skipped.- Returns:
- true if the service is in test mode
-
getEventLoggingLevel
String getEventLoggingLevel()
Return the Event Logging level[ "Info" | "Warning" | "Error" | "None" ]
.- Returns:
- the Event Logging level
[ "Info" | "Warning" | "Error" | "None" ]
-
isAllowCallsAfterSubmission
boolean isAllowCallsAfterSubmission()
Return whether dynamic data calls will be accepted after form submission- Returns:
- true if dynamic data calls will be accepted after form submission
- Since:
- 4.3.1
-
-