Class Subscriber
- java.lang.Object
-
- org.ametys.plugins.newsletter.daos.Subscriber
-
public class Subscriber extends Object
This class represents a newsletter's subscriber
-
-
Field Summary
Fields Modifier and Type Field Description private String
_categoryId
private String
_email
private String
_siteName
private Date
_subscribedAt
private String
_token
-
Constructor Summary
Constructors Constructor Description Subscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategoryId()
Returns the newsletter categoryString
getEmail()
Get the subscriber emailString
getSiteName()
Returns the newsletter site nameDate
getSubscribedAt()
Returns the date of subscriptionString
getToken()
Get the user tokenvoid
setCategoryId(String categoryId)
The id of the categoryvoid
setEmail(String email)
Set the subscriber emailvoid
setSiteName(String siteName)
Set the site namevoid
setSubscribedAt(Date subscribedAt)
Set the date of subscriptionvoid
setToken(String token)
Set the user token
-
-
-
Field Detail
-
_categoryId
private String _categoryId
-
_subscribedAt
private Date _subscribedAt
-
-
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
-
-