Class EntryTypeDefaultDataService

java.lang.Object
fr.paris.lutece.plugins.forms.web.entrytype.EntryTypeDefaultDataService
All Implemented Interfaces:
IEntryDataService
Direct Known Subclasses:
EntryTypeFileDataService, EntryTypeIterableDataService

public class EntryTypeDefaultDataService extends Object implements IEntryDataService
Default entry data service
  • Constructor Details

    • EntryTypeDefaultDataService

      public EntryTypeDefaultDataService(String strEntryServiceName)
      Constructor
      Parameters:
      strEntryServiceName - the service name
  • Method Details

    • getDataServiceName

      public String getDataServiceName()
      Specified by:
      getDataServiceName in interface IEntryDataService
      Returns:
      the data service name
    • save

      public void save(FormQuestionResponse questionResponse)
      Specified by:
      save in interface IEntryDataService
      Parameters:
      questionResponse - the questionResponse to save
    • 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 List<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