cmu.survey.editor.manipulators.email
Class EmailSender

java.lang.Object
  extended by cmu.survey.editor.manipulators.email.EmailSender

public class EmailSender
extends java.lang.Object


Nested Class Summary
 class EmailSender.SendingEmails
           
 
Field Summary
protected static java.lang.String DEFAULT_SELECTION_PREF
           
protected static java.lang.String PREFS_SUBSET_NAME
           
 
Constructor Summary
EmailSender()
           
EmailSender(TableStorage tableStorage, Preferences emailSenderPreferences)
           
 
Method Summary
protected  void addToLog(DataTableModel dataTable, int idColumnID, int row, java.lang.String email, java.lang.String data)
           
protected  void addToLog(java.lang.String data)
           
 boolean createSentColumnIfDoesntExist(BulkEmail bulkEmail)
          Returns whether it's good afterwards
 DataTableModel getDataTableFor(BulkEmail bulkEmail)
           
 EmailConfirmationHandler getEmailConfirmationHandler()
           
 int getNameDefaultSelection()
           
 java.lang.String getOutputLog()
           
 int getTotalNumErrors()
           
 void sendEmails(ProgressListener progress, BulkEmail bulkEmail)
           
 void setEmailConfirmationHandler(EmailConfirmationHandler handler)
           
 void setNameDefaultSelection(int selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFS_SUBSET_NAME

protected static final java.lang.String PREFS_SUBSET_NAME
See Also:
Constant Field Values

DEFAULT_SELECTION_PREF

protected static final java.lang.String DEFAULT_SELECTION_PREF
See Also:
Constant Field Values
Constructor Detail

EmailSender

public EmailSender(TableStorage tableStorage,
                   Preferences emailSenderPreferences)

EmailSender

public EmailSender()
Method Detail

getOutputLog

public java.lang.String getOutputLog()

getTotalNumErrors

public int getTotalNumErrors()
Returns:

getNameDefaultSelection

public int getNameDefaultSelection()

setNameDefaultSelection

public void setNameDefaultSelection(int selection)

getEmailConfirmationHandler

public EmailConfirmationHandler getEmailConfirmationHandler()

setEmailConfirmationHandler

public void setEmailConfirmationHandler(EmailConfirmationHandler handler)

getDataTableFor

public DataTableModel getDataTableFor(BulkEmail bulkEmail)

addToLog

protected void addToLog(java.lang.String data)

addToLog

protected void addToLog(DataTableModel dataTable,
                        int idColumnID,
                        int row,
                        java.lang.String email,
                        java.lang.String data)

sendEmails

public void sendEmails(ProgressListener progress,
                       BulkEmail bulkEmail)
Parameters:
progress -

createSentColumnIfDoesntExist

public boolean createSentColumnIfDoesntExist(BulkEmail bulkEmail)
Returns whether it's good afterwards

Parameters:
bulkEmail -
Returns: