|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.business.SubscriberHome
public final class SubscriberHome
This class provides instacnes management methods (create, find, ...) for Subscriber objects
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Subscriber create(Subscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber - the object to insert into the databaseplugin - the plugin
public static void remove(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId - the subscriber's identifierplugin - the plugin
public static Subscriber findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - the primary key of the subscriberplugin - the plugin
public static Collection<Subscriber> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public static Subscriber findByEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strEmail - the subscriber's emailplugin - the plugin
public 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 plugin
public 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 plugin
public 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 plugin
public static Collection<Subscriber> findSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewsLetterId - the newsletter identifierplugin - the plugin
public static int findNewsLetters(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId - the subscriber's identifierplugin - the plugin
public static Collection<Subscriber> getSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||