View Javadoc
1   /*
2    * Copyright (c) 2002-2021, City of 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.announce.business;
35  
36  import java.util.Date;
37  
38  /**
39   * Search filter for announces
40   */
41  public class AnnounceSearchFilter
42  {
43      private int _nIdFilter;
44      private String _strKeywords;
45      private int _nIdSector;
46      private int _nIdCategory;
47      private Date _dateMin;
48      private Date _dateMax;
49      private int _nPriceMin;
50      private int _nPriceMax;
51  
52      /**
53       * Get the id of the filter
54       * 
55       * @return The id of the filter
56       */
57      public int getIdFilter( )
58      {
59          return _nIdFilter;
60      }
61  
62      /**
63       * Set the id of the filter
64       * 
65       * @param nIdFilter
66       *            The id of the filter
67       */
68      public void setIdFilter( int nIdFilter )
69      {
70          this._nIdFilter = nIdFilter;
71      }
72  
73      /**
74       * Get the keywords of the filter
75       * 
76       * @return The keywords of the filter
77       */
78      public String getKeywords( )
79      {
80          return _strKeywords;
81      }
82  
83      /**
84       * Set the keywords of the filter
85       * 
86       * @param strKeywords
87       *            The keywords of the filter
88       */
89      public void setKeywords( String strKeywords )
90      {
91          this._strKeywords = strKeywords;
92      }
93  
94      /**
95       * Get the id of the sector of the filter
96       * 
97       * @return The id of the sector of the filter
98       */
99      public int getIdSector( )
100     {
101         return _nIdSector;
102     }
103 
104     /**
105      * Set the id of the sector of the filter
106      * 
107      * @param nIdSector
108      *            The id of the sector of the filter
109      */
110     public void setIdSector( int nIdSector )
111     {
112         this._nIdSector = nIdSector;
113     }
114 
115     /**
116      * Get the id of the category of the filter
117      * 
118      * @return The id of the category of the filter
119      */
120     public int getIdCategory( )
121     {
122         return _nIdCategory;
123     }
124 
125     /**
126      * Set the id of the category of the filter
127      * 
128      * @param nIdCategory
129      *            The id of the category of the filter
130      */
131     public void setIdCategory( int nIdCategory )
132     {
133         this._nIdCategory = nIdCategory;
134     }
135 
136     /**
137      * Get the minimum publication date of the filter
138      * 
139      * @return The minimum publication date of the filter
140      */
141     public Date getDateMin( )
142     {
143         return _dateMin;
144     }
145 
146     /**
147      * Set the minimum publication date of the filter
148      * 
149      * @param dateMin
150      *            The minimum publication date of the filter
151      */
152     public void setDateMin( Date dateMin )
153     {
154         this._dateMin = dateMin;
155     }
156 
157     /**
158      * Get the maximum publication date of the filter
159      * 
160      * @return The maximum publication date of the filter
161      */
162     public Date getDateMax( )
163     {
164         return _dateMax;
165     }
166 
167     /**
168      * Set the maximum publication date of the filter
169      * 
170      * @param dateMax
171      *            The maximum publication date of the filter
172      */
173     public void setDateMax( Date dateMax )
174     {
175         this._dateMax = dateMax;
176     }
177 
178     /**
179      * Get the minimum price of the filter
180      * 
181      * @return The minimum price of the filter
182      */
183     public int getPriceMin( )
184     {
185         return _nPriceMin;
186     }
187 
188     /**
189      * Set the minimum price of the filter
190      * 
191      * @param nPriceMin
192      *            The minimum price of the filter
193      */
194     public void setPriceMin( int nPriceMin )
195     {
196         this._nPriceMin = nPriceMin;
197     }
198 
199     /**
200      * Get the maximum price of the filter
201      * 
202      * @return The maximum price of the filter
203      */
204     public int getPriceMax( )
205     {
206         return _nPriceMax;
207     }
208 
209     /**
210      * Set the maximum price of the filter
211      * 
212      * @param nPriceMax
213      *            The maximum price of the filter
214      */
215     public void setPriceMax( int nPriceMax )
216     {
217         this._nPriceMax = nPriceMax;
218     }
219 }