View Javadoc
1   /*
2    * Copyright (c) 2002-2014, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.dila.business.fichelocale.dto;
35  
36  import fr.paris.lutece.plugins.dila.service.DilaLocalTypeEnum;
37  
38  import java.io.Serializable;
39  
40  
41  /**
42   * DTO for local card object
43   */
44  public class LocalCardDTO implements Serializable
45  {
46      /** Serial ID */
47      private static final long serialVersionUID = -9030684250164585235L;
48  
49      /** The id */
50      private Long _lId;
51  
52      /** The parent folder id */
53      private String _strParentFolderId;
54  
55      /** The parent folder title */
56      private String _strParentFolderTitle;
57  
58      /** The local parent folder */
59      private LocalFolderDTO _localParentFolder;
60  
61      /** the national parent folder */
62      private XmlDTO _nationalParentFolder;
63  
64      /** The sibling card. */
65      private String _strSiblingCardId;
66  
67      /** The sibling card title */
68      private String _strSiblingCardTitle;
69  
70      /** The position. */
71      private Integer _nPosition;
72  
73      /** The linked {@link LocalDTO} resource */
74      private LocalDTO _localDTO;
75  
76      /**
77       * Default contructor. Init the {@link LocalDTO} with card type
78       */
79      public LocalCardDTO(  )
80      {
81          LocalTypeDTO type = new LocalTypeDTO(  );
82          type.setId( DilaLocalTypeEnum.CARD.getId(  ) );
83          _localDTO = new LocalDTO( type );
84  
85          _localParentFolder = new LocalFolderDTO(  );
86          _nationalParentFolder = new XmlDTO(  );
87      }
88  
89      /**
90       * @return the _lId
91       */
92      public Long getId(  )
93      {
94          return _lId;
95      }
96  
97      /**
98       * @param lId the _lId to set
99       */
100     public void setId( Long lId )
101     {
102         this._lId = lId;
103     }
104 
105     /**
106      * @return the _strParentFolderId
107      */
108     public String getParentFolderId(  )
109     {
110         return _strParentFolderId;
111     }
112 
113     /**
114      * @param strParentFolderId the _strParentFolderId to set
115      */
116     public void setParentFolderId( String strParentFolderId )
117     {
118         this._strParentFolderId = strParentFolderId;
119     }
120 
121     /**
122      * @return the _strSiblingCardId
123      */
124     public String getSiblingCardId(  )
125     {
126         return _strSiblingCardId;
127     }
128 
129     /**
130      * @param strSiblingCardId the _strSiblingCardId to set
131      */
132     public void setSiblingCardId( String strSiblingCardId )
133     {
134         this._strSiblingCardId = strSiblingCardId;
135     }
136 
137     /**
138      * @return the position
139      */
140     public Integer getPosition(  )
141     {
142         return _nPosition;
143     }
144 
145     /**
146      * @param position the position to set
147      */
148     public void setPosition( Integer position )
149     {
150         this._nPosition = position;
151     }
152 
153     /**
154      * @return the _localDTO
155      */
156     public LocalDTO getLocalDTO(  )
157     {
158         return _localDTO;
159     }
160 
161     /**
162      * @param localDTO the _localDTO to set
163      */
164     public void setLocalDTO( LocalDTO localDTO )
165     {
166         this._localDTO = localDTO;
167     }
168 
169     /**
170      * @return the _localParentFolder
171      */
172     public LocalFolderDTO getLocalParentFolder(  )
173     {
174         return _localParentFolder;
175     }
176 
177     /**
178      * @param localParentFolder the _localParentFolder to set
179      */
180     public void setLocalParentFolder( LocalFolderDTO localParentFolder )
181     {
182         this._localParentFolder = localParentFolder;
183     }
184 
185     /**
186      * @return the _nationalParentFolder
187      */
188     public XmlDTO getNationalParentFolder(  )
189     {
190         return _nationalParentFolder;
191     }
192 
193     /**
194      * @param nationalParentFolder the _nationalParentFolder to set
195      */
196     public void setNationalParentFolder( XmlDTO nationalParentFolder )
197     {
198         this._nationalParentFolder = nationalParentFolder;
199     }
200 
201     /**
202      * @return the _strParentFolderTitle
203      */
204     public String getParentFolderTitle(  )
205     {
206         return _strParentFolderTitle;
207     }
208 
209     /**
210      * @param strParentFolderTitle the _strParentFolderTitle to set
211      */
212     public void setParentFolderTitle( String strParentFolderTitle )
213     {
214         this._strParentFolderTitle = strParentFolderTitle;
215     }
216 
217     /**
218      * @return the _strSiblingCardTitle
219      */
220     public String getSiblingCardTitle(  )
221     {
222         return _strSiblingCardTitle;
223     }
224 
225     /**
226      * @param strSiblingCardTitle the _strSiblingCardTitle to set
227      */
228     public void setSiblingCardTitle( String strSiblingCardTitle )
229     {
230         this._strSiblingCardTitle = strSiblingCardTitle;
231     }
232 }