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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotificationChannelProviderImpl(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:NotificationChannelProviderProvides names of all notification channels.- Specified by:
getAllChannelNamesin interfaceNotificationChannelProvider- Returns:
- list of channel names
-
getAllChannels
Description copied from interface:NotificationChannelProviderProvides all notification channels- Specified by:
getAllChannelsin interfaceNotificationChannelProvider- Returns:
- list of channel objects
-
getChannelByNameOpt
Description copied from interface:NotificationChannelProviderTries to get notification channel by provided name.- Specified by:
getChannelByNameOptin interfaceNotificationChannelProvider- Parameters:
channelName- channel name- Returns:
- Optional with found notification channel or empty Optional if channel with provided name not found
-