Class Subscriber
java.lang.Object
org.ametys.plugins.newsletter.daos.Subscriber
This class represents a newsletter's subscriber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the newsletter categorygetEmail()Get the subscriber emailReturns the newsletter site nameReturns the date of subscriptiongetToken()Get the user tokenvoidsetCategoryId(String categoryId) The id of the categoryvoidSet the subscriber emailvoidsetSiteName(String siteName) Set the site namevoidsetSubscribedAt(Date subscribedAt) Set the date of subscriptionvoidSet the user token
-
Constructor Details
-
Subscriber
public Subscriber()
-
-
Method Details
-
getCategoryId
Returns the newsletter category- Returns:
- the newsletter category
-
getSiteName
Returns the newsletter site name- Returns:
- the newsletter site name
-
getEmail
Get the subscriber email- Returns:
- the subscriber email
-
getSubscribedAt
Returns the date of subscription- Returns:
- the date of subscription
-
setEmail
Set the subscriber email- Parameters:
email- The email to set
-
setSiteName
Set the site name- Parameters:
siteName- The site name to set
-
setCategoryId
The id of the category- Parameters:
categoryId- The category's id
-
setSubscribedAt
Set the date of subscription- Parameters:
subscribedAt- The date of subscription
-
getToken
Get the user token- Returns:
- the user token
-
setToken
Set the user token- Parameters:
token- the user token
-