Interface IEntryDataService
-
- All Known Implementing Classes:
EntryTypeDefaultDataService,EntryTypeFileDataService,EntryTypeIterableDataService
public interface IEntryDataServiceInterface for the entry data services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormQuestionResponsecreateResponseFromRequest(Question question, javax.servlet.http.HttpServletRequest request, boolean bValidateQuestion)Creates the response values from request for the given questionStringgetDataServiceName()booleanisResponseChanged(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-officeList<String>responseToStrings(FormQuestionResponse formQuestionResponse)Extracts the responses from the specified form question response as a list ofStringobjectsvoidsave(FormQuestionResponse questionResponse)
-
-
-
Method Detail
-
getDataServiceName
String getDataServiceName()
- Returns:
- the data service name
-
save
void save(FormQuestionResponse questionResponse)
- 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
boolean isResponseChanged(FormQuestionResponse responseReference, FormQuestionResponse responseNew)
Tests if a response has changed- Parameters:
responseReference- the reference responseresponseNew- the new response- Returns:
trueif the response has changed,falseotherwise
-
responseToStrings
List<String> responseToStrings(FormQuestionResponse formQuestionResponse)
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
void questionRemoved(javax.servlet.http.HttpServletRequest request, Question question)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
-
-