com.stratelia.webactiv.survey.notification
Class SurveyUserNotification

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.util.questionContainer.model.QuestionContainerDetail>
              extended by com.stratelia.webactiv.survey.notification.SurveyUserNotification
All Implemented Interfaces:
com.silverpeas.notification.builder.UserNotificationBuilder

public class SurveyUserNotification
extends com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>

The centralization of the construction of the survey notifications

Author:
Cécile Bonin

Constructor Summary
SurveyUserNotification(String componentInstanceId, com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail surveyDetail, String pathToSurvey, com.stratelia.webactiv.beans.admin.UserDetail userDetail, com.stratelia.webactiv.beans.admin.UserDetail[] participants)
           
 
Method Summary
protected  com.stratelia.silverpeas.notificationManager.constant.NotifAction getAction()
           
protected  String getBundleSubjectKey()
           
protected  String getComponentInstanceId()
           
protected  String getContributionAccessLinkLabelBundleKey()
           
protected  String getFileName()
           
protected  String getMultilangPropertyFile()
           
protected  String getSender()
           
protected  String getTemplatePath()
           
protected  Collection<String> getUserIdsToNotify()
           
protected  void performNotificationResource(String language, com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail resource, com.silverpeas.notification.model.NotificationResourceData notificationResourceData)
           
protected  void performTemplateData(String language, com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail resource, com.silverpeas.util.template.SilverpeasTemplate template)
           
protected  boolean stopWhenNoUserToNotify()
           
 
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, getResourceURL, initialize, initializeNotificationResourceData, isSendImmediatly, performBuild, setResource
 
Methods inherited from class com.silverpeas.notification.builder.AbstractUserNotificationBuilder
build, getBundle, getBundle, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getUserIdsToExcludeFromNotifying, performUsersToBeNotified, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurveyUserNotification

public SurveyUserNotification(String componentInstanceId,
                              com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail surveyDetail,
                              String pathToSurvey,
                              com.stratelia.webactiv.beans.admin.UserDetail userDetail,
                              com.stratelia.webactiv.beans.admin.UserDetail[] participants)
Method Detail

getBundleSubjectKey

protected String getBundleSubjectKey()
Specified by:
getBundleSubjectKey in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>

getFileName

protected String getFileName()
Overrides:
getFileName in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>

getUserIdsToNotify

protected Collection<String> getUserIdsToNotify()
Specified by:
getUserIdsToNotify in class com.silverpeas.notification.builder.AbstractUserNotificationBuilder

stopWhenNoUserToNotify

protected boolean stopWhenNoUserToNotify()
Overrides:
stopWhenNoUserToNotify in class com.silverpeas.notification.builder.AbstractUserNotificationBuilder

performTemplateData

protected void performTemplateData(String language,
                                   com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail resource,
                                   com.silverpeas.util.template.SilverpeasTemplate template)
Specified by:
performTemplateData in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>

performNotificationResource

protected void performNotificationResource(String language,
                                           com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail resource,
                                           com.silverpeas.notification.model.NotificationResourceData notificationResourceData)
Specified by:
performNotificationResource in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>

getTemplatePath

protected String getTemplatePath()
Specified by:
getTemplatePath in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>

getAction

protected com.stratelia.silverpeas.notificationManager.constant.NotifAction getAction()
Specified by:
getAction in class com.silverpeas.notification.builder.AbstractUserNotificationBuilder

getComponentInstanceId

protected String getComponentInstanceId()
Specified by:
getComponentInstanceId in class com.silverpeas.notification.builder.AbstractUserNotificationBuilder

getSender

protected String getSender()
Specified by:
getSender in class com.silverpeas.notification.builder.AbstractUserNotificationBuilder

getMultilangPropertyFile

protected String getMultilangPropertyFile()
Overrides:
getMultilangPropertyFile in class com.silverpeas.notification.builder.AbstractUserNotificationBuilder

getContributionAccessLinkLabelBundleKey

protected String getContributionAccessLinkLabelBundleKey()
Overrides:
getContributionAccessLinkLabelBundleKey in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail>


Copyright © 2016 Silverpeas. All Rights Reserved.