public abstract class Emailer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug
NOT YET DOCUMENTED
|
protected SuggestHelper |
helper
NOT YET DOCUMENTED
|
protected static java.lang.String |
MAIL_TYPE
NOT YET DOCUMENTED
|
protected java.lang.String |
recId
NOT YET DOCUMENTED
|
Constructor and Description |
---|
Emailer(java.lang.String recId,
SuggestHelper helper)
Constructor for the Emailer object
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getMsgBody(SuggestForm form)
Gets the body of the the notification email message.
|
protected abstract java.lang.String |
getMsgSubject()
Gets the subject line of the the notification email message.
|
boolean |
sendNotification(SuggestForm form)
Construct and send email notification of a suggestion.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the Emailer object
|
protected static boolean debug
protected static java.lang.String MAIL_TYPE
protected java.lang.String recId
protected SuggestHelper helper
public Emailer(java.lang.String recId, SuggestHelper helper)
recId
- id if the suggestion recordhelper
- SuggestHelper instanceprotected abstract java.lang.String getMsgSubject()
protected abstract java.lang.String getMsgBody(SuggestForm form)
form
- NOT YET DOCUMENTEDpublic boolean sendNotification(SuggestForm form)
form
- The SuggestResourceForm which provides info about the
suggestionpublic static void setDebug(boolean db)
db
- The new debug value