Class NewsletterTopic

java.lang.Object
fr.paris.lutece.plugins.newsletter.business.topic.NewsletterTopic
All Implemented Interfaces:
Comparable<NewsletterTopic>

public class NewsletterTopic extends Object implements Comparable<NewsletterTopic>
Class to describe a topic of a newsletter. this class implements the Comparable interface.
  • Constructor Details

    • NewsletterTopic

      public NewsletterTopic()
  • Method Details

    • getId

      public int getId()
      Get the id of this newsletter topic
      Returns:
      The id of this newsletter topic
    • setId

      public void setId(int nId)
      Set the id of this newsletter topic
      Parameters:
      nId - The id of this newsletter topic
    • getIdNewsletter

      public int getIdNewsletter()
      Get the id of the newsletter associated with this newsletter topic
      Returns:
      the id of the newsletter associated with this newsletter topic
    • setIdNewsletter

      public void setIdNewsletter(int nIdNewsletter)
      Set the id of the newsletter associated with this newsletter topic
      Parameters:
      nIdNewsletter - the id of the newsletter
    • getTopicTypeCode

      public String getTopicTypeCode()
      Get the name of the topic type of this newsletter topic
      Returns:
      The name of the topic type of this newsletter topic
    • getTopicTypeName

      public String getTopicTypeName()
      Get the name of the topic type associated with this topic
      Returns:
      the name of the topic type associated with this topic
    • setTopicTypeCode

      public void setTopicTypeCode(String strTopicTypeCode)
      Set the name of the topic type of this newsletter topic
      Parameters:
      strTopicTypeCode - The name of the topic type of this newsletter topic
    • getTitle

      public String getTitle()
      Get the title of this newsletter topic
      Returns:
      The title of this newsletter topic
    • setTitle

      public void setTitle(String strTitle)
      Set the title of this newsletter topic
      Parameters:
      strTitle - The title of this newsletter topic
    • getOrder

      public int getOrder()
      Get the order of the newsletter topic
      Returns:
      The order of the newsletter topic
    • setOrder

      public void setOrder(int nOrder)
      Set the order of the newsletter topic
      Parameters:
      nOrder - The order of the newsletter topic
    • getSection

      public int getSection()
      Get the section of the topic
      Returns:
      The section of the topic
    • setSection

      public void setSection(int nSection)
      Set the section of the topic
      Parameters:
      nSection - The section of the topic
    • compareTo

      public int compareTo(NewsletterTopic o)
      Specified by:
      compareTo in interface Comparable<NewsletterTopic>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object