Class EmailDestination

    • Constructor Detail

      • EmailDestination

        public EmailDestination()
    • Method Detail

      • isFirstOccurrenceOnly

        public boolean isFirstOccurrenceOnly()
        Description copied from interface: Destination
        Checks if is first occurrence only.
        Specified by:
        isFirstOccurrenceOnly in interface Destination
        Returns:
        true, if is first occurrence only
      • getName

        public String getName()
        Description copied from interface: Destination
        Gets the destination name.
        Specified by:
        getName in interface Destination
        Returns:
        the destination name
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - the new name
      • getFilters

        public List<EmailFilter> getFilters()
        Gets the filters.
        Returns:
        the filters
      • setFilters

        public void setFilters​(List<EmailFilter> filters)
        Sets the filters.
        Parameters:
        filters - the new filters
      • accepts

        public boolean accepts​(NorthboundAlarm alarm)
        Accepts.

        If the destination doesn't have filter, the method will return true.

        If the method has filters, they will be evaluated. If no filters are satisfied, the method will return false. Otherwise, the method will return true as soon as one filter is satisfied.

        Parameters:
        alarm - the alarm
        Returns:
        true, if successful