public interface INewsletterDocumentDAO
| Modifier and Type | Method and Description |
|---|---|
void |
associateNewsLetterDocumentCategory(int nTopicId,
int nDocumentCategoryId,
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 nCategoryId,
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
|
NewsletterDocument findByPrimaryKey(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTopic - the id of the topic to getplugin - The pluginvoid updateDocumentTopic(NewsletterDocument topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
topic - The topic to updateplugin - The pluginvoid deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTopic - The id of the newsletter document topic to removeplugin - The pluginvoid createDocumentTopic(NewsletterDocument topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
topic - The newsletter document topic to insertplugin - the pluginCollection<fr.paris.lutece.plugins.document.business.Document> selectDocumentsByDateAndCategory(int nCategoryId, Timestamp dateLastSending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCategoryId - The id of the categorydateLastSending - the date of the last newsletter sendingplugin - the document Pluginfr.paris.lutece.util.ReferenceList selectDocumentListPortlets()
void associateNewsLetterDocumentCategory(int nTopicId,
int nDocumentCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idnDocumentCategoryId - the document category identifierplugin - the newsletter document pluginvoid deleteNewsLetterDocumentCategories(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idplugin - the newsletter document pluginint[] selectNewsletterCategoryIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idplugin - the newsletter document pluginvoid associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idnPortletId - the portlet identifierplugin - the newsletter document pluginvoid deleteNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idplugin - the newsletter document pluginint[] selectNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idplugin - the newsletter document pluginList<Integer> getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds, Date datePublishing, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds - The list of portlet ids.datePublishing - TODOplugin - The document pluginboolean findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletterTemplate - The id of the templateplugin - The newsletter pluginCopyright © 2014 Mairie de Paris. All rights reserved.