public class NewsletterDocumentDAO extends Object implements INewsletterDocumentDAO
| Constructor and Description |
|---|
NewsletterDocumentDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
associateNewsLetterDocumentCategory(int nTopicId,
int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a new category to a newsletter topic
|
void |
associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a new portlet to a newsletter topic
|
void |
createDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new newsletter document topic into the database
|
void |
deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a newsletter document topic from the database
|
void |
deleteNewsLetterDocumentCategories(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the relationship between a topic and the list of documents
|
void |
deleteNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the relationship between a topic and the list of portlets
|
NewsletterDocument |
findByPrimaryKey(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a newsletter document 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
|
List<Integer> |
getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds,
Date datePublishing,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of published documents associated with a given
collection of portlets.
|
fr.paris.lutece.util.ReferenceList |
selectDocumentListPortlets()
Returns the list of the portlets which are document portlets
|
Collection<fr.paris.lutece.plugins.document.business.Document> |
selectDocumentsByDateAndCategory(int nPortletId,
Timestamp dateLastSending,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of documents published since the last sending of the
newsletter
|
int[] |
selectNewsletterCategoryIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of categories linked to the newsletter
|
int[] |
selectNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of document list portlets linked to the newsletter
|
void |
updateDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a newsletter document topic
|
public NewsletterDocument findByPrimaryKey(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface INewsletterDocumentDAOnIdTopic - the id of the topic to getplugin - The pluginpublic void updateDocumentTopic(NewsletterDocument topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateDocumentTopic in interface INewsletterDocumentDAOtopic - The topic to updateplugin - The pluginpublic void deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteDocumentTopic in interface INewsletterDocumentDAOnIdTopic - The id of the newsletter document topic to removeplugin - The pluginpublic void createDocumentTopic(NewsletterDocument topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
createDocumentTopic in interface INewsletterDocumentDAOtopic - The newsletter document topic to insertplugin - the pluginpublic Collection<fr.paris.lutece.plugins.document.business.Document> selectDocumentsByDateAndCategory(int nPortletId, Timestamp dateLastSending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDocumentsByDateAndCategory in interface INewsletterDocumentDAOnPortletId - The id of the categorydateLastSending - the date of the last newsletter sendingplugin - the document Pluginpublic fr.paris.lutece.util.ReferenceList selectDocumentListPortlets()
selectDocumentListPortlets in interface INewsletterDocumentDAOpublic void associateNewsLetterDocumentCategory(int nTopicId,
int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
associateNewsLetterDocumentCategory in interface INewsletterDocumentDAOnTopicId - the topic idnCategoryId - the document category identifierplugin - the newsletter document pluginpublic void deleteNewsLetterDocumentCategories(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteNewsLetterDocumentCategories in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document pluginpublic int[] selectNewsletterCategoryIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNewsletterCategoryIds in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document pluginpublic void associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
associateNewsLetterDocumentPortlet in interface INewsletterDocumentDAOnTopicId - the topic idnPortletId - the portlet identifierplugin - the newsletter document pluginpublic void deleteNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteNewsLetterDocumentPortlet in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document pluginpublic int[] selectNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNewsletterPortletsIds in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document pluginpublic List<Integer> getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getPublishedDocumentsIdsListByPortletIds in interface INewsletterDocumentDAOnPortletsIds - The list of portlet ids.datePublishing - TODOplugin - The document pluginpublic boolean findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findTemplate in interface INewsletterDocumentDAOnIdNewsletterTemplate - The id of the templateplugin - The newsletter pluginCopyright © 2014 Mairie de Paris. All rights reserved.