Package com.jalios.jcms.alert
Class BasicAlertChannel
- java.lang.Object
-
- com.jalios.jcms.alert.BasicAlertChannel
-
- All Implemented Interfaces:
AlertChannel,PluginComponent
- Direct Known Subclasses:
MailAlertChannel,WebAlertChannel
public abstract class BasicAlertChannel extends java.lang.Object implements AlertChannel, PluginComponent
-
-
Constructor Summary
Constructors Constructor Description BasicAlertChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIcon()Returns the icon of the AlertChannel.booleaninit(Plugin plugin)Initialize the component with the given plugin configurationbooleanisAvailable(Member member)Returns true if this AlertChannel is available for the given Member.booleansaveAlert()Returns true if the alerts of this channel must be saved.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jalios.jcms.alert.AlertChannel
getDescription, getLabel, getName, send
-
-
-
-
Method Detail
-
getIcon
public java.lang.String getIcon()
Description copied from interface:AlertChannelReturns the icon of the AlertChannel.- Specified by:
getIconin interfaceAlertChannel- Returns:
- the icon of the AlertChannel.
-
isAvailable
public boolean isAvailable(Member member)
Description copied from interface:AlertChannelReturns true if this AlertChannel is available for the given Member.- Specified by:
isAvailablein interfaceAlertChannel- Parameters:
member- the member- Returns:
- true if this AlertChannel is available for the given Member.
-
saveAlert
public boolean saveAlert()
Description copied from interface:AlertChannelReturns true if the alerts of this channel must be saved.- Specified by:
saveAlertin interfaceAlertChannel- Returns:
- true if the alerts of this channel must be saved.
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponentInitialize the component with the given plugin configuration- Specified by:
initin interfacePluginComponent- Parameters:
plugin- the calling plugin- Returns:
- true if the component has been correctly initialized.
-
-