Interface INotificationEventHandler
public interface INotificationEventHandler
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigElements(String eventId, IProject project) Fetch XML elements from configuration for specific notification eventPolarion global notification settings (smtp host, sender email address, subject prefix)String[]getTargetEmails(INotificationEvent event, Element configElement) For a specific event and element that will return a set of emails fetched from the targets.Returns a map of targets where the key is the target name and the value is theITargetobject itself.handleEvent(INotificationEvent event, String subject, Element element) handleEventPerUser(INotificationEvent event, String subject, Element element) handleEvents(List events)
-
Method Details
-
getTargets
-
getTargetsMap
Returns a map of targets where the key is the target name and the value is theITargetobject itself.- Since:
- 3.20.2
-
handleEvent
-
handleEvents
-
handleEventPerUser
-
getConfigElements
- Since:
- 3.3.0
-
getConfigElements
Fetch XML elements from configuration for specific notification event- Parameters:
eventId- ID of notification event which elements will be fetched forproject- if null then elements will be read from global configuration, otherwise if configuration exist on project level then this will be used- Returns:
- list of org.w3c.dom.Element elements
-
getNotificationSettings
NotificationSettings getNotificationSettings()Polarion global notification settings (smtp host, sender email address, subject prefix)- Returns:
- NotificationSettings
-
getTargetEmails
For a specific event and element that will return a set of emails fetched from the targets.- Parameters:
event- notification eventconfigElement- XML element from configuration- Returns:
- array of unique emails (or empty array)
-