|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.business.NewsLetterDAO
public final class NewsLetterDAO
This class provides Data Access methods for NewsLetter objects
| Constructor Summary | |
|---|---|
NewsLetterDAO()
|
|
| Method Summary | |
|---|---|
void |
associateNewsLetterTheme(int nNewsLetterId,
int nThemeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a new topic to a newsletter |
boolean |
checkLinkedPortlet(int nIdNewsletter)
Check whether a portlet is linked to a newsletter |
boolean |
checkPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check the unicity of the primary key |
void |
delete(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a record from the table |
void |
deleteAllSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes all the subscribers attached to a newsletter |
void |
deleteNewsLetterTheme(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the relationship between a newsletter and the list of themes |
void |
deleteSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber's inscription to a newsletter |
void |
insert(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertSubscriber(int nNewsLetterId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new subscriber for a newsletter |
boolean |
isRegistered(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
check if the subscriber is not yet registered to a newsletter |
boolean |
isTemplateUsed(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
controls that a template is used by a newsletter |
NewsLetter |
load(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the data of the newsletter from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generate a new primary key to add a newsletter |
java.util.Collection<NewsLetter> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of the newsletters available |
java.lang.String |
selectDocumentList(int nPortletId)
loads the list of document |
java.util.Collection<fr.paris.lutece.plugins.document.business.Document> |
selectDocumentsByDateAndList(int nPortletId,
java.sql.Timestamp dateLastSending)
Select the list of documents published since the last sending of the newsletter |
fr.paris.lutece.util.ReferenceList |
selectDocumentTypePortlets()
Returns the list of the portlets which are document portlets |
int |
selectNbrSubscribers(int nNewsLetterId,
java.lang.String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Counts the subscribers for a newsletter |
int[] |
selectNewsletterThemeIds(int nNewsletterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of documents |
fr.paris.lutece.util.ReferenceList |
selectThemesFromIds(int[] nKeyArray)
loads the list of topics from a given list of ids |
void |
store(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewsLetterDAO()
| Method Detail |
|---|
public void insert(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface INewsLetterDAOnewsLetter - the object to insertplugin - the Plugin
public void delete(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface INewsLetterDAOnNewsLetterId - the newsletter identifierplugin - the Plugin
public NewsLetter load(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface INewsLetterDAOnNewsLetterId - the newsletter identifierplugin - the Plugin
public void store(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface INewsLetterDAOnewsLetter - the object to be updatedplugin - the Plugin
public boolean checkPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkPrimaryKey in interface INewsLetterDAOnKey - the key to be checkedplugin - the Plugin
public boolean checkLinkedPortlet(int nIdNewsletter)
checkLinkedPortlet in interface INewsLetterDAOnIdNewsletter - the id of the newsletter
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface INewsLetterDAOplugin - the Plugin
public java.util.Collection<NewsLetter> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface INewsLetterDAOplugin - the Plugin
public void insertSubscriber(int nNewsLetterId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertSubscriber in interface INewsLetterDAOnNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifiertToday - The dayplugin - the Plugin
public void deleteSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteSubscriber in interface INewsLetterDAOnNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Plugin
public boolean isRegistered(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isRegistered in interface INewsLetterDAOnNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Plugin
public boolean isTemplateUsed(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isTemplateUsed in interface INewsLetterDAOnTemplateId - the template identifierplugin - the Plugin
public fr.paris.lutece.util.ReferenceList selectThemesFromIds(int[] nKeyArray)
selectThemesFromIds in interface INewsLetterDAOnKeyArray - the theme identifiers list
public java.lang.String selectDocumentList(int nPortletId)
selectDocumentList in interface INewsLetterDAOnPortletId - the portlet id
public int[] selectNewsletterThemeIds(int nNewsletterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNewsletterThemeIds in interface INewsLetterDAOnNewsletterId - the newsletter identifierplugin - the plugin
public void associateNewsLetterTheme(int nNewsLetterId,
int nThemeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
associateNewsLetterTheme in interface INewsLetterDAOnNewsLetterId - the newsletter identifiernThemeId - the topic identifierplugin - the Plugin
public void deleteNewsLetterTheme(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteNewsLetterTheme in interface INewsLetterDAOnNewsLetterId - the newsletter identifierplugin - the Plugin
public java.util.Collection<fr.paris.lutece.plugins.document.business.Document> selectDocumentsByDateAndList(int nPortletId,
java.sql.Timestamp dateLastSending)
selectDocumentsByDateAndList in interface INewsLetterDAOnPortletId - the topic identifier to select documentsdateLastSending - the date of the last newsletter sending
public int selectNbrSubscribers(int nNewsLetterId,
java.lang.String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNbrSubscribers in interface INewsLetterDAOnNewsLetterId - the newsletter newsletterstrSearchString - the string to search in the subscriber's emailplugin - the Plugin
public fr.paris.lutece.util.ReferenceList selectDocumentTypePortlets()
selectDocumentTypePortlets in interface INewsLetterDAO
public void deleteAllSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||