org.silverpeas.sharing.notification
Class FileSharingUserNotification

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<Ticket>
              extended by org.silverpeas.sharing.notification.FileSharingUserNotification
All Implemented Interfaces:
UserNotificationBuilder

public class FileSharingUserNotification
extends AbstractTemplateUserNotificationBuilder<Ticket>


Constructor Summary
FileSharingUserNotification(Ticket resource, SharingNotificationVO fileSharingParam)
           
 
Method Summary
protected  NotifAction getAction()
           
protected  String getBundleSubjectKey()
           
protected  String getComponentInstanceId()
           
protected  String getContributionAccessLinkLabelBundleKey()
           
protected  Collection<String> getExternalAddressesToNotify()
           
protected  String getFileName()
           
protected  String getMultilangPropertyFile()
           
protected  String getResourceURL(Ticket resource)
           
protected  String getSender()
           
protected  String getTemplatePath()
           
protected  Collection<String> getUserIdsToNotify()
           
protected  boolean isSendImmediatly()
           
static void notify(Ticket resource, SharingNotificationVO fileSharingParam)
          Builds and sends a file sharing notification.
protected  void performNotificationResource(String language, Ticket resource, NotificationResourceData notificationResourceData)
           
protected  void performTemplateData(String language, Ticket 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, initialize, initializeNotificationResourceData, performBuild, setResource
 
Methods inherited from class com.silverpeas.notification.builder.AbstractUserNotificationBuilder
build, getBundle, getBundle, getContent, 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

FileSharingUserNotification

public FileSharingUserNotification(Ticket resource,
                                   SharingNotificationVO fileSharingParam)
Parameters:
resource -
fileSharingParam -
Method Detail

getBundleSubjectKey

protected String getBundleSubjectKey()
Specified by:
getBundleSubjectKey in class AbstractTemplateUserNotificationBuilder<Ticket>

performTemplateData

protected void performTemplateData(String language,
                                   Ticket resource,
                                   SilverpeasTemplate template)
Specified by:
performTemplateData in class AbstractTemplateUserNotificationBuilder<Ticket>

performNotificationResource

protected void performNotificationResource(String language,
                                           Ticket resource,
                                           NotificationResourceData notificationResourceData)
Specified by:
performNotificationResource in class AbstractTemplateUserNotificationBuilder<Ticket>

getTemplatePath

protected String getTemplatePath()
Specified by:
getTemplatePath in class AbstractTemplateUserNotificationBuilder<Ticket>

getMultilangPropertyFile

protected String getMultilangPropertyFile()
Overrides:
getMultilangPropertyFile in class AbstractUserNotificationBuilder

getFileName

protected String getFileName()
Overrides:
getFileName in class AbstractTemplateUserNotificationBuilder<Ticket>

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

getUserIdsToNotify

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

getExternalAddressesToNotify

protected Collection<String> getExternalAddressesToNotify()
Overrides:
getExternalAddressesToNotify in class AbstractUserNotificationBuilder

notify

public static void notify(Ticket resource,
                          SharingNotificationVO fileSharingParam)
Builds and sends a file sharing notification. A warning message is logged when an exception is catched.

Parameters:
resource - the ticket file sharing resource

isSendImmediatly

protected boolean isSendImmediatly()
Overrides:
isSendImmediatly in class AbstractResourceUserNotificationBuilder<Ticket>

getResourceURL

protected String getResourceURL(Ticket resource)
Overrides:
getResourceURL in class AbstractResourceUserNotificationBuilder<Ticket>

getContributionAccessLinkLabelBundleKey

protected String getContributionAccessLinkLabelBundleKey()
Overrides:
getContributionAccessLinkLabelBundleKey in class AbstractTemplateUserNotificationBuilder<Ticket>


Copyright © 2016 Silverpeas. All Rights Reserved.