Class ResponseHome


  • public final class ResponseHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Response objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void create​(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creation of an instance of response
      static Response findByPrimaryKey​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns an instance of a Response whose identifier is specified in parameter
      static java.util.List<Response> getResponseList​(ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the response who verify the filter and returns them in a list
      static java.util.List<StatisticEntrySubmit> getStatisticByIdEntry​(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      return a list of statistic on the entry
      static void remove​(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all response associate to the form submit whose identifier is specified in parameter
      static void update​(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update of the response which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static void create​(Response response,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Creation of an instance of response
        Parameters:
        response - The instance of the response which contains the informations to store
        plugin - the Plugin
      • update

        public static void update​(Response response,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update of the response which is specified in parameter
        Parameters:
        response - The instance of the Response which contains the informations to update
        plugin - the Plugin
      • remove

        public static void remove​(int nIdFormSubmit,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all response associate to the form submit whose identifier is specified in parameter
        Parameters:
        nIdFormSubmit - The formSubmitKey
        plugin - the Plugin
      • findByPrimaryKey

        public static Response findByPrimaryKey​(int nKey,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns an instance of a Response whose identifier is specified in parameter
        Parameters:
        nKey - The entry primary key
        plugin - the Plugin
        Returns:
        an instance of Response
      • getResponseList

        public static java.util.List<Response> getResponseList​(ResponseFilter filter,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the response who verify the filter and returns them in a list
        Parameters:
        filter - the filter
        plugin - the plugin
        Returns:
        the list of response
      • getStatisticByIdEntry

        public static java.util.List<StatisticEntrySubmit> getStatisticByIdEntry​(int nIdEntry,
                                                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        return a list of statistic on the entry
        Parameters:
        nIdEntry - the id of the entry
        plugin - the plugin
        Returns:
        return a list of statistic on the entry