Package lumis.service.newsletter
Class Subscription
- java.lang.Object
-
- lumis.service.newsletter.Subscription
-
public class Subscription extends Object
- Since:
- 4.0.8
- Version:
- $Revision: 16382 $ $Date: 2014-08-01 19:13:32 -0300 (Fri, 01 Aug 2014) $
-
-
Field Summary
Fields Modifier and Type Field Description static int
FORMAT_HTML
static int
FORMAT_TEXT
-
Constructor Summary
Constructors Constructor Description Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Category>
getCategories()
Returns the categories.String
getEmail()
Returns the email for this subscription.int
getEmailFormat()
Returns the emailFormat.String
getId()
Returns the id.String
getLocale()
String
getUserId()
Returns the userId.void
setCategories(Collection<Category> categories)
Sets the categories.void
setEmail(String email)
Sets the email.void
setEmailFormat(int emailFormat)
Sets the emailFormat.void
setId(String id)
Sets the id.void
setLocale(String locale)
void
setUserId(String userId)
Sets the userId.
-
-
-
Field Detail
-
FORMAT_TEXT
public static final int FORMAT_TEXT
- See Also:
- Constant Field Values
-
FORMAT_HTML
public static final int FORMAT_HTML
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEmailFormat
public int getEmailFormat()
Returns the emailFormat.- Returns:
- the emailFormat
- Since:
- 4.0.8
-
setEmailFormat
public void setEmailFormat(int emailFormat)
Sets the emailFormat.- Parameters:
emailFormat
- the emailFormat value to set- Since:
- 4.0.8
-
getLocale
public String getLocale()
-
setLocale
public void setLocale(String locale)
-
getId
public String getId()
Returns the id.- Returns:
- the id
- Since:
- 4.0.8
-
setId
public void setId(String id)
Sets the id.- Parameters:
id
- the id value to set- Since:
- 4.0.8
-
getUserId
public String getUserId()
Returns the userId. Either this orgetEmail()
must be defined.- Returns:
- the userId, or null if not specified.
- Since:
- 4.0.8
-
setUserId
public void setUserId(String userId)
Sets the userId.- Parameters:
userId
- the userId value to set- Since:
- 4.0.8
- See Also:
getUserId()
-
getCategories
public Collection<Category> getCategories()
Returns the categories.- Returns:
- the categories
- Since:
- 4.0.8
-
setCategories
public void setCategories(Collection<Category> categories)
Sets the categories.- Parameters:
categories
- the categories value to set- Since:
- 4.0.8
-
getEmail
public String getEmail()
Returns the email for this subscription. Either this orgetUserId()
must be specified.- Returns:
- the email, or null if not specified.
- Since:
- 4.0.9
-
setEmail
public void setEmail(String email)
Sets the email.- Parameters:
email
- the email value to set.- Since:
- 4.0.9
- See Also:
getEmail()
-
-