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.extend.modules.comment.business; 35 36 /** 37 * 38 * CommentFilter 39 * 40 */ 41 public class CommentFilter 42 { 43 44 private Integer _nCommentState; 45 private String _strSortedAttributeName; 46 private Boolean _bAscSort; 47 private Boolean _bPinned; 48 private Boolean _bImportant; 49 private String _strLuteceUserName; 50 private String _strExtendableResourceType; 51 52 /** 53 * * 54 * 55 * @return the comment state set if the results must contain only the comments which are in the state specify in parameters 56 */ 57 public Integer getCommentState( ) 58 { 59 return _nCommentState; 60 } 61 62 /** 63 * 64 * @param nCommentState 65 * set if the results must contain only the comments which are in the state specify in parameters 66 */ 67 public void setCommentState( Integer nCommentState ) 68 { 69 this._nCommentState = nCommentState; 70 } 71 72 /** 73 * 74 * @return the sorted attribute name 75 */ 76 public String getSortedAttributeName( ) 77 { 78 return _strSortedAttributeName; 79 } 80 81 /** 82 * 83 * @param _strSortedAttributeName 84 * the sorted attribute name 85 */ 86 public void setSortedAttributeName( String _strSortedAttributeName ) 87 { 88 this._strSortedAttributeName = _strSortedAttributeName; 89 } 90 91 /** 92 * 93 * @return true if the result must be sorted by asc sort 94 */ 95 public Boolean getAscSort( ) 96 { 97 return _bAscSort; 98 } 99 100 /** 101 * 102 * @param _bAscSort 103 * true if the result must be sorted by asc sort 104 */ 105 public void setAscSort( Boolean _bAscSort ) 106 { 107 this._bAscSort = _bAscSort; 108 } 109 110 /** 111 * 112 * @return return true if the results must contain only the comments pinned false if the results must contain only the comments not pinned 113 * 114 */ 115 public Boolean getPinned( ) 116 { 117 return _bPinned; 118 } 119 120 /** 121 * 122 * @param _bPinned 123 * true if the results must contain only the comments pinned false if the results must contain only the comments not pinned 124 */ 125 public void setPinned( Boolean _bPinned ) 126 { 127 this._bPinned = _bPinned; 128 } 129 130 /** 131 * 132 * @return true if the results must contain only the comments Important false if the results must contain only the comments not Important 133 */ 134 public Boolean getImportant( ) 135 { 136 return _bImportant; 137 } 138 139 /** 140 * 141 * @param _bImportant 142 * true if the results must contain only the comments Important false if the results must contain only the comments not Important 143 */ 144 public void setImportant( Boolean _bImportant ) 145 { 146 this._bImportant = _bImportant; 147 } 148 149 /** 150 * 151 * @return the lutece user name 152 */ 153 public String getLuteceUserName( ) 154 { 155 return _strLuteceUserName; 156 } 157 158 /** 159 * set the lutece user name 160 * 161 * @param _strLuteceUserName 162 * the lutece user name 163 */ 164 public void setLuteceUserName( String _strLuteceUserName ) 165 { 166 this._strLuteceUserName = _strLuteceUserName; 167 } 168 169 /** 170 * @return the extendableResourceType 171 */ 172 public String getExtendableResourceType( ) 173 { 174 return _strExtendableResourceType; 175 } 176 177 /** 178 * @param strExtendableResourceType 179 * the extendableResourceType to set 180 */ 181 public void setExtendableResourceType( String strExtendableResourceType ) 182 { 183 _strExtendableResourceType = strExtendableResourceType; 184 } 185 186 }