DLESE Tools
v1.6.0

org.dlese.dpc.suggest.resource
Class ResourceEmailer

java.lang.Object
  extended by org.dlese.dpc.suggest.Emailer
      extended by org.dlese.dpc.suggest.resource.ResourceEmailer

public class ResourceEmailer
extends Emailer

Formats and sends email notifying of a newly suggested resource

Author:
ostwald

Field Summary
 
Fields inherited from class org.dlese.dpc.suggest.Emailer
helper, MAIL_TYPE, recId
 
Constructor Summary
ResourceEmailer(String recId, SuggestHelper helper)
          Constructor for the ResourceEmailer object
 
Method Summary
protected  String getMsgBody(SuggestForm form)
          Gets the msgBody attribute of the ResourceEmailer object
protected  String getMsgSubject()
          Gets the msgSubject attribute of the ResourceEmailer object
static void main(String[] args)
          The main program for the ResourceEmailer class
static void setDebug(boolean db)
          Sets the debug attribute of the ResourceEmailer 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

ResourceEmailer

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

Parameters:
recId - id of suggested record
helper - SuggestResourceHelper instance
Method Detail

getMsgSubject

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

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

getMsgBody

protected String getMsgBody(SuggestForm form)
Gets the msgBody attribute of the ResourceEmailer 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 ResourceEmailer class

Parameters:
args - The command line arguments

setDebug

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

Parameters:
db - The new debug value

DLESE Tools
v1.6.0