Class MailAlertChannel

    • Field Detail

      • DESCRIPTION_PROP

        public static final java.lang.String DESCRIPTION_PROP
        See Also:
        Constant Field Values
      • SUBJECT_PREFIX_PROP

        public static final java.lang.String SUBJECT_PREFIX_PROP
        See Also:
        Constant Field Values
      • SUBJECT_DEFAULT_PROP

        public static final java.lang.String SUBJECT_DEFAULT_PROP
        See Also:
        Constant Field Values
      • JSP_DEFAULT_PROP

        public static final java.lang.String JSP_DEFAULT_PROP
        See Also:
        Constant Field Values
      • DISPLAY_ABSTRACT_PREFIX_PROP

        public static final java.lang.String DISPLAY_ABSTRACT_PREFIX_PROP
        See Also:
        Constant Field Values
      • ALERT_CTXT

        public static final java.lang.String ALERT_CTXT
        This MailPolicyFilter context key contains the alert. Example of use in a MailPolicyFilter:
        Alert alert = (Alert)context.get(MailAlertChannel.ALERT_CTXT);
        See Also:
        Constant Field Values
    • Constructor Detail

      • MailAlertChannel

        public MailAlertChannel()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: AlertChannel
        Returns the internal name of the AlertChannel.
        Returns:
        the internal name of the AlertChannel.
      • getLabel

        public java.lang.String getLabel​(java.lang.String userLang)
        Description copied from interface: AlertChannel
        Returns the label of the AlertChannel.
        Parameters:
        userLang - the user language.
        Returns:
        the label of the AlertChannel.
      • getDescription

        public java.lang.String getDescription​(java.lang.String userLang)
        Description copied from interface: AlertChannel
        Returns the description of the AlertChannel.
        Parameters:
        userLang - the user language.
        Returns:
        the description of the AlertChannel.
      • send

        public void send​(Alert alert)
        Description copied from interface: AlertChannel
        Sends an alert.
        Parameters:
        alert - the alert
      • displayAbstract

        public static boolean displayAbstract​(Alert alert)
        Defines if abstract of the data should be displayed in the alert
        Parameters:
        alert - the Alert
        Returns:
        true if abstract should be displayed