Class Subscriber
java.lang.Object
org.ametys.plugins.newsletter.daos.Subscriber
This class represents a newsletter's subscriber
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the newsletter categorygetEmail()
Get the subscriber emailReturns the newsletter site nameReturns the date of subscriptiongetToken()
Get the user tokenvoid
setCategoryId
(String categoryId) The id of the categoryvoid
Set the subscriber emailvoid
setSiteName
(String siteName) Set the site namevoid
setSubscribedAt
(Date subscribedAt) Set the date of subscriptionvoid
Set 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
-