|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.service.AgendaSubscriberService
public final class AgendaSubscriberService
The class responsible for the subscription and unsubscription process
| Field Summary | |
|---|---|
static String |
JSP_URL_DO_UNSUBSCRIBE
|
| Method Summary | |
|---|---|
void |
doNotificationSubscription(AgendaResource agenda,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Notify the subscription |
void |
doSendMail(String strRecipientTo,
String strSenderName,
String strSenderEmail,
String strSubject,
String strMessage)
Send the mail |
void |
doSubscription(javax.servlet.http.HttpServletRequest request)
Performs the subscription process Throw a SiteMessage |
void |
doUnSubscribe(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Performs unsubscription process Throw a SiteMessage |
void |
doValidationSubscription(javax.servlet.http.HttpServletRequest request)
Validate subscription |
static AgendaSubscriberService |
getInstance()
Fetches the singleton instance |
int |
getSubscriberNumber(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of subscribers of a calendar |
Collection<CalendarSubscriber> |
getSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of subscribers of a calendar |
String |
sendFriendMail(javax.servlet.http.HttpServletRequest request)
Send the calendar to a friend |
void |
sendSubscriberMail(javax.servlet.http.HttpServletRequest request,
Collection<CalendarSubscriber> listSubscribers,
Event event,
int nCalendarId)
Send an event to a list of subscribers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JSP_URL_DO_UNSUBSCRIBE
| Method Detail |
|---|
public static AgendaSubscriberService getInstance()
public void doSubscription(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - The Http request
fr.paris.lutece.portal.service.message.SiteMessageException - The
error message thrown to the user
public void doUnSubscribe(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - The http requestplugin - The plugin
fr.paris.lutece.portal.service.message.SiteMessageException - The
error message handled by the front office
public void doSendMail(String strRecipientTo,
String strSenderName,
String strSenderEmail,
String strSubject,
String strMessage)
strRecipientTo - Subscriber emailstrSenderName - The sender name.strSenderEmail - The sender email address.strSubject - The message subject.strMessage - The message.
public void sendSubscriberMail(javax.servlet.http.HttpServletRequest request,
Collection<CalendarSubscriber> listSubscribers,
Event event,
int nCalendarId)
request - the http requestlistSubscribers - a Collectionevent - the eventnCalendarId - The id of the calendar
public String sendFriendMail(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - the http request
fr.paris.lutece.portal.service.message.SiteMessageException - To display an error
public void doNotificationSubscription(AgendaResource agenda,
javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.message.SiteMessageException
agenda - The agendarequest - HttpServletRequestplugin - The plugin
fr.paris.lutece.portal.service.message.SiteMessageException - site message exception
public void doValidationSubscription(javax.servlet.http.HttpServletRequest request)
throws fr.paris.lutece.portal.service.message.SiteMessageException
request - HttpServletRequest
fr.paris.lutece.portal.service.message.SiteMessageException - site message exception
public int getSubscriberNumber(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - The id of the calendar to get the number of
subscribers ofplugin - The plugin
public Collection<CalendarSubscriber> getSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - The id of the calendar to get the list of subscribers
ofplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||