Package org.dlese.dpc.suggest
Class Emailer
java.lang.Object
org.dlese.dpc.suggest.Emailer
- Direct Known Subclasses:
CommentEmailer,ResourceEmailer
Formats and sends an email message notifying of a suggestion.
- Author:
- ostwald
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmailer(String recId, SuggestHelper helper) Constructor for the Emailer object -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetMsgBody(SuggestForm form) Gets the body of the the notification email message.protected abstract StringGets the subject line of the the notification email message.booleansendNotification(SuggestForm form) Construct and send email notification of a suggestion.static voidsetDebug(boolean db) Sets the debug attribute of the Emailer object
-
Field Details
-
debug
protected static boolean debugNOT YET DOCUMENTED -
MAIL_TYPE
NOT YET DOCUMENTED -
recId
NOT YET DOCUMENTED -
helper
NOT YET DOCUMENTED
-
-
Constructor Details
-
Emailer
Constructor for the Emailer object- Parameters:
recId- id if the suggestion recordhelper- SuggestHelper instance
-
-
Method Details
-
getMsgSubject
Gets the subject line of the the notification email message.- Returns:
- The msgSubject value
-
getMsgBody
Gets the body of the the notification email message.- Parameters:
form- NOT YET DOCUMENTED- Returns:
- The msgBody value
-
sendNotification
Construct and send email notification of a suggestion.- Parameters:
form- The SuggestResourceForm which provides info about the suggestion- Returns:
- true if send was successuful
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the Emailer object- Parameters:
db- The new debug value
-