View Javadoc
1   package fr.paris.lutece.plugins.newsletter.modules.htmldocs.business;
2   
3   /**
4    * Newsletter htmldocs topic class
5    */
6   public class NewsletterHtmlDoc
7   {
8       private int _nId;
9       private int _nIdTemplate;
10      private boolean _bUseDocumentTags;
11  
12      /**
13       * Get the id of the topic
14       * 
15       * @return The id of the topic
16       */
17      public int getId( )
18      {
19          return _nId;
20      }
21  
22      /**
23       * Set the id of the topic
24       * 
25       * @param nId
26       *            The id of the topic
27       */
28      public void setId( int nId )
29      {
30          this._nId = nId;
31      }
32  
33      /**
34       * Get the id of the template to apply to htmldocs of this topic
35       * 
36       * @return The id of the template to apply to htmldocs of this topic
37       */
38      public int getIdTemplate( )
39      {
40          return _nIdTemplate;
41      }
42  
43      /**
44       * Set the id of the template to apply to htmldocs of this topic
45       * 
46       * @param nIdTemplate
47       *            The id of the template to apply to htmldocs of this topic
48       */
49      public void setIdTemplate( int nIdTemplate )
50      {
51          this._nIdTemplate = nIdTemplate;
52      }
53  
54      /**
55       * Check if this topic use htmldocs tags to get the htmldocs list, or document list portlets
56       * 
57       * @return True if this topic use htmldocs categories to get the htmldocs list, false if it use portlets.
58       */
59      public boolean getUseDocumentTags( )
60      {
61          return _bUseDocumentTags;
62      }
63  
64      /**
65       * Set the flag to indicates if this topic use htmldocs tags to get the htmldocs list, or htmldocs list portlets
66       * 
67       * @param bUseDocumentTags
68       *            True if this topic use htmldocs tags to get the document list, false if it use portlets.
69       */
70      public void setUseDocumentTags( boolean bUseDocumentTags )
71      {
72          this._bUseDocumentTags = bUseDocumentTags;
73      }
74  }