org.silverpeas.sharing.notification
Class FileSharingUserNotification
java.lang.Object
com.silverpeas.notification.builder.AbstractUserNotificationBuilder
com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder<T>
com.silverpeas.notification.builder.AbstractTemplateUserNotificationBuilder<Ticket>
org.silverpeas.sharing.notification.FileSharingUserNotification
- All Implemented Interfaces:
- UserNotificationBuilder
public class FileSharingUserNotification
- extends AbstractTemplateUserNotificationBuilder<Ticket>
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 |
FileSharingUserNotification
public FileSharingUserNotification(Ticket resource,
SharingNotificationVO fileSharingParam)
- Parameters:
resource
- fileSharingParam
-
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.