|
||||||
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(java.lang.String email,
java.lang.String name)
Creates a new CmsSimpleNewsletterRecipient. |
|
CmsSimpleNewsletterRecipient(java.lang.String email,
java.lang.String firstname,
java.lang.String lastname)
Creates a new CmsSimpleNewsletterRecipient. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEmail()
Returns the email address of the recipient. |
java.lang.String |
getFirstname()
Returns the firstname of the recipient. |
java.lang.String |
getFullName()
Returns the nicename of the recipient. |
java.lang.String |
getLastname()
Returns the lastname of the recipient. |
java.lang.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(java.lang.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(java.lang.String email, java.lang.String name)
email
- the email address to be sentname
- the nicename of the recipientpublic CmsSimpleNewsletterRecipient(java.lang.String email, java.lang.String firstname, java.lang.String lastname)
email
- the email address to be sentfirstname
- the firstname of the recipientlastname
- the newsletter recipient's lastnameMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getEmail()
I_CmsNewsletterRecipient
getEmail
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getEmail()
public java.lang.String getFirstname()
I_CmsNewsletterRecipient
getFirstname
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getFirstname()
public java.lang.String getFullName()
I_CmsNewsletterRecipient
getFullName
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getFullName()
public java.lang.String getLastname()
I_CmsNewsletterRecipient
getLastname
in interface I_CmsNewsletterRecipient
I_CmsNewsletterRecipient.getLastname()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.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(java.lang.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 |