Package org.opencms.newsletter
Class CmsSimpleNewsletterRecipient
java.lang.Object
org.opencms.newsletter.CmsSimpleNewsletterRecipient
- All Implemented Interfaces:
I_CmsNewsletterRecipient
Simple implementation of interface
I_CmsNewsletterRecipient, with
I_CmsNewsletterRecipient.isSubscriber(org.opencms.newsletter.I_CmsNewsletterContent) always returning true.- Since:
- 6.0.2
-
Constructor Summary
ConstructorsConstructorDescriptionCmsSimpleNewsletterRecipient(String email, String name) Creates a new CmsSimpleNewsletterRecipient.CmsSimpleNewsletterRecipient(String email, String firstname, String lastname) Creates a new CmsSimpleNewsletterRecipient. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()Returns the email address of the recipient.Returns the firstname of the recipient.Returns the nicename of the recipient.Returns the lastname of the recipient.getName()Returns the name of the recipient.inthashCode()booleanisSubscriber(I_CmsNewsletterContent content) Returnstruein case this newsletter recipient has subscribed to the given content.protected voidSet the email address of this recepient.
-
Constructor Details
-
CmsSimpleNewsletterRecipient
Creates a new CmsSimpleNewsletterRecipient.- Parameters:
email- the email address to be sentname- the nicename of the recipient
-
CmsSimpleNewsletterRecipient
Creates a new CmsSimpleNewsletterRecipient.- Parameters:
email- the email address to be sentfirstname- the firstname of the recipientlastname- the newsletter recipient's lastname
-
-
Method Details
-
equals
-
getEmail
Description copied from interface:I_CmsNewsletterRecipientReturns the email address of the recipient.- Specified by:
getEmailin interfaceI_CmsNewsletterRecipient- Returns:
- the email address of the recipient.
- See Also:
-
getFirstname
Description copied from interface:I_CmsNewsletterRecipientReturns the firstname of the recipient.- Specified by:
getFirstnamein interfaceI_CmsNewsletterRecipient- Returns:
- the firstname of the recipient.
- See Also:
-
getFullName
Description copied from interface:I_CmsNewsletterRecipientReturns the nicename of the recipient.- Specified by:
getFullNamein interfaceI_CmsNewsletterRecipient- Returns:
- the nicename of the recipient.
- See Also:
-
getLastname
Description copied from interface:I_CmsNewsletterRecipientReturns the lastname of the recipient.- Specified by:
getLastnamein interfaceI_CmsNewsletterRecipient- Returns:
- the lastname of the recipient.
- See Also:
-
getName
Returns the name of the recipient.- Returns:
- the name of the recipient.
-
hashCode
-
isSubscriber
Description copied from interface:I_CmsNewsletterRecipientReturnstruein case this newsletter recipient has subscribed to the given content.- Specified by:
isSubscriberin interfaceI_CmsNewsletterRecipient- Parameters:
content- the content to check for subscription- Returns:
truein case this newsletter recipient has subscribed to the given content- See Also:
-
setEmail
Set the email address of this recepient.- Parameters:
email- the email address of this recepient to set.
-