|
||||||||
| 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 recipient
public CmsSimpleNewsletterRecipient(String email,
String firstname,
String lastname)
email - the email address to be sentfirstname - the firstname of the recipientlastname - the newsletter recipient's lastname| Method Detail |
|---|
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String getEmail()
I_CmsNewsletterRecipient
getEmail in interface I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getEmail()public String getFirstname()
I_CmsNewsletterRecipient
getFirstname in interface I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getFirstname()public String getFullName()
I_CmsNewsletterRecipient
getFullName in interface I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getFullName()public String getLastname()
I_CmsNewsletterRecipient
getLastname in interface I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getLastname()public String getName()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean isSubscriber(I_CmsNewsletterContent content)
I_CmsNewsletterRecipienttrue in case this newsletter recipient has subscribed to the given content.
isSubscriber in interface I_CmsNewsletterRecipientcontent - 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 | |||||||