Class NewsletterTopic
java.lang.Object
fr.paris.lutece.plugins.newsletter.business.topic.NewsletterTopic
- All Implemented Interfaces:
Comparable<NewsletterTopic>
Class to describe a topic of a newsletter. this class implements the
Comparable interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintgetId()Get the id of this newsletter topicintGet the id of the newsletter associated with this newsletter topicintgetOrder()Get the order of the newsletter topicintGet the section of the topicgetTitle()Get the title of this newsletter topicGet the name of the topic type of this newsletter topicGet 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 topicvoidSet the title of this newsletter topicvoidsetTopicTypeCode(String strTopicTypeCode) Set the name of the topic type of this newsletter topic
-
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
Get the name of the topic type of this newsletter topic- Returns:
- The name of the topic type of this newsletter topic
-
getTopicTypeName
Get the name of the topic type associated with this topic- Returns:
- the name of the topic type associated with this topic
-
setTopicTypeCode
Set the name of the topic type of this newsletter topic- Parameters:
strTopicTypeCode- The name of the topic type of this newsletter topic
-
getTitle
Get the title of this newsletter topic- Returns:
- The title of this newsletter topic
-
setTitle
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
- Specified by:
compareToin interfaceComparable<NewsletterTopic>
-
hashCode
public int hashCode() -
equals
-