fr.paris.lutece.plugins.newsletter.business.topic
Class NewsletterTopic

java.lang.Object
  extended by 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 Summary
NewsletterTopic()
           
 
Method Summary
 int compareTo(NewsletterTopic o)
          
 boolean equals(Object o)
          
 int getId()
          Get the id of this newsletter topic
 int getIdNewsletter()
          Get the id of the newsletter associated with this newsletter topic
 int getOrder()
          Get the order of the newsletter topic
 int getSection()
          Get the section of the topic
 String getTitle()
          Get the title of this newsletter topic
 String getTopicTypeCode()
          Get the name of the topic type of this newsletter topic
 String getTopicTypeName()
          Get the name of the topic type associated with this topic
 int hashCode()
          
 void setId(int nId)
          Set the id of this newsletter topic
 void setIdNewsletter(int nIdNewsletter)
          Set the id of the newsletter associated with this newsletter topic
 void setOrder(int nOrder)
          Set the order of the newsletter topic
 void setSection(int nSection)
          Set the section of the topic
 void setTitle(String strTitle)
          Set the title of this newsletter topic
 void setTopicTypeCode(String strTopicTypeCode)
          Set the name of the topic type of this newsletter topic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsletterTopic

public NewsletterTopic()
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 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


Copyright © 2013 Mairie de Paris. All Rights Reserved.