fr.paris.lutece.plugins.calendar.business
Interface ICalendarSubscriberDAO

All Known Implementing Classes:
CalendarSubscriberDAO

public interface ICalendarSubscriberDAO

The interface representing the business methods of the subscriber


Method Summary
 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, java.sql.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
 java.util.List<CalendarSubscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the list of subscribers
 CalendarSubscriber selectByEmail(java.lang.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
 java.util.List<CalendarSubscriber> selectSubscribers(int nCalendarId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          loads the list of subscribers for a calendar
 java.util.List<CalendarSubscriber> selectSubscribers(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
 java.util.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
 

Method Detail

insert

void insert(CalendarSubscriber subscriber,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
subscriber - the object to be inserted
plugin - the Plugin

delete

void delete(int nId,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nId - the subscriber's identifier
plugin - the Plugin

load

CalendarSubscriber load(int nId,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads data from a subscriber's identifier

Parameters:
nId - the subscriber's identifier
plugin - the Plugin
Returns:
an object Subscriber

store

void store(CalendarSubscriber subscriber,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
subscriber - the instance of subscriber class to be updated
plugin - the Plugin

selectAll

java.util.List<CalendarSubscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the list of subscribers

Parameters:
plugin - the Plugin
Returns:
a collection of objects Subscriber

selectByEmail

CalendarSubscriber selectByEmail(java.lang.String strEmail,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds a subscriber from his email

Parameters:
strEmail - the subscriber's email
plugin - the Plugin
Returns:
a subscriber object if it exists, null if not

selectSubscribers

java.util.List<CalendarSubscriber> selectSubscribers(int nCalendarId,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar

Parameters:
nCalendarId - the Calendar identifier
plugin - the Plugin
Returns:
a collection of subscribers

selectSubscribers

java.util.List<CalendarSubscriber> selectSubscribers(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

Parameters:
nCalendarId - the Calendar identifier
strSearchString - gets all the subscribers if null or empty and gets the subscribers whith an email containing this string otherwise
nBegin - the rank of the first subscriber to return
nEnd - the maximum number of suscribers to return
plugin - the Plugin
Returns:
a collection of subscribers

selectSubscriberNumber

int selectSubscriberNumber(int nCalendarId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns, for a subscriber, the number of his subscriptions

Parameters:
nCalendarId - the Calendar identifier
plugin - the Plugin
Returns:
the number of subscriptions

selectSubscribersList

java.util.List<CalendarSubscriber> selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers

Parameters:
plugin - the Plugin
Returns:
a collection of subscribers

deleteSubscriber

void deleteSubscriber(int nSubscriberId,
                      int nCalendarId,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber's inscription to a newsletter

Parameters:
nSubscriberId - the subscriber identifier
nCalendarId - the Calendar identifier
plugin - the Plugin

insertSubscriber

void insertSubscriber(int nCalendarId,
                      int nSubscriberId,
                      java.sql.Timestamp tToday,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new subscriber for a calendar

Parameters:
nCalendarId - the calendar identifier
nSubscriberId - the subscriber indentifier
plugin - the Plugin
tToday - the day

isUserSubscribed

boolean isUserSubscribed(int nSubscriberId,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user is subscribed to any calendar

Parameters:
nSubscriberId - the ID of the subscriber
plugin - plugin
Returns:
true if the user is subscribed to any calendar, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.