View Javadoc
1   /**
2    *
3    */
4   package fr.paris.lutece.plugins.dila.business.donneescomplementaires.dto;
5   
6   import fr.paris.lutece.plugins.dila.business.fichelocale.dto.XmlDTO;
7   
8   import java.io.Serializable;
9   
10  
11  /**
12   */
13  public class ComplementaryDataDTO implements Serializable
14  {
15      /** Serial ID */
16      private static final long serialVersionUID = -3811416313997827545L;
17  
18      /**
19       * The database id
20       */
21      private Long _lId;
22  
23      /**
24       * Content of bottom block
25       */
26      private String _strBottomBlock;
27  
28      /**
29       * Content of column block
30       */
31      private String _strColumnBlock;
32  
33      /**
34       * The database audience id
35       */
36      private Long _lIdAudience;
37  
38      /**
39       * The linked card
40       */
41      private XmlDTO _card;
42  
43      /**
44       * Default constructor
45       */
46      public ComplementaryDataDTO( )
47      {
48          _card = new XmlDTO( );
49      }
50  
51      /**
52       * @return the _lId
53       */
54      public Long getId( )
55      {
56          return _lId;
57      }
58  
59      /**
60       * @param lId the _lId to set
61       */
62      public void setId( Long lId )
63      {
64          this._lId = lId;
65      }
66  
67      /**
68       * @return the _strBottomBlock
69       */
70      public String getBottomBlock( )
71      {
72          return _strBottomBlock;
73      }
74  
75      /**
76       * @param strBottomBlock the _strBottomBlock to set
77       */
78      public void setBottomBlock( String strBottomBlock )
79      {
80          this._strBottomBlock = strBottomBlock;
81      }
82  
83      /**
84       * @return the _strColumnBlock
85       */
86      public String getColumnBlock( )
87      {
88          return _strColumnBlock;
89      }
90  
91      /**
92       * @param strColumnBlock the _strColumnBlock to set
93       */
94      public void setColumnBlock( String strColumnBlock )
95      {
96          this._strColumnBlock = strColumnBlock;
97      }
98  
99      /**
100      * @return the _card
101      */
102     public XmlDTO getCard( )
103     {
104         return _card;
105     }
106 
107     /**
108      * @param card the _card to set
109      */
110     public void setCard( XmlDTO card )
111     {
112         this._card = card;
113     }
114 
115     /**
116      * @return the _lIdAudience
117      */
118     public Long getIdAudience( )
119     {
120         return _lIdAudience;
121     }
122 
123     /**
124      * @param lIdAudience the _lIdAudience to set
125      */
126     public void setIdAudience( Long lIdAudience )
127     {
128         this._lIdAudience = lIdAudience;
129     }
130 
131     /**
132      * Hack to order by linked card idXml
133      * 
134      * @return the linked card idXml {@link XmlDTO#getIdXml()}
135      */
136     public String getCardIdXml( )
137     {
138         return getCard( ).getIdXml( );
139     }
140 
141     /**
142      * Hack to order by linked card title
143      * 
144      * @return the linked card title {@link XmlDTO#getTitle()}
145      */
146     public String getCardTitle( )
147     {
148         return getCard( ).getTitle( );
149     }
150 }