Class VisitorQuestionHome

java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.VisitorQuestionHome

public final class VisitorQuestionHome extends Object
This class provides instances management methods (create, find, ...) for VisitorQuestion objects
  • Method Details

    • create

      public static VisitorQuestion create(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creation of an instance of an article VisitorQuestion
      Parameters:
      visitorQuestion - An instance of the VisitorQuestion which contains the informations to store
      plugin - The current plugin using this method
      Returns:
      The instance of the VisitorQuestion which has been created
    • update

      public static VisitorQuestion update(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Updates of the VisitorQuestion instance specified in parameter
      Parameters:
      visitorQuestion - An instance of the VisitorQuestion which contains the informations to store
      plugin - The current plugin using this method
      Returns:
      The instance of the VisitorQuestion which has been updated.
    • remove

      public static void remove(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes the VisitorQuestion instance whose identifier is specified in parameter
      Parameters:
      nIdVisitorQuestion - The identifier of the article VisitorQuestion to delete in the database
      plugin - The current plugin using this method
    • findByPrimaryKey

      public static VisitorQuestion findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns an instance of the article VisitorQuestion whose identifier is specified in parameter
      Parameters:
      nKey - The primary key of the article to find in the database
      plugin - The current plugin using this method
      Returns:
      An instance of the VisitorQuestion which corresponds to the key
    • findAll

      public static Collection<VisitorQuestion> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns VisitorQuestion list
      Parameters:
      plugin - The current plugin using this method
      Returns:
      the list of the VisitorQuestion of the database in form of a VisitorQuestion Collection object
    • findByUser

      public static Collection<VisitorQuestion> findByUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns VisitorQuestion list
      Parameters:
      nIdUser - The User ID
      plugin - The current plugin using this method
      Returns:
      the list of the VisitorQuestion of the database in form of a VisitorQuestion Collection object
    • findByTheme

      public static Collection<VisitorQuestion> findByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns VisitorQuestion list
      Parameters:
      nIdTheme - The Theme ID
      plugin - The current plugin using this method
      Returns:
      the list of the VisitorQuestion of the database in form of a VisitorQuestion Collection object
    • findArchivedQuestionsByTheme

      public static Collection<VisitorQuestion> findArchivedQuestionsByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns VisitorQuestion list
      Parameters:
      nIdTheme - The Theme ID
      plugin - The current plugin using this method
      Returns:
      the list of the VisitorQuestion of the database in form of a VisitorQuestion Collection object