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 folder object
43   */
44  public class LocalFolderDTO implements Serializable
45  {
46      /** Serial ID */
47      private static final long serialVersionUID = 47780930283205463L;
48  
49      /**
50       * The id of folder
51       */
52      private Long _lId;
53  
54      /**
55       * The id of theme parent
56       */
57      private String _strParentThemeId;
58  
59      /**
60       * The title of theme parent
61       */
62      private String _strParentThemeTitle;
63  
64      /**
65       * The id of sibling folder
66       */
67      private String _strSiblingFolderId;
68  
69      /**
70       * The title of sibling folder
71       */
72      private String _strSiblingFolderTitle;
73  
74      /**
75       * The position of sibling folder (Before / After)
76       */
77      private Integer _nPosition;
78  
79      /**
80       * The presentation
81       */
82      private String _strPresentation;
83  
84      /**
85       * The linked {@link LocalDTO} resource
86       */
87      private LocalDTO _localDTO;
88  
89      /**
90       * Default constructor
91       */
92      public LocalFolderDTO(  )
93      {
94          LocalTypeDTO type = new LocalTypeDTO(  );
95          type.setId( DilaLocalTypeEnum.FOLDER.getId(  ) );
96          _localDTO = new LocalDTO( type );
97      }
98  
99      /**
100      * @return the _lId
101      */
102     public Long getId(  )
103     {
104         return _lId;
105     }
106 
107     /**
108      * @param lId the _lId to set
109      */
110     public void setId( Long lId )
111     {
112         this._lId = lId;
113     }
114 
115     /**
116      * @return the _strParentThemeId
117      */
118     public String getParentThemeId(  )
119     {
120         return _strParentThemeId;
121     }
122 
123     /**
124      * @param strParentThemeId the _strParentThemeId to set
125      */
126     public void setParentThemeId( String strParentThemeId )
127     {
128         this._strParentThemeId = strParentThemeId;
129     }
130 
131     /**
132      * @return the _strSiblingFolderId
133      */
134     public String getSiblingFolderId(  )
135     {
136         return _strSiblingFolderId;
137     }
138 
139     /**
140      * @param strSiblingFolderId the _strSiblingFolderId to set
141      */
142     public void setSiblingFolderId( String strSiblingFolderId )
143     {
144         this._strSiblingFolderId = strSiblingFolderId;
145     }
146 
147     /**
148      * @return the _nPosition
149      */
150     public Integer getPosition(  )
151     {
152         return _nPosition;
153     }
154 
155     /**
156      * @param nPosition the _nPosition to set
157      */
158     public void setPosition( Integer nPosition )
159     {
160         this._nPosition = nPosition;
161     }
162 
163     /**
164      * @return the _strPresentation
165      */
166     public String getPresentation(  )
167     {
168         return _strPresentation;
169     }
170 
171     /**
172      * @param strPresentation the _strPresentation to set
173      */
174     public void setPresentation( String strPresentation )
175     {
176         this._strPresentation = strPresentation;
177     }
178 
179     /**
180      * @return the _localDTO
181      */
182     public LocalDTO getLocalDTO(  )
183     {
184         return _localDTO;
185     }
186 
187     /**
188      * @param localDTO the _localDTO to set
189      */
190     public void setLocalDTO( LocalDTO localDTO )
191     {
192         this._localDTO = localDTO;
193     }
194 
195     /**
196      * @return the _strParentThemeTitle
197      */
198     public String getParentThemeTitle(  )
199     {
200         return _strParentThemeTitle;
201     }
202 
203     /**
204      * @param strParentThemeTitle the _strParentThemeTitle to set
205      */
206     public void setParentThemeTitle( String strParentThemeTitle )
207     {
208         this._strParentThemeTitle = strParentThemeTitle;
209     }
210 
211     /**
212      * @return the _strSiblingFolderTitle
213      */
214     public String getSiblingFolderTitle(  )
215     {
216         return _strSiblingFolderTitle;
217     }
218 
219     /**
220      * @param strSiblingFolderTitle the _strSiblingFolderTitle to set
221      */
222     public void setSiblingFolderTitle( String strSiblingFolderTitle )
223     {
224         this._strSiblingFolderTitle = strSiblingFolderTitle;
225     }
226 }