Class EntryTypeDefaultDataService

    • Constructor Detail

      • EntryTypeDefaultDataService

        public EntryTypeDefaultDataService​(java.lang.String strEntryServiceName)
        Constructor
        Parameters:
        strEntryServiceName - the service name
    • Method Detail

      • createResponseFromRequest

        public FormQuestionResponse createResponseFromRequest​(Question question,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              boolean bValidateQuestion)
        Creates the response values from request for the given question
        Specified by:
        createResponseFromRequest in interface IEntryDataService
        Parameters:
        question - the question to
        request - The Http request
        bValidateQuestion - the boolean to validate question
        Returns:
        The response to the question
      • isResponseChanged

        public boolean isResponseChanged​(FormQuestionResponse responseReference,
                                         FormQuestionResponse responseNew)
        Tests if a response has changed
        Specified by:
        isResponseChanged in interface IEntryDataService
        Parameters:
        responseReference - the reference response
        responseNew - the new response
        Returns:
        true if the response has changed, false otherwise
      • responseToStrings

        public java.util.List<java.lang.String> responseToStrings​(FormQuestionResponse formQuestionResponse)
        Extracts the responses from the specified form question response as a list of String objects
        Specified by:
        responseToStrings in interface IEntryDataService
        Parameters:
        formQuestionResponse - the response to convert
        Returns:
        the list of String objects
      • questionRemoved

        public void questionRemoved​(javax.servlet.http.HttpServletRequest request,
                                    Question question)
        Performs a treatment when the question is removed in front-office
        Specified by:
        questionRemoved in interface IEntryDataService
        Parameters:
        request - the request
        question - the removed question
      • questionMoved

        public void questionMoved​(javax.servlet.http.HttpServletRequest request,
                                  Question question,
                                  int nNewIterationNumber)
        Performs a treatment when the question is moved in front-office
        Specified by:
        questionMoved in interface IEntryDataService
        Parameters:
        request - the request
        question - the moved question
        nNewIterationNumber - the new iteration number