public interface INewsLetterDAO
| Modifier and Type | Method and Description |
|---|---|
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 |
deleteOldUnconfirmed(Timestamp confirmLimitDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Performs confirm unsubscription process
|
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,
boolean bValidate,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new subscriber for a newsletter
|
void |
insertSubscriber(int nNewsLetterId,
int nSubscriberId,
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
|
Collection<NewsLetter> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of the newsletters available
|
Collection<NewsLetter> |
selectAllByTemplateId(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a collection of NewsLetter associated with a given template
|
fr.paris.lutece.util.ReferenceList |
selectAllId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of the newsletters available
|
int |
selectNbrActiveSubscribers(int nNewsLetterId,
String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Counts the active subscribers for a newsletter
|
int |
selectNbrSubscribers(int nNewsLetterId,
String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Counts the subscribers for a newsletter
|
void |
store(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
validateSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates a subscriber for a newsletter
|
void insert(NewsLetter newsLetter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsLetter - the object to insertplugin - the Pluginvoid delete(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the PluginNewsLetter load(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the Pluginvoid store(NewsLetter newsLetter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsLetter - the object to be updatedplugin - the Pluginboolean checkPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - the key to be checkedplugin - the Pluginboolean checkLinkedPortlet(int nIdNewsletter)
nIdNewsletter - the id of the newsletterint newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the PluginCollection<NewsLetter> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the Pluginfr.paris.lutece.util.ReferenceList selectAllId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the PluginReferenceList of id and nameCollection<NewsLetter> selectAllByTemplateId(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId - The id of the templateplugin - the Pluginvoid insertSubscriber(int nNewsLetterId,
int nSubscriberId,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifiertToday - The dayplugin - the Pluginvoid deleteOldUnconfirmed(Timestamp confirmLimitDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
confirmLimitDate - all unconfirmed subscriber which subscription date is below confirmLimitDate will be deletedplugin - the pluginvoid insertSubscriber(int nNewsLetterId,
int nSubscriberId,
boolean bValidate,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierbValidate - the validation statustToday - The dayplugin - the Pluginvoid validateSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Pluginvoid deleteSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Pluginboolean isRegistered(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernSubscriberId - the subscriber identifierplugin - the Pluginboolean isTemplateUsed(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId - the template identifierplugin - the Pluginint selectNbrSubscribers(int nNewsLetterId,
String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter newsletterstrSearchString - the string to search in the subscriber's emailplugin - the Pluginint selectNbrActiveSubscribers(int nNewsLetterId,
String strSearchString,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter newsletterstrSearchString - the string to search in the subscriber's emailplugin - the PluginCopyright © 2023 City of Paris. All rights reserved.