Interface INewsletterBlogDAO
-
- All Known Implementing Classes:
NewsletterBlogDAO
public interface INewsletterBlogDAOInterface for INewsletterblogDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassociateNewsLetterDocumentPortlet(int nTopicId, int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Associate a new portlet to a newsletter topicvoidassociateNewsLetterDocumentTag(int nTopicId, int nTagId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Associate a new category to a newsletter topicvoidcreateDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new newsletter blogs topic into the databasevoiddeleteDocumentTopic(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a newsletter blogs topic from the databasevoiddeleteNewsLetterDocumentPortlet(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the relationship between a topic and the list of portletsvoiddeleteNewsLetterDocumentTags(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the relationship between a topic and the list of blogsNewsletterBlogfindByPrimaryKey(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get a newsletter blogs topic from its idbooleanfindTemplate(int nIdNewsletterTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a template is used by a topicint[]selectNewsletterPortletsIds(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)loads the list of blogs list portlets linked to the newsletterint[]selectNewsletterTagIds(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)loads the list of tags linked to the newslettervoidupdateDocumentTopic(NewsletterBlog topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update a newsletter blogs topic
-
-
-
Method Detail
-
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 getplugin- 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 updateplugin- 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 removeplugin- 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 insertplugin- 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 idnDocumentCategoryId- the blogs tag identifierplugin- 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 idplugin- 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 idplugin- 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 idnPortletId- the portlet identifierplugin- 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 idplugin- 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 idplugin- 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 templateplugin- The newsletter plugin- Returns:
- True if the template is used by a topic, false otherwise
-
-