public interface ICalendarSubscriberDAO
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 nSubscriberId,
int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber's inscription to a newsletter
|
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 |
isUserSubscribed(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user is subscribed to any calendar
|
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 nCalendarId,
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
|
void insert(CalendarSubscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber
- the object to be insertedplugin
- the Pluginvoid delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId
- the subscriber's identifierplugin
- the PluginCalendarSubscriber load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId
- the subscriber's identifierplugin
- the Pluginvoid store(CalendarSubscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
subscriber
- the instance of subscriber class to be updatedplugin
- the PluginList<CalendarSubscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the PluginCalendarSubscriber selectByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strEmail
- the subscriber's emailplugin
- the PluginList<CalendarSubscriber> selectSubscribers(int nCalendarId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId
- the Calendar identifierplugin
- the PluginList<CalendarSubscriber> selectSubscribers(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 whith an email containing this string otherwisenBegin
- the rank of the first subscriber to returnnEnd
- the maximum number of suscribers to returnplugin
- the Pluginint selectSubscriberNumber(int nCalendarId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId
- the Calendar identifierplugin
- the PluginList<CalendarSubscriber> selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the Pluginvoid deleteSubscriber(int nSubscriberId, int nCalendarId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId
- the subscriber identifiernCalendarId
- the Calendar identifierplugin
- the Pluginvoid insertSubscriber(int nCalendarId, int nSubscriberId, Timestamp tToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId
- the calendar identifiernSubscriberId
- the subscriber indentifierplugin
- the PlugintToday
- the dayboolean isUserSubscribed(int nSubscriberId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSubscriberId
- the ID of the subscriberplugin
- pluginCopyright © 2018 City of Paris. All rights reserved.