|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.newsletter.CmsSimpleNewsletterRecipient
public class CmsSimpleNewsletterRecipient
Simple implementation of interface I_CmsNewsletterRecipient
, with
I_CmsNewsletterRecipient.isSubscriber(org.opencms.newsletter.I_CmsNewsletterContent)
always returning true.
Constructor Summary | |
---|---|
CmsSimpleNewsletterRecipient(String email,
String name)
Creates a new CmsSimpleNewsletterRecipient. |
|
CmsSimpleNewsletterRecipient(String email,
String firstname,
String lastname)
Creates a new CmsSimpleNewsletterRecipient. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getEmail()
Returns the email address of the recipient. |
String |
getFirstname()
Returns the firstname of the recipient. |
String |
getFullName()
Returns the nicename of the recipient. |
String |
getLastname()
Returns the lastname of the recipient. |
String |
getName()
Returns the name of the recipient. |
int |
hashCode()
|
boolean |
isSubscriber(I_CmsNewsletterContent content)
Returns true in case this newsletter recipient has subscribed to the given content. |
protected void |
setEmail(String email)
Set the email address of this recepient. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsSimpleNewsletterRecipient(String email, String name)
email
- the email address to be sentname
- the nicename of the recipientpublic CmsSimpleNewsletterRecipient(String email, String firstname, String lastname)
email
- the email address to be sentfirstname
- the firstname of the recipientlastname
- the newsletter recipient's lastnameMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String getEmail()
I_CmsNewsletterRecipient
getEmail
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getEmail()
public String getFirstname()
I_CmsNewsletterRecipient
getFirstname
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getFirstname()
public String getFullName()
I_CmsNewsletterRecipient
getFullName
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getFullName()
public String getLastname()
I_CmsNewsletterRecipient
getLastname
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getLastname()
public String getName()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isSubscriber(I_CmsNewsletterContent content)
I_CmsNewsletterRecipient
true
in case this newsletter recipient has subscribed to the given content.
isSubscriber
in interface I_CmsNewsletterRecipient
content
- the content to check for subscription
true
in case this newsletter recipient has subscribed to the given contentI_CmsNewsletterRecipient.isSubscriber(org.opencms.newsletter.I_CmsNewsletterContent)
protected void setEmail(String email)
email
- the email address of this recepient to set.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |