DLESE Tools
v1.6.0

org.dlese.dpc.suggest.comment
Class CommentEmailer

java.lang.Object
  extended by org.dlese.dpc.suggest.Emailer
      extended by org.dlese.dpc.suggest.comment.CommentEmailer

public class CommentEmailer
extends Emailer

Formats and sends email notifying of a newly suggested resource

Author:
ostwald $Id: CommentEmailer.java,v 1.2 2007/10/23 15:46:23 ostwald Exp $

Field Summary
 
Fields inherited from class org.dlese.dpc.suggest.Emailer
helper, MAIL_TYPE, recId
 
Constructor Summary
CommentEmailer(String recId, SuggestHelper helper)
          Constructor for the CommentEmailer object
 
Method Summary
protected  String getMsgBody(SuggestForm form)
          Gets the msgBody attribute of the CommentEmailer object
protected  String getMsgSubject()
          Gets the msgSubject attribute of the CommentEmailer object
static void main(String[] args)
          The main program for the CommentEmailer class
static void setDebug(boolean db)
          Sets the debug attribute of the CommentEmailer object
 
Methods inherited from class org.dlese.dpc.suggest.Emailer
sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentEmailer

public CommentEmailer(String recId,
                      SuggestHelper helper)
Constructor for the CommentEmailer object

Parameters:
recId - id of comment record
helper - SuggestCommentHelper instance
Method Detail

getMsgSubject

protected String getMsgSubject()
Gets the msgSubject attribute of the CommentEmailer object

Specified by:
getMsgSubject in class Emailer
Returns:
The msgSubject value

getMsgBody

protected String getMsgBody(SuggestForm form)
Gets the msgBody attribute of the CommentEmailer object

Specified by:
getMsgBody in class Emailer
Parameters:
form - NOT YET DOCUMENTED
Returns:
The msgBody value

main

public static void main(String[] args)
The main program for the CommentEmailer class

Parameters:
args - The command line arguments

setDebug

public static void setDebug(boolean db)
Sets the debug attribute of the CommentEmailer object

Parameters:
db - The new debug value

DLESE Tools
v1.6.0