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
ConstructorDescriptionCmsSimpleNewsletterRecipient
(String email, String name) Creates a new CmsSimpleNewsletterRecipient.CmsSimpleNewsletterRecipient
(String email, String firstname, String lastname) Creates a new CmsSimpleNewsletterRecipient. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getEmail()
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.int
hashCode()
boolean
isSubscriber
(I_CmsNewsletterContent content) Returnstrue
in case this newsletter recipient has subscribed to the given content.protected void
Set 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_CmsNewsletterRecipient
Returns the email address of the recipient.- Specified by:
getEmail
in interfaceI_CmsNewsletterRecipient
- Returns:
- the email address of the recipient.
- See Also:
-
getFirstname
Description copied from interface:I_CmsNewsletterRecipient
Returns the firstname of the recipient.- Specified by:
getFirstname
in interfaceI_CmsNewsletterRecipient
- Returns:
- the firstname of the recipient.
- See Also:
-
getFullName
Description copied from interface:I_CmsNewsletterRecipient
Returns the nicename of the recipient.- Specified by:
getFullName
in interfaceI_CmsNewsletterRecipient
- Returns:
- the nicename of the recipient.
- See Also:
-
getLastname
Description copied from interface:I_CmsNewsletterRecipient
Returns the lastname of the recipient.- Specified by:
getLastname
in 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_CmsNewsletterRecipient
Returnstrue
in case this newsletter recipient has subscribed to the given content.- Specified by:
isSubscriber
in interfaceI_CmsNewsletterRecipient
- Parameters:
content
- the content to check for subscription- Returns:
true
in 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.
-