Package io.jmix.notifications.channel
Interface NotificationChannelProvider
- All Known Implementing Classes:
NotificationChannelProviderImpl
public interface NotificationChannelProvider
Service that allows to get information about notification channels available in application
-
Method Summary
Modifier and TypeMethodDescriptionProvides names of all notification channels.Provides all notification channelsgetChannelByNameOpt
(String channelName) Tries to get notification channel by provided name.
-
Method Details
-
getAllChannelNames
Provides names of all notification channels.- Returns:
- list of channel names
-
getAllChannels
List<NotificationChannel> getAllChannels()Provides all notification channels- Returns:
- list of channel objects
-
getChannelByNameOpt
Tries to get notification channel by provided name.- Parameters:
channelName
- channel name- Returns:
- Optional with found notification channel or empty Optional if channel with provided name not found
-