com.jalios.jcms.alert
Class MailAlertChannel

java.lang.Object
  extended by com.jalios.jcms.alert.BasicAlertChannel
      extended by com.jalios.jcms.alert.MailAlertChannel
All Implemented Interfaces:
AlertChannel, PluginComponent

public class MailAlertChannel
extends BasicAlertChannel


Field Summary
static String ALERT_ATTR
           
static String DESCRIPTION_PROP
           
static String JSP_DEFAULT_PROP
           
static String JSP_PREFIX_PROP
           
static String LABEL_PROP
           
static String PREFIX_PROP
           
static String SUBJECT_DEFAULT_PROP
           
static String SUBJECT_PREFIX_PROP
           
 
Fields inherited from interface com.jalios.jcms.plugin.PluginComponent
REVISION
 
Constructor Summary
MailAlertChannel()
           
 
Method Summary
 String getDescription(String userLang)
          Returns the description of the AlertChannel.
 String getIcon()
          Returns the icon of the AlertChannel.
 String getLabel(String userLang)
          Returns the label of the AlertChannel.
 String getName()
          Returns the internal name of the AlertChannel.
 boolean isAvailable(Member member)
          Returns true if this AlertChannel is available for the given Member.
 void send(Alert alert)
          Sends an alert.
 
Methods inherited from class com.jalios.jcms.alert.BasicAlertChannel
init, saveAlert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALERT_ATTR

public static final String ALERT_ATTR
See Also:
Constant Field Values

PREFIX_PROP

public static final String PREFIX_PROP
See Also:
Constant Field Values

LABEL_PROP

public static final String LABEL_PROP
See Also:
Constant Field Values

DESCRIPTION_PROP

public static final String DESCRIPTION_PROP
See Also:
Constant Field Values

SUBJECT_PREFIX_PROP

public static final String SUBJECT_PREFIX_PROP
See Also:
Constant Field Values

SUBJECT_DEFAULT_PROP

public static final String SUBJECT_DEFAULT_PROP
See Also:
Constant Field Values

JSP_PREFIX_PROP

public static final String JSP_PREFIX_PROP
See Also:
Constant Field Values

JSP_DEFAULT_PROP

public static final String JSP_DEFAULT_PROP
See Also:
Constant Field Values
Constructor Detail

MailAlertChannel

public MailAlertChannel()
Method Detail

getName

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

Returns:
the internal name of the AlertChannel.

getLabel

public String getLabel(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 String getDescription(String userLang)
Description copied from interface: AlertChannel
Returns the description of the AlertChannel.

Parameters:
userLang - the user language.
Returns:
the description of the AlertChannel.

getIcon

public String getIcon()
Description copied from interface: AlertChannel
Returns the icon of the AlertChannel.

Specified by:
getIcon in interface AlertChannel
Overrides:
getIcon in class BasicAlertChannel
Returns:
the icon of the AlertChannel.

isAvailable

public boolean isAvailable(Member member)
Description copied from interface: AlertChannel
Returns true if this AlertChannel is available for the given Member.

Specified by:
isAvailable in interface AlertChannel
Overrides:
isAvailable in class BasicAlertChannel
Parameters:
member - the member
Returns:
true if this AlertChannel is available for the given Member.

send

public void send(Alert alert)
Description copied from interface: AlertChannel
Sends an alert.

Parameters:
alert - the alert


Copyright © 2001-2010 Jalios SA. All Rights Reserved.