|
||||||||||
| 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 java.util.Collection |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
static Subscriber |
findByEmail(java.lang.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 java.util.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 java.util.Collection<Subscriber> |
findSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter |
static java.util.Collection<Subscriber> |
findSubscribers(int nNewsLetterId,
java.lang.String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter |
static java.util.Collection |
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 |
static Subscriber |
update(Subscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the subscriber's data specified in paramater |
| 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 Subscriber update(Subscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber - the instance of class which contains the data to storeplugin - 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 java.util.Collection findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public static Subscriber findByEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strEmail - the subscriber's emailplugin - the plugin
public static java.util.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 java.util.Collection<Subscriber> findSubscribers(int nNewsLetterId,
java.lang.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 java.util.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 java.util.Collection 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 | |||||||||