public class CmsSimpleNewsletterRecipient extends java.lang.Object implements I_CmsNewsletterRecipient
I_CmsNewsletterRecipient, with
I_CmsNewsletterRecipient.isSubscriber(org.opencms.newsletter.I_CmsNewsletterContent) always returning true.| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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 lastnamepublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getEmail()
I_CmsNewsletterRecipientgetEmail 在接口中 I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getEmail()public java.lang.String getFirstname()
I_CmsNewsletterRecipientgetFirstname 在接口中 I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getFirstname()public java.lang.String getFullName()
I_CmsNewsletterRecipientgetFullName 在接口中 I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getFullName()public java.lang.String getLastname()
I_CmsNewsletterRecipientgetLastname 在接口中 I_CmsNewsletterRecipientI_CmsNewsletterRecipient.getLastname()public java.lang.String getName()
public int hashCode()
hashCode 在类中 java.lang.ObjectObject.hashCode()public boolean isSubscriber(I_CmsNewsletterContent content)
I_CmsNewsletterRecipienttrue in case this newsletter recipient has subscribed to the given content.isSubscriber 在接口中 I_CmsNewsletterRecipientcontent - the content to check for subscriptiontrue 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.