|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
public interface I_CmsNewsletter
Interface for the newsletter.
| Field Summary | |
|---|---|
static java.lang.String |
MACRO_SEND_DATE
Macro for the date. |
static java.lang.String |
MACRO_USER_EMAIL
Macro for the email address. |
static java.lang.String |
MACRO_USER_FIRSTNAME
Macro for the firstname. |
static java.lang.String |
MACRO_USER_FULLNAME
Macro for the full name. |
static java.lang.String |
MACRO_USER_LASTNAME
Macro for the lastname. |
| 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 newsletter as an e-mail to be sent. |
void |
setSubject(java.lang.String subject)
Sets the subject. |
| Field Detail |
|---|
static final java.lang.String MACRO_SEND_DATE
static final java.lang.String MACRO_USER_EMAIL
static final java.lang.String MACRO_USER_FIRSTNAME
static final java.lang.String MACRO_USER_FULLNAME
static final java.lang.String MACRO_USER_LASTNAME
| Method Detail |
|---|
void addAttachment(CmsObject cms,
CmsResource resource)
throws CmsException
cms - the CmsObjectresource - the resource to attach
CmsException - if something goes wrongvoid addContent(I_CmsNewsletterContent content)
content - the content to add
org.apache.commons.mail.Email getEmail(CmsObject cms,
I_CmsNewsletterRecipient recipient)
throws javax.mail.MessagingException,
CmsException
cms - the CmsObjectrecipient - the recipient to which the newsletter will be sent
javax.mail.MessagingException - if something goes wrong
CmsException - if something goes wrongvoid setSubject(java.lang.String subject)
subject - the subject to set
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||