com.silverpeas.kmelia.notification
Class KmeliaDocumentSubscriptionPublicationUserNotification

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<T>
              extended by com.silverpeas.kmelia.notification.AbstractKmeliaUserNotification<com.stratelia.webactiv.util.publication.model.PublicationDetail>
                  extended by com.silverpeas.kmelia.notification.AbstractKmeliaPublicationUserNotification
                      extended by com.silverpeas.kmelia.notification.KmeliaDocumentSubscriptionPublicationUserNotification
All Implemented Interfaces:
com.silverpeas.notification.builder.UserNotificationBuilder

public class KmeliaDocumentSubscriptionPublicationUserNotification
extends AbstractKmeliaPublicationUserNotification

Author:
Yohann Chastagnier

Constructor Summary
KmeliaDocumentSubscriptionPublicationUserNotification(com.stratelia.webactiv.util.node.model.NodePK nodePK, com.stratelia.webactiv.util.publication.model.PublicationDetail resource, org.silverpeas.attachment.model.SimpleDocument document, String senderName)
           
 
Method Summary
protected  String getBundleSubjectKey()
           
protected  String getContributionAccessLinkLabelBundleKey()
           
protected  String getFileName()
           
protected  String getResourceURL(com.stratelia.webactiv.util.publication.model.PublicationDetail resource)
           
protected  Collection<String> getUserIdsToNotify()
           
protected  void perform(com.stratelia.webactiv.util.publication.model.PublicationDetail resource)
           
protected  void performNotificationResource(String language, com.stratelia.webactiv.util.publication.model.PublicationDetail resource, com.silverpeas.notification.model.NotificationResourceData notificationResourceData)
           
protected  void performTemplateData(String language, com.stratelia.webactiv.util.publication.model.PublicationDetail resource, com.silverpeas.util.template.SilverpeasTemplate template)
           
 
Methods inherited from class com.silverpeas.kmelia.notification.AbstractKmeliaPublicationUserNotification
getAction, getComponentInstanceId, getNodePK, getPath, getSender, getSenderName, stopWhenNoUserToNotify
 
Methods inherited from class com.silverpeas.kmelia.notification.AbstractKmeliaUserNotification
getHTMLNodePath, getMultilangPropertyFile, getNodeBm, getNodeHeader, getOrganisationController, getTemplatePath
 
Methods inherited from class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder
createNotification, createTemplate, getTitle, performBuild, performNotificationResource, performNotificationResource
 
Methods inherited from class com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder
getResource, 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

KmeliaDocumentSubscriptionPublicationUserNotification

public KmeliaDocumentSubscriptionPublicationUserNotification(com.stratelia.webactiv.util.node.model.NodePK nodePK,
                                                             com.stratelia.webactiv.util.publication.model.PublicationDetail resource,
                                                             org.silverpeas.attachment.model.SimpleDocument document,
                                                             String senderName)
Method Detail

getBundleSubjectKey

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

getFileName

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

getUserIdsToNotify

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

perform

protected void perform(com.stratelia.webactiv.util.publication.model.PublicationDetail resource)
Overrides:
perform in class com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<com.stratelia.webactiv.util.publication.model.PublicationDetail>

performTemplateData

protected void performTemplateData(String language,
                                   com.stratelia.webactiv.util.publication.model.PublicationDetail resource,
                                   com.silverpeas.util.template.SilverpeasTemplate template)
Overrides:
performTemplateData in class AbstractKmeliaPublicationUserNotification

performNotificationResource

protected void performNotificationResource(String language,
                                           com.stratelia.webactiv.util.publication.model.PublicationDetail resource,
                                           com.silverpeas.notification.model.NotificationResourceData notificationResourceData)
Overrides:
performNotificationResource in class AbstractKmeliaPublicationUserNotification

getResourceURL

protected String getResourceURL(com.stratelia.webactiv.util.publication.model.PublicationDetail resource)
Overrides:
getResourceURL in class AbstractKmeliaPublicationUserNotification

getContributionAccessLinkLabelBundleKey

protected String getContributionAccessLinkLabelBundleKey()
Overrides:
getContributionAccessLinkLabelBundleKey in class AbstractKmeliaPublicationUserNotification


Copyright © 2016 Silverpeas. All Rights Reserved.