|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INewsLetterDAO
| 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)
Checks whether a portlet uses the 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 |
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 from a specific portlet |
java.util.Collection<fr.paris.lutece.plugins.document.business.Document> |
selectDocumentsByDateAndList(int nDocumentListId,
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 topics of the newsletter |
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 |
| Method Detail |
|---|
void insert(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsLetter - the object to insertplugin - the Plugin
void delete(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the Plugin
NewsLetter load(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the Plugin
void store(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsLetter - the object to be updatedplugin - the Plugin
boolean checkPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - the key to be checkedplugin - the Plugin
boolean checkLinkedPortlet(int nIdNewsletter)
nIdNewsletter - the id of the newsletterplugin - the Plugin
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the Plugin
java.util.Collection<NewsLetter> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the Plugin
void insertSubscriber(int nNewsLetterId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifiertToday - The dayplugin - the Plugin
void deleteSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Plugin
boolean isRegistered(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Plugin
boolean isTemplateUsed(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId - the template identifierplugin - the Plugin
fr.paris.lutece.util.ReferenceList selectThemesFromIds(int[] nKeyArray)
nKeyArray - the theme identifiers list
java.lang.String selectDocumentList(int nPortletId)
nPortletId - the portlet identifier identifier
int[] selectNewsletterThemeIds(int nNewsletterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsletterId - the newsletter identifierplugin - the plugin
void associateNewsLetterTheme(int nNewsLetterId,
int nThemeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernThemeId - the topic identifierplugin - the Plugin
void deleteNewsLetterTheme(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the Plugin
java.util.Collection<fr.paris.lutece.plugins.document.business.Document> selectDocumentsByDateAndList(int nDocumentListId,
java.sql.Timestamp dateLastSending)
nDocumentListId - the document list iddateLastSending - the date of the last newsletter sending
int selectNbrSubscribers(int nNewsLetterId,
java.lang.String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter newsletterstrSearchString - the string to search in the subscriber's emailplugin - the Plugin
fr.paris.lutece.util.ReferenceList selectDocumentTypePortlets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||