|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.business.CalendarSubscriberHome
public final class CalendarSubscriberHome
This class provides instances management methods (create, find, ...) for Subscriber objects
| Method Summary | |
|---|---|
static void |
addSubscriber(int nCalendarId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new subscriber for e calendar |
static CalendarSubscriber |
create(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the Subscriber class |
static java.util.List<CalendarSubscriber> |
findAllSubsriber(fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
static CalendarSubscriber |
findByEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a subscriber object from the email |
static CalendarSubscriber |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an object Subscriber from its identifier |
static int |
findSubscriberNumber(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns, for a subscriber, the number of his subscriptions |
static java.util.List<CalendarSubscriber> |
findSubscribers(int nCalendarId,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar |
static java.util.List<CalendarSubscriber> |
findSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar |
static java.util.List<CalendarSubscriber> |
findSubscribers(int nCalendarId,
java.lang.String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar |
static java.util.List<CalendarSubscriber> |
getSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers |
static boolean |
isUserSubscribed(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user is subscribed to any agenda |
static void |
remove(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber whose identifier is specified in parameter |
static void |
removeSubscriber(int nSubscriberId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removes an subscriber's inscription for a calendar |
static CalendarSubscriber |
update(CalendarSubscriber 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 CalendarSubscriber create(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber - the object to insert into the databaseplugin - the plugin
public static CalendarSubscriber update(CalendarSubscriber 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 CalendarSubscriber findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - the primary key of the subscriberplugin - the plugin
public static java.util.List<CalendarSubscriber> findAllSubsriber(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public static CalendarSubscriber findByEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strEmail - the subscriber's emailplugin - the plugin
public static java.util.List<CalendarSubscriber> findSubscribers(int nCalendarId,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - the calendar identifiernBegin - the rank of the first subscriber to returnnEnd - the maximum number of suscribers to returnplugin - the plugin
public static java.util.List<CalendarSubscriber> findSubscribers(int nCalendarId,
java.lang.String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - the calendar identifierstrSearchString - gets all the subscribers if null or empty
and gets the subscribers with 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.List<CalendarSubscriber> findSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - the calendar identifierplugin - the plugin
public static int findSubscriberNumber(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId - the subscriber's identifierplugin - the plugin
public static java.util.List<CalendarSubscriber> getSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public static void removeSubscriber(int nSubscriberId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - the calendar identifiernSubscriberId - the subscriber identifierplugin - the Plugin
public static void addSubscriber(int nCalendarId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - the calendar identifiernSubscriberId - the subscriber indentifierplugin - the PlugintToday - the day
public static boolean isUserSubscribed(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId - the ID of the subscriberplugin - plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||