Class Subscriber
- java.lang.Object
-
- org.ametys.plugins.newsletter.daos.Subscriber
-
public class Subscriber extends Object
This class represents a newsletter's subscriber
-
-
Constructor Summary
Constructors Constructor Description Subscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategoryId()Returns the newsletter categoryStringgetEmail()Get the subscriber emailStringgetSiteName()Returns the newsletter site nameDategetSubscribedAt()Returns the date of subscriptionStringgetToken()Get the user tokenvoidsetCategoryId(String categoryId)The id of the categoryvoidsetEmail(String email)Set the subscriber emailvoidsetSiteName(String siteName)Set the site namevoidsetSubscribedAt(Date subscribedAt)Set the date of subscriptionvoidsetToken(String token)Set the user token
-
-
-
Constructor Detail
-
Subscriber
public Subscriber()
-
-
Method Detail
-
getCategoryId
public String getCategoryId()
Returns the newsletter category- Returns:
- the newsletter category
-
getSiteName
public String getSiteName()
Returns the newsletter site name- Returns:
- the newsletter site name
-
getSubscribedAt
public Date getSubscribedAt()
Returns the date of subscription- Returns:
- the date of subscription
-
setEmail
public void setEmail(String email)
Set the subscriber email- Parameters:
email- The email to set
-
setSiteName
public void setSiteName(String siteName)
Set the site name- Parameters:
siteName- The site name to set
-
setCategoryId
public void setCategoryId(String categoryId)
The id of the category- Parameters:
categoryId- The category's id
-
setSubscribedAt
public void setSubscribedAt(Date subscribedAt)
Set the date of subscription- Parameters:
subscribedAt- The date of subscription
-
-