Class KmeliaSubscriptionPublicationUserNotification

java.lang.Object
org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
org.silverpeas.components.kmelia.notification.AbstractKmeliaUserNotification<org.silverpeas.core.contribution.publication.model.PublicationDetail>
org.silverpeas.components.kmelia.notification.AbstractKmeliaPublicationUserNotification
org.silverpeas.components.kmelia.notification.KmeliaSubscriptionPublicationUserNotification
All Implemented Interfaces:
org.silverpeas.core.notification.user.builder.UserNotificationBuilder, org.silverpeas.core.notification.user.RemoveSenderRecipientBehavior, org.silverpeas.core.notification.user.UserSubscriptionNotificationBehavior

public class KmeliaSubscriptionPublicationUserNotification extends AbstractKmeliaPublicationUserNotification implements org.silverpeas.core.notification.user.UserSubscriptionNotificationBehavior
Author:
Yohann Chastagnier
  • Constructor Details

    • KmeliaSubscriptionPublicationUserNotification

      public KmeliaSubscriptionPublicationUserNotification(org.silverpeas.core.node.model.NodePK nodePK, org.silverpeas.core.contribution.publication.model.PublicationDetail resource, org.silverpeas.core.notification.user.client.constant.NotifAction action)
  • Method Details

    • perform

      protected void perform(org.silverpeas.core.contribution.publication.model.PublicationDetail resource)
      Overrides:
      perform in class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
    • getSubscribedContribution

      protected Optional<org.silverpeas.core.contribution.model.ContributionIdentifier> getSubscribedContribution()
      A notification is sent for each location of the publication: its main one and each of its aliases. The users concerned by the publication itself, whatever its location (like the subscribers to a position on the PdC on which it is classified), are notified only with the subscribers of its main location, otherwise they would be notified several times.
      Overrides:
      getSubscribedContribution in class org.silverpeas.core.notification.user.builder.AbstractResourceUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
    • getBundleSubjectKey

      protected String getBundleSubjectKey()
      Overrides:
      getBundleSubjectKey in class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
    • getTemplateFileName

      protected String getTemplateFileName()
      Specified by:
      getTemplateFileName in class org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder<org.silverpeas.core.contribution.publication.model.PublicationDetail>
    • getUserIdsToNotify

      protected Collection<String> getUserIdsToNotify()
      Specified by:
      getUserIdsToNotify in class org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder
    • getGroupIdsToNotify

      protected Collection<String> getGroupIdsToNotify()
      Overrides:
      getGroupIdsToNotify in class org.silverpeas.core.notification.user.builder.AbstractUserNotificationBuilder