Package pl.edu.icm.unity.engine.api
Interface NotificationsManagement
public interface NotificationsManagement
Management and usage of notifications subsystem (email, sms, ...)
- Author:
- K. Benedyczak
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates a new channel for a given facility.getNotificationChannelsForTechnologies
(EnumSet<pl.edu.icm.unity.base.notifications.CommunicationTechnology> facilites) void
removeNotificationChannel
(String channelName) Removes a specified channel.void
updateNotificationChannel
(String channelName, String newConfiguration) Changes configuration of an existing notification channel.
-
Method Details
-
getNotificationFacilities
- Returns:
- set with names of all available notification facilities (implementations). E.g. email sender can be a facility.
- Throws:
EngineException
-
addNotificationChannel
Creates a new channel for a given facility. E.g. a new email facility configured to use a concrete SMTP server.- Parameters:
toAdd
-- Throws:
EngineException
-
removeNotificationChannel
Removes a specified channel.- Parameters:
channelName
-- Throws:
EngineException
-
updateNotificationChannel
Changes configuration of an existing notification channel.- Parameters:
channelName
-newConfiguration
-- Throws:
EngineException
-
getNotificationChannels
- Returns:
- map of available notification channels.
- Throws:
EngineException
-
getNotificationChannelsForTechnologies
Map<String,NotificationChannelInfo> getNotificationChannelsForTechnologies(EnumSet<pl.edu.icm.unity.base.notifications.CommunicationTechnology> facilites) throws EngineException - Returns:
- get available notification channels which are using given communication technologies.
- Throws:
EngineException
-