public class EntryTypeDefaultDataService extends Object implements IEntryDataService
| Constructor and Description |
|---|
EntryTypeDefaultDataService(String strEntryServiceName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
FormQuestionResponse |
createResponseFromRequest(Question question,
javax.servlet.http.HttpServletRequest request,
boolean bValidateQuestion)
Creates the response values from request for the given question
|
String |
getDataServiceName() |
boolean |
isResponseChanged(FormQuestionResponse responseReference,
FormQuestionResponse responseNew)
Tests if a response has changed
|
void |
questionMoved(javax.servlet.http.HttpServletRequest request,
Question question,
int nNewIterationNumber)
Performs a treatment when the question is moved in front-office
|
void |
questionRemoved(javax.servlet.http.HttpServletRequest request,
Question question)
Performs a treatment when the question is removed in front-office
|
List<String> |
responseToStrings(FormQuestionResponse formQuestionResponse)
Extracts the responses from the specified form question response as a list of
String objects |
void |
save(FormQuestionResponse questionResponse) |
public EntryTypeDefaultDataService(String strEntryServiceName)
strEntryServiceName - the service namepublic String getDataServiceName()
getDataServiceName in interface IEntryDataServicepublic void save(FormQuestionResponse questionResponse)
save in interface IEntryDataServicequestionResponse - the questionResponse to savepublic FormQuestionResponse createResponseFromRequest(Question question, javax.servlet.http.HttpServletRequest request, boolean bValidateQuestion)
createResponseFromRequest in interface IEntryDataServicequestion - the question torequest - The Http requestbValidateQuestion - the boolean to validate questionpublic boolean isResponseChanged(FormQuestionResponse responseReference, FormQuestionResponse responseNew)
isResponseChanged in interface IEntryDataServiceresponseReference - the reference responseresponseNew - the new responsetrue if the response has changed, false otherwisepublic List<String> responseToStrings(FormQuestionResponse formQuestionResponse)
String objectsresponseToStrings in interface IEntryDataServiceformQuestionResponse - the response to convertString objectspublic void questionRemoved(javax.servlet.http.HttpServletRequest request,
Question question)
questionRemoved in interface IEntryDataServicerequest - the requestquestion - the removed questionpublic void questionMoved(javax.servlet.http.HttpServletRequest request,
Question question,
int nNewIterationNumber)
questionMoved in interface IEntryDataServicerequest - the requestquestion - the moved questionnNewIterationNumber - the new iteration numberCopyright © 2021 City of Paris. All rights reserved.