com.silverpeas.kmelia.notification
Class AbstractKmeliaPublicationUserNotification

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
All Implemented Interfaces:
com.silverpeas.notification.builder.UserNotificationBuilder
Direct Known Subclasses:
AbstractKmeliaActionPublicationUserNotification, KmeliaDocumentSubscriptionPublicationUserNotification, KmeliaNotifyPublicationUserNotification, KmeliaSubscriptionPublicationUserNotification, KmeliaSupervisorPublicationUserNotification

public abstract class AbstractKmeliaPublicationUserNotification
extends AbstractKmeliaUserNotification<com.stratelia.webactiv.util.publication.model.PublicationDetail>

Author:
Yohann Chastagnier

Constructor Summary
protected AbstractKmeliaPublicationUserNotification(com.stratelia.webactiv.util.node.model.NodePK nodePK, com.stratelia.webactiv.util.publication.model.PublicationDetail resource, com.stratelia.silverpeas.notificationManager.constant.NotifAction action)
           
protected AbstractKmeliaPublicationUserNotification(com.stratelia.webactiv.util.node.model.NodePK nodePK, com.stratelia.webactiv.util.publication.model.PublicationDetail resource, com.stratelia.silverpeas.notificationManager.constant.NotifAction action, String senderName)
           
 
Method Summary
protected  com.stratelia.silverpeas.notificationManager.constant.NotifAction getAction()
           
protected  String getComponentInstanceId()
           
protected  String getContributionAccessLinkLabelBundleKey()
           
protected  com.stratelia.webactiv.util.node.model.NodePK getNodePK()
           
protected  String getPath(String language)
           
protected  String getResourceURL(com.stratelia.webactiv.util.publication.model.PublicationDetail resource)
           
protected  String getSender()
           
protected  String getSenderName()
           
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)
           
protected  boolean 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, getBundleSubjectKey, getFileName, getTitle, perform, 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, getUserIdsToNotify, performUsersToBeNotified, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKmeliaPublicationUserNotification

protected AbstractKmeliaPublicationUserNotification(com.stratelia.webactiv.util.node.model.NodePK nodePK,
                                                    com.stratelia.webactiv.util.publication.model.PublicationDetail resource,
                                                    com.stratelia.silverpeas.notificationManager.constant.NotifAction action)

AbstractKmeliaPublicationUserNotification

protected AbstractKmeliaPublicationUserNotification(com.stratelia.webactiv.util.node.model.NodePK nodePK,
                                                    com.stratelia.webactiv.util.publication.model.PublicationDetail resource,
                                                    com.stratelia.silverpeas.notificationManager.constant.NotifAction action,
                                                    String senderName)
Method Detail

performTemplateData

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

performNotificationResource

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

stopWhenNoUserToNotify

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

getResourceURL

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

getNodePK

protected com.stratelia.webactiv.util.node.model.NodePK getNodePK()

getPath

protected final String getPath(String language)

getSenderName

protected String getSenderName()

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

getContributionAccessLinkLabelBundleKey

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


Copyright © 2016 Silverpeas. All Rights Reserved.