Interface ITopicDAO

  • All Known Implementing Classes:
    TopicDAO

    public interface ITopicDAO
    ITopicDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Map getLastEditAttempt​(int nIdTopic)
      Get the last edit attempt
      void insert​(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Topic load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Topic loadByName​(String strTopicName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a topic
      Collection<Topic> selectTopicsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the topic objects and returns them as a collection
      void setChildrenToEmptyParent​(String strPageTitle)
      Set children to empty parent
      void store​(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      void updateLastEditAttempt​(int nIdTopic, String strLuteceUserName)
      UPDATE wiki_last_edits
    • Method Detail

      • insert

        void insert​(Topic topic,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        topic - instance of the Topic object to inssert
        plugin - the Plugin
      • store

        void store​(Topic topic,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        topic - the reference of the Topic
        plugin - the Plugin
      • delete

        void delete​(int nIdTopic,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdTopic - int identifier of the Topic to delete
        plugin - the Plugin
      • load

        Topic load​(int nKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The key
        plugin - the Plugin
        Returns:
        The instance of the topic
      • selectTopicsList

        Collection<Topic> selectTopicsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the topic objects and returns them as a collection
        Parameters:
        plugin - the Plugin
        Returns:
        The collection which contains the data of all the topic objects
      • loadByName

        Topic loadByName​(String strTopicName,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load a topic
        Parameters:
        strTopicName - The topic name
        plugin - The plugin
        Returns:
        The topic
      • updateLastEditAttempt

        void updateLastEditAttempt​(int nIdTopic,
                                   String strLuteceUserName)
        UPDATE wiki_last_edits
        Parameters:
        nIdTopic - The IdTopic
        strLuteceUserName - The LuteceUserId
        timestamp - The DateEdition
      • getLastEditAttempt

        Map getLastEditAttempt​(int nIdTopic)
        Get the last edit attempt
        Parameters:
        nIdTopic - The topic id
        Returns:
        The last edit attempt
      • setChildrenToEmptyParent

        void setChildrenToEmptyParent​(String strPageTitle)
        Set children to empty parent
        Parameters:
        nIdTopic - The topic id