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 TypeMethodDescriptionbooleanaccepts(NotificationChannel channel) Return true if this handler is able to send the given notification channel.getAddress(Receiver receiver) Get the destination address for this channel.getAddress(User user) Get the destination address for this channel.
-
Method Details
-
getAddress
Get the destination address for this channel.- Parameters:
user- the user entity.- Returns:
- the channel-specific destination.
-
getAddress
Get the destination address for this channel.- Parameters:
receiver- receiver entity.- Returns:
- the channel-specific destination.
-
accepts
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.
-