Class NotificationChannelProviderImpl
java.lang.Object
io.jmix.notifications.channel.impl.NotificationChannelProviderImpl
- All Implemented Interfaces:
NotificationChannelProvider
@Component("ntf_NotificationChannelProvider")
public class NotificationChannelProviderImpl
extends Object
implements NotificationChannelProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNotificationChannelProviderImpl
(List<NotificationChannel> notificationChannels) -
Method Summary
Modifier and TypeMethodDescriptionProvides names of all notification channels.Provides all notification channelsgetChannelByNameOpt
(String channelName) Tries to get notification channel by provided name.
-
Field Details
-
notificationChannels
-
-
Constructor Details
-
NotificationChannelProviderImpl
-
-
Method Details
-
getAllChannelNames
Description copied from interface:NotificationChannelProvider
Provides names of all notification channels.- Specified by:
getAllChannelNames
in interfaceNotificationChannelProvider
- Returns:
- list of channel names
-
getAllChannels
Description copied from interface:NotificationChannelProvider
Provides all notification channels- Specified by:
getAllChannels
in interfaceNotificationChannelProvider
- Returns:
- list of channel objects
-
getChannelByNameOpt
Description copied from interface:NotificationChannelProvider
Tries to get notification channel by provided name.- Specified by:
getChannelByNameOpt
in interfaceNotificationChannelProvider
- Parameters:
channelName
- channel name- Returns:
- Optional with found notification channel or empty Optional if channel with provided name not found
-