com.stratelia.webactiv.agenda.notification
Class AgendaUserNotification

java.lang.Object
  extended by com.silverpeas.notification.builder.AbstractUserNotificationBuilder
      extended by com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder<T>
          extended by com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>
              extended by com.stratelia.webactiv.agenda.notification.AgendaUserNotification
All Implemented Interfaces:
UserNotificationBuilder

public class AgendaUserNotification
extends AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

User notification from "My Diary" application.

Author:
Yohann Chastagnier

Constructor Summary
AgendaUserNotification(NotifAction action, UserDetail sender, com.stratelia.webactiv.calendar.model.JournalHeader resource)
          Notification from delegator
AgendaUserNotification(UserDetail sender, com.stratelia.webactiv.calendar.model.JournalHeader resource, String attend)
          Notification from attendee
 
Method Summary
protected  NotifAction getAction()
           
protected  String getBundleSubjectKey()
           
protected  com.stratelia.webactiv.calendar.control.SilverpeasCalendar getCalendarBm()
           
protected  String getComponentInstanceId()
           
protected  String getContributionAccessLinkLabelBundleKey()
           
protected  String getFileName()
           
protected  String getMultilangPropertyFile()
           
protected  String getResourceURL(com.stratelia.webactiv.calendar.model.JournalHeader resource)
           
protected  String getSender()
           
protected  String getTemplatePath()
           
protected  Collection<String> getUserIdsToNotify()
           
protected  void initialize()
           
protected  boolean isSendImmediatly()
           
protected  void performNotificationResource(String language, com.stratelia.webactiv.calendar.model.JournalHeader resource, NotificationResourceData notificationResourceData)
           
protected  void performTemplateData(String language, com.stratelia.webactiv.calendar.model.JournalHeader resource, SilverpeasTemplate template)
           
 
Methods inherited from class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder
createNotification, createTemplate, getTitle, perform, performBuild, performNotificationResource, performNotificationResource
 
Methods inherited from class com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder
getResource, initializeNotificationResourceData, performBuild, setResource
 
Methods inherited from class com.silverpeas.notification.builder.AbstractUserNotificationBuilder
build, getBundle, getBundle, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getUserIdsToExcludeFromNotifying, performUsersToBeNotified, stop, stopWhenNoUserToNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgendaUserNotification

public AgendaUserNotification(NotifAction action,
                              UserDetail sender,
                              com.stratelia.webactiv.calendar.model.JournalHeader resource)
Notification from delegator

Parameters:
action -
sender -
resource -

AgendaUserNotification

public AgendaUserNotification(UserDetail sender,
                              com.stratelia.webactiv.calendar.model.JournalHeader resource,
                              String attend)
Notification from attendee

Parameters:
sender -
resource -
attend -
Method Detail

initialize

protected void initialize()
Overrides:
initialize in class AbstractResourceUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getBundleSubjectKey

protected String getBundleSubjectKey()
Specified by:
getBundleSubjectKey in class AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getFileName

protected String getFileName()
Overrides:
getFileName in class AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getUserIdsToNotify

protected Collection<String> getUserIdsToNotify()
Specified by:
getUserIdsToNotify in class AbstractUserNotificationBuilder

performTemplateData

protected void performTemplateData(String language,
                                   com.stratelia.webactiv.calendar.model.JournalHeader resource,
                                   SilverpeasTemplate template)
Specified by:
performTemplateData in class AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

performNotificationResource

protected void performNotificationResource(String language,
                                           com.stratelia.webactiv.calendar.model.JournalHeader resource,
                                           NotificationResourceData notificationResourceData)
Specified by:
performNotificationResource in class AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getResourceURL

protected String getResourceURL(com.stratelia.webactiv.calendar.model.JournalHeader resource)
Overrides:
getResourceURL in class AbstractResourceUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getTemplatePath

protected String getTemplatePath()
Specified by:
getTemplatePath in class AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getAction

protected NotifAction getAction()
Specified by:
getAction in class AbstractUserNotificationBuilder

getComponentInstanceId

protected String getComponentInstanceId()
Specified by:
getComponentInstanceId in class AbstractUserNotificationBuilder

getSender

protected String getSender()
Specified by:
getSender in class AbstractUserNotificationBuilder

getMultilangPropertyFile

protected String getMultilangPropertyFile()
Overrides:
getMultilangPropertyFile in class AbstractUserNotificationBuilder

isSendImmediatly

protected boolean isSendImmediatly()
Overrides:
isSendImmediatly in class AbstractResourceUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>

getCalendarBm

protected com.stratelia.webactiv.calendar.control.SilverpeasCalendar getCalendarBm()
Returns:
the calendarBm

getContributionAccessLinkLabelBundleKey

protected String getContributionAccessLinkLabelBundleKey()
Overrides:
getContributionAccessLinkLabelBundleKey in class AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.calendar.model.JournalHeader>


Copyright © 2016 Silverpeas. All Rights Reserved.