Package com.jalios.jcms.alert
Class WebAlertChannel
- java.lang.Object
-
- com.jalios.jcms.alert.BasicAlertChannel
-
- com.jalios.jcms.alert.WebAlertChannel
-
- All Implemented Interfaces:
AlertChannel,PluginComponent
public class WebAlertChannel extends BasicAlertChannel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDISPLAY_ABSTRACT_PREFIX_PROPstatic java.lang.StringJSP_DEFAULT_PROPstatic java.lang.StringJSP_PREFIX_PROPstatic java.lang.StringPREFIX_PROP
-
Constructor Summary
Constructors Constructor Description WebAlertChannel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleandisplayAbstract(Alert alert)Defines if abstract of the data should be displayed in the alertjava.lang.StringgetDescription(java.lang.String userLang)Returns the description of the AlertChannel.java.lang.StringgetIcon()Returns the icon of the AlertChannel.static java.lang.StringgetJspPath(Alert alert)java.lang.StringgetLabel(java.lang.String userLang)Returns the label of the AlertChannel.java.lang.StringgetName()Returns the internal name of the AlertChannel.booleansaveAlert()Returns true if the alerts of this channel must be saved.voidsend(Alert alert)Sends an alert.-
Methods inherited from class com.jalios.jcms.alert.BasicAlertChannel
init, isAvailable
-
-
-
-
Field Detail
-
PREFIX_PROP
public static final java.lang.String PREFIX_PROP
- See Also:
- Constant Field Values
-
JSP_PREFIX_PROP
public static final java.lang.String JSP_PREFIX_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
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AlertChannelReturns 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:AlertChannelReturns 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:AlertChannelReturns the description of the AlertChannel.- Parameters:
userLang- the user language.- Returns:
- the description of the AlertChannel.
-
getIcon
public java.lang.String 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
public void send(Alert alert)
Description copied from interface:AlertChannelSends an alert.- Parameters:
alert- the alert
-
saveAlert
public boolean saveAlert()
Description copied from interface:AlertChannelReturns true if the alerts of this channel must be saved.- Specified by:
saveAlertin interfaceAlertChannel- Overrides:
saveAlertin classBasicAlertChannel- Returns:
- true if the alerts of this channel must be saved.
-
getJspPath
public static java.lang.String getJspPath(Alert alert)
-
-