Class 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) $
    • Constructor Detail

      • Subscription

        public Subscription()
    • 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 or getEmail() 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 or getUserId() 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()