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 boolean _bIsUnpulished; 48 private Date _dateUpdateDateAfter; 49 private Date _dateUpdateDateBefor; 50 private String _strUserEditedBlogVersion; 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 tag of the filter 96 * 97 * @return The tag of the filter 98 */ 99 public String [ ] getTag( ) 100 { 101 return _strTag; 102 } 103 104 /** 105 * Set the strTag of the filter 106 * 107 * @param strTag 108 * The tag of the filter 109 */ 110 public void setTag( String [ ] strTag ) 111 { 112 this._strTag = strTag; 113 } 114 115 /** 116 * Sets the User 117 * 118 * @param strUser 119 * The User 120 */ 121 public void setUser( String strUser ) 122 { 123 _strUser = strUser; 124 } 125 126 /** 127 * Returns the strUser 128 * 129 * @return The strUser 130 */ 131 public String getUser( ) 132 { 133 return _strUser; 134 } 135 136 /** 137 * Sets the User Edited blog 138 * 139 * @param strUser 140 * The User edited Blog 141 */ 142 public void setUserEditedBlogVersion( String userEditedBlogVersion ) 143 { 144 _strUserEditedBlogVersion = userEditedBlogVersion; 145 } 146 147 /** 148 * Returns the strUser 149 * 150 * @return The strUser 151 */ 152 public String getUserEditedBlogVersion( ) 153 { 154 return _strUserEditedBlogVersion; 155 } 156 157 /** 158 * Returns the isUnpulished 159 * 160 * @return The isUnpulished 161 */ 162 public boolean getIsUnpulished( ) 163 { 164 return _bIsUnpulished; 165 } 166 167 /** 168 * isUnpulished 169 */ 170 public void setIsUnpulished( boolean isUnpulished ) 171 { 172 _bIsUnpulished = isUnpulished; 173 } 174 175 /** 176 * Returns the UpdateDateAfter 177 * 178 * @return The UpdateDateAfter 179 */ 180 public Date getUpdateDateAfter( ) 181 { 182 return _dateUpdateDateAfter; 183 } 184 185 /** 186 * Sets the UpdateDateAfter 187 * 188 * @param dateUpdateDateAfter 189 * The UpdateDateAfter 190 */ 191 public void setUpdateDateAfter( Date dateUpdateDateAfter ) 192 { 193 _dateUpdateDateAfter = dateUpdateDateAfter; 194 } 195 196 /** 197 * Returns the UpdateDateBefor 198 * 199 * @return The UpdateDateBefor 200 */ 201 public Date getUpdateDateBefor( ) 202 { 203 return _dateUpdateDateBefor; 204 } 205 206 /** 207 * Sets the UpdateDateBefor 208 * 209 * @param dateUpdateDateBefor 210 * The UpdateDateBefor 211 */ 212 public void setUpdateDateBefor( Date dateUpdateDateBefor ) 213 { 214 _dateUpdateDateBefor = dateUpdateDateBefor; 215 } 216 217 }