public final class NewsLetterHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addSubscriber(int nNewsLetterId,
int nSubscriberId,
boolean bValidate,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new subscriber for e newsletter
|
static void |
addSubscriber(int nNewsLetterId,
int nSubscriberId,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new subscriber for e newsletter.
|
static boolean |
checkLinkedPortlets(int nIdNewsletter)
Verifies if a portlet uses a newsletter
|
static NewsLetter |
create(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the newsletter
|
static Collection<NewsLetter> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of NewsLetter objects
|
static Collection<NewsLetter> |
findAllByTemplateId(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a collection of NewsLetter associated with a given template
|
static fr.paris.lutece.util.ReferenceList |
findAllId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a ReferenceList of NewsLetter ids and names
|
static NewsLetter |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an object NewsLetter from its identifier
|
static int |
findNbrActiveSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of active subscriber for a newsletter
|
static int |
findNbrSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of subscriber for a newsletter
|
static boolean |
findRegistration(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
controls that a subscriber is not yet registered for a newsletter
|
static boolean |
isTemplateUsedByNewsletter(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
controls that a template is used by a newsletter
|
static void |
remove(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the record from the identifier a newsletter
|
static void |
removeOldUnconfirmed(int nConfirmLimit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Performs confirm unsubscription process
|
static void |
removeSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removes an subscriber's inscription for a newsletter
|
static NewsLetter |
update(NewsLetter newsLetter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
update of the newsletter which is specified in parameter
|
static void |
validateSubscriber(int nNewsLetterId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
validates a new subscriber for a newsletter
|
public static NewsLetter create(NewsLetter newsLetter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsLetter
- the object to insert into the databaseplugin
- the Pluginpublic static NewsLetter update(NewsLetter newsLetter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsLetter
- the instance of newsletter which contains the data to
storeplugin
- the Pluginpublic static void remove(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the newsletter identifierplugin
- the Pluginpublic static NewsLetter findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- the primary key of the newsletterplugin
- the Pluginpublic static Collection<NewsLetter> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the Pluginpublic static fr.paris.lutece.util.ReferenceList findAllId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the Pluginpublic static Collection<NewsLetter> findAllByTemplateId(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId
- The id of the templateplugin
- the Pluginpublic static void addSubscriber(int nNewsLetterId, int nSubscriberId, Timestamp tToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the newsletter identifiernSubscriberId
- the subscriber identifierplugin
- the PlugintToday
- the daypublic static void addSubscriber(int nNewsLetterId, int nSubscriberId, boolean bValidate, Timestamp tToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the newsletter identifiernSubscriberId
- the subscriber identifierbValidate
- true if user is automatically confirmed,
false otherwiseplugin
- the PlugintToday
- the daypublic static void validateSubscriber(int nNewsLetterId, int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the newsletter identifiernSubscriberId
- the subscriber identifierplugin
- the Pluginpublic static void removeSubscriber(int nNewsLetterId, int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the newsletter identifiernSubscriberId
- the subscriber identifierplugin
- the Pluginpublic static void removeOldUnconfirmed(int nConfirmLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nConfirmLimit
- How many days before deleting a subscriberplugin
- the pluginpublic static int findNbrSubscribers(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the identifier of the newsletterplugin
- the Pluginpublic static int findNbrActiveSubscribers(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the identifier of the newsletterplugin
- the Pluginpublic static boolean findRegistration(int nNewsLetterId, int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId
- the newsletter identifiernSubscriberId
- the subscriber identifierplugin
- the Pluginpublic static boolean isTemplateUsedByNewsletter(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTemplateId
- the template identifierplugin
- the Pluginpublic static boolean checkLinkedPortlets(int nIdNewsletter)
nIdNewsletter
- the template identifierCopyright © 2019 City of Paris. All rights reserved.