Interface NotificationChannelDestinationHandler

All Known Implementing Classes:
MailDestinationHandler, PushDestinationHandler, SlackDestinationHandler, SmsDestinationHandler

public interface NotificationChannelDestinationHandler
Interface for a service able to handle notification channel.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true if this handler is able to send the given notification channel.
    getAddress(Receiver receiver)
    Get the destination address for this channel.
    Get the destination address for this channel.
  • Method Details

    • getAddress

      String getAddress(User user)
      Get the destination address for this channel.
      Parameters:
      user - the user entity.
      Returns:
      the channel-specific destination.
    • getAddress

      String getAddress(Receiver receiver)
      Get the destination address for this channel.
      Parameters:
      receiver - receiver entity.
      Returns:
      the channel-specific destination.
    • accepts

      boolean accepts(NotificationChannel channel)
      Return true if this handler is able to send the given notification channel.
      Parameters:
      channel - notification channel.
      Returns:
      true if this handler is able to send the given notification channel.