Interface INewsletterBlogDAO

All Known Implementing Classes:
NewsletterBlogDAO

public interface INewsletterBlogDAO
Interface for INewsletterblogDAO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    associateNewsLetterDocumentPortlet(int nTopicId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Associate a new portlet to a newsletter topic
    void
    associateNewsLetterDocumentTag(int nTopicId, int nTagId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Associate a new category to a newsletter topic
    void
    createDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new newsletter blogs topic into the database
    void
    deleteDocumentTopic(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove a newsletter blogs topic from the database
    void
    deleteNewsLetterDocumentPortlet(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the relationship between a topic and the list of portlets
    void
    deleteNewsLetterDocumentTags(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove the relationship between a topic and the list of blogs
    findByPrimaryKey(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get a newsletter blogs topic from its id
    boolean
    findTemplate(int nIdNewsletterTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if a template is used by a topic
    int[]
    selectNewsletterPortletsIds(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads the list of blogs list portlets linked to the newsletter
    int[]
    selectNewsletterTagIds(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    loads the list of tags linked to the newsletter
    void
    updateDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update a newsletter blogs topic
  • Method Details

    • findByPrimaryKey

      NewsletterBlog findByPrimaryKey(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get a newsletter blogs topic from its id
      Parameters:
      nIdTopic - the id of the topic to get
      plugin - The plugin
      Returns:
      The topic, or null if no topic was found
    • updateDocumentTopic

      void updateDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update a newsletter blogs topic
      Parameters:
      topic - The topic to update
      plugin - The plugin
    • deleteDocumentTopic

      void deleteDocumentTopic(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a newsletter blogs topic from the database
      Parameters:
      nIdTopic - The id of the newsletter blogs topic to remove
      plugin - The plugin
    • createDocumentTopic

      void createDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new newsletter blogs topic into the database
      Parameters:
      topic - The newsletter blogs topic to insert
      plugin - the plugin
    • associateNewsLetterDocumentTag

      void associateNewsLetterDocumentTag(int nTopicId, int nTagId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Associate a new category to a newsletter topic
      Parameters:
      nTopicId - the topic id
      nDocumentCategoryId - the blogs tag identifier
      plugin - the newsletter blogs plugin
    • deleteNewsLetterDocumentTags

      void deleteNewsLetterDocumentTags(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the relationship between a topic and the list of blogs
      Parameters:
      nTopicId - the topic id
      plugin - the newsletter blogs plugin
    • selectNewsletterTagIds

      int[] selectNewsletterTagIds(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads the list of tags linked to the newsletter
      Parameters:
      nTopicId - the topic id
      plugin - the newsletter blogs plugin
      Returns:
      the array of tag id
    • associateNewsLetterDocumentPortlet

      void associateNewsLetterDocumentPortlet(int nTopicId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Associate a new portlet to a newsletter topic
      Parameters:
      nTopicId - the topic id
      nPortletId - the portlet identifier
      plugin - the newsletter blogs plugin
    • deleteNewsLetterDocumentPortlet

      void deleteNewsLetterDocumentPortlet(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the relationship between a topic and the list of portlets
      Parameters:
      nTopicId - the topic id
      plugin - the newsletter blogs plugin
    • selectNewsletterPortletsIds

      int[] selectNewsletterPortletsIds(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      loads the list of blogs list portlets linked to the newsletter
      Parameters:
      nTopicId - the topic id
      plugin - the newsletter blogs plugin
      Returns:
      the array of categories id
    • findTemplate

      boolean findTemplate(int nIdNewsletterTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a template is used by a topic
      Parameters:
      nIdNewsletterTemplate - The id of the template
      plugin - The newsletter plugin
      Returns:
      True if the template is used by a topic, false otherwise