|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.newsletter.CmsNewsletter
public class CmsNewsletter
Basic implementation of the interface I_CmsNewsletter.
| Field Summary |
|---|
| Fields inherited from interface org.opencms.newsletter.I_CmsNewsletter |
|---|
MACRO_SEND_DATE, MACRO_USER_EMAIL, MACRO_USER_FIRSTNAME, MACRO_USER_FULLNAME, MACRO_USER_LASTNAME |
| Constructor Summary | |
|---|---|
CmsNewsletter()
Creates a new newsletter instance. |
|
| Method Summary | |
|---|---|
void |
addAttachment(CmsObject cms,
CmsResource resource)
Adds a OpenCms resource as an attachment to the newsletter. |
void |
addContent(I_CmsNewsletterContent content)
Adds content to the newsletter. |
org.apache.commons.mail.Email |
getEmail(CmsObject cms,
I_CmsNewsletterRecipient recipient)
Returns the e-mail for the newsletter. |
void |
setSubject(String subject)
Sets the subject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsNewsletter()
| Method Detail |
|---|
public void addAttachment(CmsObject cms,
CmsResource resource)
I_CmsNewsletter
addAttachment in interface I_CmsNewslettercms - the CmsObjectresource - the resource to attachI_CmsNewsletter.addAttachment(org.opencms.file.CmsObject, org.opencms.file.CmsResource)public void addContent(I_CmsNewsletterContent content)
I_CmsNewsletter
addContent in interface I_CmsNewslettercontent - the content to addI_CmsNewsletter.addContent(org.opencms.newsletter.I_CmsNewsletterContent)
public org.apache.commons.mail.Email getEmail(CmsObject cms,
I_CmsNewsletterRecipient recipient)
throws CmsException
getEmail in interface I_CmsNewsletterrecipient - the recipient to whom the newsletter is sentcms - the CmsObject
CmsException - if something goes wrongpublic void setSubject(String subject)
I_CmsNewsletter
setSubject in interface I_CmsNewslettersubject - the subject to setI_CmsNewsletter.setSubject(java.lang.String)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||