Interface ITopicVersionDAO

  • All Known Implementing Classes:
    TopicVersionDAO

    public interface ITopicVersionDAO
    ITopicVersionDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addTopicVersion​(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Modify the topic version
      void delete​(int nIdTopicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByTopic​(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all topicVersions for a given topic
      void deleteByTopicVersion​(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      String getPageNameFromTitle​(String pageTitle, String locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the page_name with the page_title
      TopicVersion getPublishedVersion​(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      void insert​(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      TopicVersion load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Collection<TopicVersion> loadAllVersions​(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load all versions
      TopicVersion loadLastVersion​(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load last version
      Collection<TopicVersion> selectTopicVersionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the topicVersion objects and returns them as a collection
      void updateIsPublished​(int nIdTopicVersion, String comment, boolean bIsPublished, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      void updatePublishedVersion​(int idVersion, boolean isPublished, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update published version
      void updateTopicVersion​(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
    • Method Detail

      • insert

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

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

        TopicVersion 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 topicVersion
      • deleteByTopicVersion

        void deleteByTopicVersion​(int nTopicId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • updateIsPublished

        void updateIsPublished​(int nIdTopicVersion,
                               String comment,
                               boolean bIsPublished,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • selectTopicVersionsList

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

        void addTopicVersion​(TopicVersion topicVersion,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Modify the topic version
        Parameters:
        topicVersion - The topic version
        plugin - The plugin
      • updateTopicVersion

        void updateTopicVersion​(TopicVersion topicVersion,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • loadLastVersion

        TopicVersion loadLastVersion​(int idTopic,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load last version
        Parameters:
        idTopic - The topic ID
        plugin - The plugin
        Returns:
        The topic version
      • getPublishedVersion

        TopicVersion getPublishedVersion​(int nTopicId,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • loadAllVersions

        Collection<TopicVersion> loadAllVersions​(int idTopic,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load all versions
        Parameters:
        idTopic - The topic id
        plugin - The plugin
        Returns:
        The list of topics
      • deleteByTopic

        void deleteByTopic​(int nTopicId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all topicVersions for a given topic
        Parameters:
        nTopicId - The Topic Id
        plugin - the Plugin
      • updatePublishedVersion

        void updatePublishedVersion​(int idVersion,
                                    boolean isPublished,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        update published version
        Parameters:
        idVersion -
        isPublished -
      • getPageNameFromTitle

        String getPageNameFromTitle​(String pageTitle,
                                    String locale,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the page_name with the page_title
        Parameters:
        pageTitle -
        locale -
        plugin -
        Returns:
        the page name