Package com.jalios.jcms.alert
Class MailAlertChannel
java.lang.Object
com.jalios.jcms.alert.BasicAlertChannel
com.jalios.jcms.alert.MailAlertChannel
- All Implemented Interfaces:
AlertChannel,PluginComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThis MailPolicyFilter context key contains the alert.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final ThreadLocal<Boolean> static final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandisplayAbstract(Alert alert) Defines if abstract of the data should be displayed in the alertgetDescription(String userLang) Returns the description of the AlertChannel.getIcon()Returns the icon of the AlertChannel.Returns the label of the AlertChannel.getName()Returns the internal name of the AlertChannel.voidSends an alert.Methods inherited from class com.jalios.jcms.alert.BasicAlertChannel
init, isAvailable, saveAlert
-
Field Details
-
ALERT_ATTR
- See Also:
-
PREFIX_PROP
- See Also:
-
LABEL_PROP
- See Also:
-
DESCRIPTION_PROP
- See Also:
-
SUBJECT_PREFIX_PROP
- See Also:
-
SUBJECT_DEFAULT_PROP
- See Also:
-
JSP_PREFIX_PROP
- See Also:
-
JSP_DEFAULT_PROP
- See Also:
-
DISPLAY_ABSTRACT_PREFIX_PROP
- See Also:
-
EXPIRES_PROP
- See Also:
-
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:
-
MAIL_SENDING_TL
-
-
Constructor Details
-
MailAlertChannel
public MailAlertChannel()
-
-
Method Details
-
getName
Description copied from interface:AlertChannelReturns the internal name of the AlertChannel.- Returns:
- the internal name of the AlertChannel.
-
getLabel
Description copied from interface:AlertChannelReturns the label of the AlertChannel.- Parameters:
userLang- the user language.- Returns:
- the label of the AlertChannel.
-
getDescription
Description copied from interface:AlertChannelReturns the description of the AlertChannel.- Parameters:
userLang- the user language.- Returns:
- the description of the AlertChannel.
-
getIcon
Description copied from interface:AlertChannelReturns the icon of the AlertChannel.- Specified by:
getIconin interfaceAlertChannel- Overrides:
getIconin classBasicAlertChannel- Returns:
- the icon of the AlertChannel.
-
send
Description copied from interface:AlertChannelSends an alert.- Parameters:
alert- the alert
-
displayAbstract
Defines if abstract of the data should be displayed in the alert- Parameters:
alert- theAlert- Returns:
- true if abstract should be displayed
-