org.activemath.author
Class MailingLoginNotifier

java.lang.Object
  extended by org.activemath.author.MailingLoginNotifier
All Implemented Interfaces:
EventListener, ActivemathEventListener

public class MailingLoginNotifier
extends Object
implements ActivemathEventListener

A kind of independent service which listens to login-events and sends a mail on login and logout time.

A configuration as follows would be appropriate:

   MailingLoginNotifier.recipient = me@me.com # emails-recipients
   MailingLoginNotifier.sender = activemath-for-me@me.com # From of mails
   MailingLoginNotifier.smtpServer = mail.here.info # SMTP server through which mails will be sent
   MailingLoginNotifier.excludedUserNames = marguerite, donald, Eva, Anton # comma-separated list of user-names 
                                                                           # for which a mail will not be sent
 


Field Summary
static String CVS_ID
           
 
Constructor Summary
MailingLoginNotifier(Subconfiguration config)
           
 
Method Summary
 void onActivemathEvent(ActivemathEvent event)
          Handle an Activemath event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_ID

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

MailingLoginNotifier

public MailingLoginNotifier(Subconfiguration config)
Method Detail

onActivemathEvent

public void onActivemathEvent(ActivemathEvent event)
Description copied from interface: ActivemathEventListener
Handle an Activemath event.

This method must return as quickly as possible and must not block the calling thread for long.

Specified by:
onActivemathEvent in interface ActivemathEventListener
Parameters:
event - the event to respond to