1 /*
2 * Copyright (c) 2002-2017, 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 /*
35 * To change this license header, choose License Headers in Project Properties.
36 * To change this template file, choose Tools | Templates
37 * and open the template in the editor.
38 */
39 package fr.paris.lutece.plugins.transparency.business;
40
41 import java.util.List;
42
43 /**
44 *
45 * @author leridons
46 */
47 public class AppointmentFilter
48 {
49
50 private String _strLobbyName;
51 private String _strElectedOfficialName;
52 private String _strUserId;
53 private String _strTitle;
54 private int _nNumberOfDays; // appointments of the last N days
55 private String _strOrderBy; // sort records
56 private int _nIdAppointment = -1;
57 private boolean _bAsc; // sort records order (ASC = true)
58 private List<Integer> _listIds;
59
60 /**
61 * get NumberOfDays
62 *
63 * @return number of days
64 */
65 public int getNumberOfDays( )
66 {
67 return _nNumberOfDays;
68 }
69
70 /**
71 * set NumberOfDays
72 *
73 * @param numberOfDays
74 */
75 public void setNumberOfDays( int numberOfDays )
76 {
77 this._nNumberOfDays = numberOfDays;
78 }
79
80 /**
81 * get OrderBy
82 *
83 * @return the order by statement
84 */
85 public String getOrderBy( )
86 {
87 return _strOrderBy;
88 }
89
90 /**
91 * set OrderBy statement
92 *
93 * @param orderBy
94 */
95 public void setOrderBy( String orderBy )
96 {
97 this._strOrderBy = orderBy;
98 }
99
100 /**
101 * get the Asc order
102 *
103 * @return if is Asc order
104 */
105 public boolean isAsc( )
106 {
107 return _bAsc;
108 }
109
110 /**
111 * set the Asc order
112 *
113 * @param _bAsc
114 */
115 public void setAsc( boolean _bAsc )
116 {
117 this._bAsc = _bAsc;
118 }
119
120 /**
121 * get Lobby name
122 *
123 * @return lobby name
124 */
125 public String getLobbyName( )
126 {
127 return _strLobbyName;
128 }
129
130 /**
131 * set Lobby name
132 *
133 * @param _strLobbyName
134 */
135 public void setLobbyName( String _strLobbyName )
136 {
137 this._strLobbyName = _strLobbyName;
138 }
139
140 /**
141 * get Elected Official name
142 *
143 * @return electd official name
144 */
145 public String getElectedOfficialName( )
146 {
147 return _strElectedOfficialName;
148 }
149
150 /**
151 * set elected official name
152 *
153 * @param _strElectedOfficialName
154 */
155 public void setElectedOfficialName( String _strElectedOfficialName )
156 {
157 this._strElectedOfficialName = _strElectedOfficialName;
158 }
159
160 /**
161 * get user id
162 *
163 * @return the user id
164 */
165 public String getUserId( )
166 {
167 return _strUserId;
168 }
169
170 /**
171 * set user id
172 *
173 * @param _strUserId
174 */
175 public void setUserId( String _strUserId )
176 {
177 this._strUserId = _strUserId;
178 }
179
180 /**
181 * get Id Appointment
182 *
183 * @return the appointment id
184 */
185 public int getIdAppointment( )
186 {
187 return _nIdAppointment;
188 }
189
190 /**
191 * set the appointment id
192 *
193 * @param _nIdAppointment
194 */
195 public void setIdAppointment( int _nIdAppointment )
196 {
197 this._nIdAppointment = _nIdAppointment;
198 }
199
200 /**
201 * get title
202 *
203 * @return title
204 */
205 public String getTitle( )
206 {
207 return _strTitle;
208 }
209
210 /**
211 * set title
212 *
213 * @param _strTitle
214 */
215 public void setTitle( String _strTitle )
216 {
217 this._strTitle = _strTitle;
218 }
219
220 /**
221 * get the id list
222 *
223 * @return list id
224 */
225 public List<Integer> getListIds()
226 {
227 return _listIds;
228 }
229
230 /**
231 * set the idList
232 * @param _listIds
233 */
234 public void setListIds( List<Integer> _listIds)
235 {
236 this._listIds = _listIds;
237 }
238
239
240 }