|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.modules.document.business.NewsletterDocumentDAO
public class NewsletterDocumentDAO
DAO implementation for newsletter document
| Constructor Summary | |
|---|---|
NewsletterDocumentDAO()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewsletterDocumentDAO()
| Method Detail |
|---|
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 plugin
public void updateDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateDocumentTopic in interface INewsletterDocumentDAOtopic - The topic to updateplugin - The plugin
public 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 plugin
public void createDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
createDocumentTopic in interface INewsletterDocumentDAOtopic - The newsletter document topic to insertplugin - the plugin
public 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 Plugin
public fr.paris.lutece.util.ReferenceList selectDocumentListPortlets()
selectDocumentListPortlets in interface INewsletterDocumentDAO
public 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 plugin
public void deleteNewsLetterDocumentCategories(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteNewsLetterDocumentCategories in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document plugin
public int[] selectNewsletterCategoryIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNewsletterCategoryIds in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document plugin
public 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 plugin
public void deleteNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteNewsLetterDocumentPortlet in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document plugin
public int[] selectNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNewsletterPortletsIds in interface INewsletterDocumentDAOnTopicId - the topic idplugin - the newsletter document plugin
public 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 plugin
public boolean findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findTemplate in interface INewsletterDocumentDAOnIdNewsletterTemplate - The id of the templateplugin - The newsletter plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||