Class DummyNotificationRenderer

java.lang.Object
com.polarion.psvn.core.notifications.DummyNotificationRenderer
All Implemented Interfaces:
INotificationRenderer

public class DummyNotificationRenderer extends Object implements INotificationRenderer
Author:
dobisekm
  • Constructor Details

    • DummyNotificationRenderer

      public DummyNotificationRenderer()
  • Method Details

    • createAnnouncement

      public Announcement createAnnouncement(INotificationEvent notifEvent) throws Exception
      Specified by:
      createAnnouncement in interface INotificationRenderer
      Parameters:
      notifEvent - The event to render, never null
      Returns:
      The announcement, never null. The sender and receivers fields are modified before sending, therefore they don't have to be filled in.
      Throws:
      Exception - If something goes wrong. The exception gets logged.
    • createAnnouncement

      public Announcement createAnnouncement(INotificationEvent notifEvent, String targetUserId) throws Exception
      Specified by:
      createAnnouncement in interface INotificationRenderer
      Parameters:
      notifEvent - The event to render, never null
      targetUserId - the ID of user or single email
      Returns:
      The announcement, never null. The sender and receivers fields are modified before sending, therefore they don't have to be filled in.
      Throws:
      Exception - If something goes wrong. The exception gets logged.