public final class CalendarSubscriberDAO extends Object implements ICalendarSubscriberDAO
| Constructor and Description |
|---|
CalendarSubscriberDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteSubscriber(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber's inscription to a calendar
|
void |
insert(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertSubscriber(int nCalendarId,
int nSubscriberId,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new subscriber for a calendar
|
boolean |
isRegistered(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
check if the subscriber is not yet registered to a calendar
|
boolean |
isUserSubscribed(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user is subscribed to any agenda
|
CalendarSubscriber |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads data from a subscriber's identifier
|
List<CalendarSubscriber> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the list of subscribers
|
CalendarSubscriber |
selectByEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds a subscriber from his email
|
int |
selectSubscriberNumber(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns, for a subscriber, the number of his subscriptions
|
List<CalendarSubscriber> |
selectSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar
|
List<CalendarSubscriber> |
selectSubscribers(int nCalendarId,
String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a Calendar
|
List<CalendarSubscriber> |
selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers
|
void |
store(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(CalendarSubscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICalendarSubscriberDAOsubscriber - the object to be insertedplugin - the Pluginpublic void delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICalendarSubscriberDAOnId - the subscriber's identifierplugin - the Pluginpublic CalendarSubscriber load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICalendarSubscriberDAOnId - the subscriber's identifierplugin - the Pluginpublic void store(CalendarSubscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICalendarSubscriberDAOsubscriber - the instance of subscriber class to be updatedplugin - the Pluginpublic List<CalendarSubscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface ICalendarSubscriberDAOplugin - the Pluginpublic CalendarSubscriber selectByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByEmail in interface ICalendarSubscriberDAOstrEmail - the subscriber's emailplugin - the Pluginpublic List<CalendarSubscriber> selectSubscribers(int nCalendarId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribers in interface ICalendarSubscriberDAOnCalendarId - the Calendar identifierplugin - the Pluginpublic List<CalendarSubscriber> selectSubscribers(int nCalendarId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribers in interface ICalendarSubscriberDAOnCalendarId - the Calendar 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 int selectSubscriberNumber(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscriberNumber in interface ICalendarSubscriberDAOnSubscriberId - the subscriber's identifierplugin - the Pluginpublic List<CalendarSubscriber> selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribersList in interface ICalendarSubscriberDAOplugin - the Pluginpublic void deleteSubscriber(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteSubscriber in interface ICalendarSubscriberDAOnCalendarId - the calendar identifiernSubscriberId - the subscriber identifierplugin - the Pluginpublic void insertSubscriber(int nCalendarId,
int nSubscriberId,
Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertSubscriber in interface ICalendarSubscriberDAOnCalendarId - the calendar identifiernSubscriberId - the subscriber identifiertToday - The dayplugin - the Pluginpublic boolean isRegistered(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - the calendar identifiernSubscriberId - the subscriber identifierplugin - the Pluginpublic boolean isUserSubscribed(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isUserSubscribed in interface ICalendarSubscriberDAOnSubscriberId - the ID of the subscriberplugin - pluginCopyright © 2018 City of Paris. All rights reserved.