View Javadoc
1   /*
2    * Copyright (c) 2002-2020, 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  package fr.paris.lutece.plugins.suggest.web.action;
35  
36  import fr.paris.lutece.plugins.suggest.utils.SuggestUtils;
37  
38  import java.io.Serializable;
39  import java.util.List;
40  
41  /**
42   * Visualization of all needed session values. Many features depends on search result or paginator. Those fields may be required for actions.
43   *
44   */
45  public final class SuggestAdminSearchFields implements Serializable
46  {
47      /**
48       *
49       */
50      private static final long serialVersionUID = 1L;
51      private int _nIdSuggest;
52      private int _nIdSuggestSumitState = SuggestUtils.CONSTANT_ID_NULL;
53      private int _nIdSuggestSubmitSort = SuggestUtils.CONSTANT_ID_NULL;
54      private int _nIdSuggestSubmitReport = SuggestUtils.CONSTANT_ID_NULL;
55      private int _nIdCategory = SuggestUtils.CONSTANT_ID_NULL;
56      private int _nIdType = SuggestUtils.CONSTANT_ID_NULL;
57      private int _nIdSuggestSubmitContainsCommentDisable = SuggestUtils.CONSTANT_ID_NULL;
58      private String _strQuery;
59      private List<String> _selectedSuggestSubmit;
60  
61      public int getIdSuggestSubmitSort( )
62      {
63          return _nIdSuggestSubmitSort;
64      }
65  
66      public void setIdSuggestSubmitSort( int nIdSuggestSubmitSort )
67      {
68          this._nIdSuggestSubmitSort = nIdSuggestSubmitSort;
69      }
70  
71      public int getIdSuggestSubmitReport( )
72      {
73          return _nIdSuggestSubmitReport;
74      }
75  
76      public void setIdSuggestSubmitReport( int nIdSuggestSubmitReport )
77      {
78          this._nIdSuggestSubmitReport = nIdSuggestSubmitReport;
79      }
80  
81      public int getIdSuggestSumitState( )
82      {
83          return _nIdSuggestSumitState;
84      }
85  
86      public void setIdSuggestSumitState( int nIdSuggestSumitState )
87      {
88          this._nIdSuggestSumitState = nIdSuggestSumitState;
89      }
90  
91      public String getQuery( )
92      {
93          return _strQuery;
94      }
95  
96      public void setQuery( String strQuery )
97      {
98          this._strQuery = strQuery;
99      }
100 
101     public List<String> getSelectedSuggestSubmit( )
102     {
103         return _selectedSuggestSubmit;
104     }
105 
106     public void setSelectedSuggestSubmit( List<String> selectedSuggestSubmit )
107     {
108         this._selectedSuggestSubmit = selectedSuggestSubmit;
109     }
110 
111     public int getIdSuggest( )
112     {
113         return _nIdSuggest;
114     }
115 
116     public void setIdSuggest( int nIdSuggest )
117     {
118         this._nIdSuggest = nIdSuggest;
119     }
120 
121     public int getIdCategory( )
122     {
123         return _nIdCategory;
124     }
125 
126     public void setIdCategory( int nIdCategory )
127     {
128         this._nIdCategory = nIdCategory;
129     }
130 
131     public int getIdType( )
132     {
133         return _nIdType;
134     }
135 
136     public void setIdType( int nIdType )
137     {
138         this._nIdType = nIdType;
139     }
140 
141     public int getIdSuggestSubmitContainsCommentDisable( )
142     {
143         return _nIdSuggestSubmitContainsCommentDisable;
144     }
145 
146     public void setIdSuggestSubmitContainsCommentDisable( int nIdSuggestSubmitContainsCommentDisable )
147     {
148         this._nIdSuggestSubmitContainsCommentDisable = nIdSuggestSubmitContainsCommentDisable;
149     }
150 }