public final class SubscriberHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Subscriber |
create(Subscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the Subscriber class
|
static Collection<Subscriber> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) |
static Subscriber |
findByEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a subscriber object from the email
|
static Subscriber |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an object Subscriber from its identifier
|
static int |
findNewsLetters(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns, for a subscriber, the number of his subscriptions
|
static Collection<Subscriber> |
findSubscribers(int nNewsLetterId,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter
|
static Collection<Subscriber> |
findSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter
|
static Collection<Subscriber> |
findSubscribers(int nNewsLetterId,
String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter
|
static Collection<Subscriber> |
findSubscribersForSending(int nNewsLetterId,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the collection of subscribers to send a newsletter
|
static Collection<Subscriber> |
getSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers
|
static void |
remove(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber whose identifier is specified in parameter
|
public static Subscriber create(Subscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber - the object to insert into the databaseplugin - the pluginpublic static void remove(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId - the subscriber's identifierplugin - the pluginpublic static Subscriber findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - the primary key of the subscriberplugin - the pluginpublic static Collection<Subscriber> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginpublic static Subscriber findByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strEmail - the subscriber's emailplugin - the pluginpublic static Collection<Subscriber> findSubscribers(int nNewsLetterId, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifiernBegin - the rank of the first subscriber to returnnEnd - the maximum number of suscribers to returnplugin - the pluginpublic static Collection<Subscriber> findSubscribersForSending(int nNewsLetterId, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - The id of the newsletternBegin - The begin index of subscribers to getnEnd - The end index of subscribers to getplugin - The pluginpublic static Collection<Subscriber> findSubscribers(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierstrSearchString - gets all the subscribers if null or empty
and gets the subscribers whith an email containing this string otherwisenBegin - the rank of the first subscriber to returnnEnd - the maximum number of suscribers to returnplugin - the pluginpublic static Collection<Subscriber> findSubscribers(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the pluginpublic static int findNewsLetters(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId - the subscriber's identifierplugin - the pluginpublic static Collection<Subscriber> getSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginCopyright © 2015 City of Paris. All rights reserved.