Package org.opencms.newsletter
Class CmsNewsletter
java.lang.Object
org.opencms.newsletter.CmsNewsletter
- All Implemented Interfaces:
I_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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(CmsObject cms, CmsResource resource) Adds a OpenCms resource as an attachment to the newsletter.voidaddContent(I_CmsNewsletterContent content) Adds content to the newsletter.org.apache.commons.mail.EmailgetEmail(CmsObject cms, I_CmsNewsletterRecipient recipient) Returns the e-mail for the newsletter.voidsetSubject(String subject) Sets the subject.
-
Constructor Details
-
CmsNewsletter
public CmsNewsletter()Creates a new newsletter instance.
-
-
Method Details
-
addAttachment
Description copied from interface:I_CmsNewsletterAdds a OpenCms resource as an attachment to the newsletter.- Specified by:
addAttachmentin interfaceI_CmsNewsletter- Parameters:
cms- the CmsObjectresource- the resource to attach- See Also:
-
addContent
Description copied from interface:I_CmsNewsletterAdds content to the newsletter.- Specified by:
addContentin interfaceI_CmsNewsletter- Parameters:
content- the content to add- See Also:
-
getEmail
public org.apache.commons.mail.Email getEmail(CmsObject cms, I_CmsNewsletterRecipient recipient) throws CmsException Returns the e-mail for the newsletter.- Specified by:
getEmailin interfaceI_CmsNewsletter- Parameters:
cms- the CmsObjectrecipient- the recipient to whom the newsletter is sent- Returns:
- the e-mail for the newsletter
- Throws:
CmsException- if something goes wrong
-
setSubject
Description copied from interface:I_CmsNewsletterSets the subject.- Specified by:
setSubjectin interfaceI_CmsNewsletter- Parameters:
subject- the subject to set- See Also:
-