|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blojsom.plugin.notification.AbstractNotification
org.blojsom.plugin.notification.AbstractVelocityEmailNotification
org.blojsom.plugin.registration.RegistrationNotification
RegistrationNotification
Field Summary |
Fields inherited from class org.blojsom.plugin.notification.AbstractNotification |
charEncoding, contentType, emailTemplate, mailServer |
Constructor Summary | |
RegistrationNotification(org.apache.commons.mail.Email email,
java.net.URL emailTemplate,
User user,
Blog blog)
Create a new registration notification |
Method Summary | |
protected java.util.List |
convertElementsToString(javax.mail.Address[] addresses)
Convert a list of addresses into the list |
protected java.util.List |
getBlindCarbonCopyRecipients()
Retrieve the list of BCC recipients |
protected java.util.List |
getCarbonCopyRecipients()
Retrieve the list of CC recipients |
org.apache.commons.mail.Email |
getEmail()
Retrieve the e-mail message |
protected java.util.List |
getRecipients()
Retrieve the list of recipients |
protected java.lang.String |
getSender()
Retrieve the sender |
protected java.lang.String |
getSubject()
Retrieve the subject |
void |
send()
Send the e-mail |
void |
setEmail(org.apache.commons.mail.Email email)
Set the e-mail message |
Methods inherited from class org.blojsom.plugin.notification.AbstractVelocityEmailNotification |
get, getMessage, put, putAll, setServletContext |
Methods inherited from class org.blojsom.plugin.notification.AbstractNotification |
encodeRegexCharacters, getEmailTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistrationNotification(org.apache.commons.mail.Email email, java.net.URL emailTemplate, User user, Blog blog) throws javax.mail.MessagingException
email
- E-mail messageemailTemplate
- URL for templateuser
- User
blog
- Blog
javax.mail.MessagingException
- If there is an error setting the e-mail contentMethod Detail |
protected java.util.List getBlindCarbonCopyRecipients()
AbstractNotification
getBlindCarbonCopyRecipients
in class AbstractNotification
AbstractNotification.getBlindCarbonCopyRecipients()
protected java.util.List getCarbonCopyRecipients()
AbstractNotification
getCarbonCopyRecipients
in class AbstractNotification
AbstractNotification.getBlindCarbonCopyRecipients()
protected java.util.List getRecipients()
AbstractNotification
getRecipients
in class AbstractNotification
AbstractNotification.getRecipients()
protected java.lang.String getSender()
AbstractNotification
getSender
in class AbstractNotification
AbstractNotification.getSender()
protected java.lang.String getSubject()
AbstractNotification
getSubject
in class AbstractNotification
AbstractNotification.getSubject()
public org.apache.commons.mail.Email getEmail()
public void setEmail(org.apache.commons.mail.Email email)
email
- E-mail messagepublic void send() throws org.apache.commons.mail.EmailException
send
in interface Notification
send
in class AbstractNotification
org.apache.commons.mail.EmailException
- If there is an error sending the e-mailprotected java.util.List convertElementsToString(javax.mail.Address[] addresses)
addresses
- Array of addresses
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |