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.blog.business;
35
36 import java.util.Date;
37
38 /**
39 * Search filter for blog
40 */
41 public class BlogSearchFilter
42 {
43 private int _nIdFilter;
44 private String _strKeywords;
45 private String [ ] _strTag;
46 private String _strUser;
47 private int _nIsUnpublished;
48 private Date _dateUpdateDateAfter;
49 private Date _dateUpdateDateBefor;
50 private String _strUserEditedBlogVersion;
51 private Boolean _bIsArchived;
52
53 /**
54 * Get the id of the filter
55 *
56 * @return The id of the filter
57 */
58 public int getIdFilter( )
59 {
60 return _nIdFilter;
61 }
62
63 /**
64 * Set the id of the filter
65 *
66 * @param nIdFilter
67 * The id of the filter
68 */
69 public void setIdFilter( int nIdFilter )
70 {
71 this._nIdFilter = nIdFilter;
72 }
73
74 /**
75 * Get the keywords of the filter
76 *
77 * @return The keywords of the filter
78 */
79 public String getKeywords( )
80 {
81 return _strKeywords;
82 }
83
84 /**
85 * Set the keywords of the filter
86 *
87 * @param strKeywords
88 * The keywords of the filter
89 */
90 public void setKeywords( String strKeywords )
91 {
92 this._strKeywords = strKeywords;
93 }
94
95 /**
96 * Get the tag of the filter
97 *
98 * @return The tag of the filter
99 */
100 public String [ ] getTag( )
101 {
102 return _strTag;
103 }
104
105 /**
106 * Set the strTag of the filter
107 *
108 * @param strTag
109 * The tag of the filter
110 */
111 public void setTag( String [ ] strTag )
112 {
113 this._strTag = strTag;
114 }
115
116 /**
117 * Sets the User
118 *
119 * @param strUser
120 * The User
121 */
122 public void setUser( String strUser )
123 {
124 _strUser = strUser;
125 }
126
127 /**
128 * Returns the strUser
129 *
130 * @return The strUser
131 */
132 public String getUser( )
133 {
134 return _strUser;
135 }
136
137 /**
138 * Sets the User Edited blog
139 *
140 * @param userEditedBlogVersion
141 * The User edited Blog
142 */
143 public void setUserEditedBlogVersion( String userEditedBlogVersion )
144 {
145 _strUserEditedBlogVersion = userEditedBlogVersion;
146 }
147
148 /**
149 * Returns the strUser
150 *
151 * @return The strUser
152 */
153 public String getUserEditedBlogVersion( )
154 {
155 return _strUserEditedBlogVersion;
156 }
157
158 /**
159 * Returns the isUnpulished
160 *
161 * @return The isUnpulished
162 */
163 public int getIsUnpulished( )
164 {
165 return _nIsUnpublished;
166 }
167
168 /**
169 * isUnpulished
170 */
171 public void setIsUnpulished( int isUnpulished )
172 {
173 _nIsUnpublished = isUnpulished;
174 }
175
176 /**
177 * Returns the UpdateDateAfter
178 *
179 * @return The UpdateDateAfter
180 */
181 public Date getUpdateDateAfter( )
182 {
183 return _dateUpdateDateAfter;
184 }
185
186 /**
187 * Sets the UpdateDateAfter
188 *
189 * @param dateUpdateDateAfter
190 * The UpdateDateAfter
191 */
192 public void setUpdateDateAfter( Date dateUpdateDateAfter )
193 {
194 _dateUpdateDateAfter = dateUpdateDateAfter;
195 }
196
197 /**
198 * Returns the UpdateDateBefor
199 *
200 * @return The UpdateDateBefor
201 */
202 public Date getUpdateDateBefor( )
203 {
204 return _dateUpdateDateBefor;
205 }
206
207 /**
208 * Sets the UpdateDateBefor
209 *
210 * @param dateUpdateDateBefor
211 * The UpdateDateBefor
212 */
213 public void setUpdateDateBefor( Date dateUpdateDateBefor )
214 {
215 _dateUpdateDateBefor = dateUpdateDateBefor;
216 }
217
218 /**
219 * Returns the isArchived
220 *
221 * @return The isArchived
222 */
223 public Boolean getIsArchived( )
224 {
225 return _bIsArchived;
226 }
227
228 /**
229 * Sets the isArchived
230 *
231 * @param isArchived
232 * The isArchived
233 */
234 public void setIsArchived( Boolean isArchived )
235 {
236 _bIsArchived = isArchived;
237 }
238 }