Class NewsletterTopic
- java.lang.Object
-
- fr.paris.lutece.plugins.newsletter.business.topic.NewsletterTopic
-
- All Implemented Interfaces:
java.lang.Comparable<NewsletterTopic>
public class NewsletterTopic extends java.lang.Object implements java.lang.Comparable<NewsletterTopic>
Class to describe a topic of a newsletter. this class implements theComparableinterface.
-
-
Constructor Summary
Constructors Constructor Description NewsletterTopic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NewsletterTopic o)booleanequals(java.lang.Object o)intgetId()Get the id of this newsletter topicintgetIdNewsletter()Get the id of the newsletter associated with this newsletter topicintgetOrder()Get the order of the newsletter topicintgetSection()Get the section of the topicjava.lang.StringgetTitle()Get the title of this newsletter topicjava.lang.StringgetTopicTypeCode()Get the name of the topic type of this newsletter topicjava.lang.StringgetTopicTypeName()Get the name of the topic type associated with this topicinthashCode()voidsetId(int nId)Set the id of this newsletter topicvoidsetIdNewsletter(int nIdNewsletter)Set the id of the newsletter associated with this newsletter topicvoidsetOrder(int nOrder)Set the order of the newsletter topicvoidsetSection(int nSection)Set the section of the topicvoidsetTitle(java.lang.String strTitle)Set the title of this newsletter topicvoidsetTopicTypeCode(java.lang.String strTopicTypeCode)Set the name of the topic type of this newsletter topic
-
-
-
Method Detail
-
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 java.lang.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 java.lang.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(java.lang.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 java.lang.String getTitle()
Get the title of this newsletter topic- Returns:
- The title of this newsletter topic
-
setTitle
public void setTitle(java.lang.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:
compareToin interfacejava.lang.Comparable<NewsletterTopic>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-