public final class CalendarSubscriberHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addSubscriber(int nCalendarId,
int nSubscriberId,
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 List<CalendarSubscriber> |
findAllSubsriber(fr.paris.lutece.portal.service.plugin.Plugin plugin) |
static CalendarSubscriber |
findByEmail(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 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 List<CalendarSubscriber> |
findSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar
|
static List<CalendarSubscriber> |
findSubscribers(int nCalendarId,
String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar
|
static 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
|
public static CalendarSubscriber create(CalendarSubscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber
- the object to insert into the databaseplugin
- the pluginpublic 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 pluginpublic static void remove(int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId
- the subscriber's identifierplugin
- the pluginpublic static CalendarSubscriber findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- the primary key of the subscriberplugin
- the pluginpublic static List<CalendarSubscriber> findAllSubsriber(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginpublic static CalendarSubscriber findByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strEmail
- the subscriber's emailplugin
- the pluginpublic static 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 pluginpublic static List<CalendarSubscriber> findSubscribers(int nCalendarId, 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 pluginpublic static List<CalendarSubscriber> findSubscribers(int nCalendarId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId
- the calendar identifierplugin
- the pluginpublic static int findSubscriberNumber(int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId
- the agenda's identifierplugin
- the pluginpublic static List<CalendarSubscriber> getSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginpublic static void removeSubscriber(int nSubscriberId, int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId
- the calendar identifiernSubscriberId
- the subscriber identifierplugin
- the Pluginpublic static void addSubscriber(int nCalendarId, int nSubscriberId, Timestamp tToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId
- the calendar identifiernSubscriberId
- the subscriber indentifierplugin
- the PlugintToday
- the daypublic static boolean isUserSubscribed(int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId
- the ID of the subscriberplugin
- pluginCopyright © 2015 City of Paris. All rights reserved.