Interface IEntryDataService
- All Known Implementing Classes:
EntryTypeDefaultDataService,EntryTypeFileDataService,EntryTypeIterableDataService
public interface IEntryDataService
Interface for the entry data services
-
Method Summary
Modifier and TypeMethodDescriptioncreateResponseFromRequest(Question question, javax.servlet.http.HttpServletRequest request, boolean bValidateQuestion) Creates the response values from request for the given questionbooleanisResponseChanged(FormQuestionResponse responseReference, FormQuestionResponse responseNew) Tests if a response has changedvoidquestionMoved(javax.servlet.http.HttpServletRequest request, Question question, int nNewIterationNumber) Performs a treatment when the question is moved in front-officevoidquestionRemoved(javax.servlet.http.HttpServletRequest request, Question question) Performs a treatment when the question is removed in front-officeresponseToStrings(FormQuestionResponse formQuestionResponse) Extracts the responses from the specified form question response as a list ofStringobjectsvoidsave(FormQuestionResponse questionResponse)
-
Method Details
-
getDataServiceName
String getDataServiceName()- Returns:
- the data service name
-
save
- Parameters:
questionResponse- the questionResponse to save
-
createResponseFromRequest
FormQuestionResponse createResponseFromRequest(Question question, javax.servlet.http.HttpServletRequest request, boolean bValidateQuestion) Creates the response values from request for the given question- Parameters:
question- the question torequest- The Http requestbValidateQuestion- the boolean to validate question- Returns:
- The response to the question
-
isResponseChanged
Tests if a response has changed- Parameters:
responseReference- the reference responseresponseNew- the new response- Returns:
trueif the response has changed,falseotherwise
-
responseToStrings
Extracts the responses from the specified form question response as a list ofStringobjects- Parameters:
formQuestionResponse- the response to convert- Returns:
- the list of
Stringobjects
-
questionRemoved
Performs a treatment when the question is removed in front-office- Parameters:
request- the requestquestion- the removed question
-
questionMoved
void questionMoved(javax.servlet.http.HttpServletRequest request, Question question, int nNewIterationNumber) Performs a treatment when the question is moved in front-office- Parameters:
request- the requestquestion- the moved questionnNewIterationNumber- the new iteration number
-