net.sourceforge.sconman.tools
Class LogSubscriptionsMailer

java.lang.Object
  extended by net.sourceforge.sconman.tools.AbstractSubscriptionsProcessor
      extended by net.sourceforge.sconman.tools.LogSubscriptionsMailer
All Implemented Interfaces:
java.lang.Runnable

public class LogSubscriptionsMailer
extends AbstractSubscriptionsProcessor

Author:
mballesteros

Field Summary
 
Fields inherited from class net.sourceforge.sconman.tools.AbstractSubscriptionsProcessor
CATEGORY_GROUPING, PROJECT_GROUPING
 
Constructor Summary
LogSubscriptionsMailer(java.io.File file, java.lang.String smtpHost, java.lang.String subject, java.lang.String fromAddress, int groupingMethod)
           
LogSubscriptionsMailer(java.io.InputStream is, java.lang.String smtpHost, java.lang.String subject, java.lang.String fromAddress, int groupingMethod)
           
 
Method Summary
static void main(java.lang.String[] args)
          Log subscription mailer launcher.
protected  void onBeginProcessing()
          Called when the process starts
protected  void onBeginSending(java.lang.String sendTo, java.lang.String userName, java.lang.String categoryPath, java.lang.String locale)
          Subclasses should implement this method to start a sending
protected  void onEndProcessing()
          Called after the process finalization
protected  void onEndSending(java.lang.String sendTo)
          Subclasses should implement this method to end a sending
protected  void processEntry(java.lang.String sendTo, java.lang.String userName, java.lang.String category, java.lang.String contentUri, java.lang.String locale, java.lang.String additionalInfo)
          Subclasses should implement here the desired behaviour
 
Methods inherited from class net.sourceforge.sconman.tools.AbstractSubscriptionsProcessor
getTemporalFile, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSubscriptionsMailer

public LogSubscriptionsMailer(java.io.File file,
                              java.lang.String smtpHost,
                              java.lang.String subject,
                              java.lang.String fromAddress,
                              int groupingMethod)
                       throws java.io.IOException
Parameters:
file -
Throws:
java.io.IOException

LogSubscriptionsMailer

public LogSubscriptionsMailer(java.io.InputStream is,
                              java.lang.String smtpHost,
                              java.lang.String subject,
                              java.lang.String fromAddress,
                              int groupingMethod)
                       throws java.io.IOException
Parameters:
file -
Throws:
java.io.IOException
Method Detail

onBeginSending

protected void onBeginSending(java.lang.String sendTo,
                              java.lang.String userName,
                              java.lang.String categoryPath,
                              java.lang.String locale)
Description copied from class: AbstractSubscriptionsProcessor
Subclasses should implement this method to start a sending

Specified by:
onBeginSending in class AbstractSubscriptionsProcessor

processEntry

protected void processEntry(java.lang.String sendTo,
                            java.lang.String userName,
                            java.lang.String category,
                            java.lang.String contentUri,
                            java.lang.String locale,
                            java.lang.String additionalInfo)
Description copied from class: AbstractSubscriptionsProcessor
Subclasses should implement here the desired behaviour

Specified by:
processEntry in class AbstractSubscriptionsProcessor

onEndSending

protected void onEndSending(java.lang.String sendTo)
Description copied from class: AbstractSubscriptionsProcessor
Subclasses should implement this method to end a sending

Specified by:
onEndSending in class AbstractSubscriptionsProcessor

onBeginProcessing

protected void onBeginProcessing()
Description copied from class: AbstractSubscriptionsProcessor
Called when the process starts

Specified by:
onBeginProcessing in class AbstractSubscriptionsProcessor

onEndProcessing

protected void onEndProcessing()
Description copied from class: AbstractSubscriptionsProcessor
Called after the process finalization

Specified by:
onEndProcessing in class AbstractSubscriptionsProcessor

main

public static void main(java.lang.String[] args)
Log subscription mailer launcher. This application requires the following arguments: 1=logsDir 2=fileprefix 3=SMTPHost

Parameters:
args -


Copyright null null. All Rights Reserved.