View Javadoc
1   /*
2    * Copyright 2012-2017 CodeLibs Project and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.codelibs.fess.entity;
17  
18  import java.util.List;
19  import java.util.Map;
20  
21  import org.codelibs.fess.util.FacetResponse;
22  
23  public class SearchRenderData {
24  
25      protected List<Map<String, Object>> documentItems;
26  
27      protected FacetResponse facetResponse;
28  
29      protected String appendHighlightParams;
30  
31      protected String execTime;
32  
33      protected int pageSize;
34  
35      protected int currentPageNumber;
36  
37      protected long allRecordCount;
38  
39      protected int allPageCount;
40  
41      protected boolean existNextPage;
42  
43      protected boolean existPrevPage;
44  
45      protected long currentStartRecordNumber;
46  
47      protected long currentEndRecordNumber;
48  
49      protected List<String> pageNumberList;
50  
51      protected boolean partialResults;
52  
53      protected String searchQuery;
54  
55      protected long queryTime;
56  
57      protected long requestedTime;
58  
59      protected String queryId;
60  
61      public void setDocumentItems(final List<Map<String, Object>> documentItems) {
62          this.documentItems = documentItems;
63      }
64  
65      public void setFacetResponse(final FacetResponse facetResponse) {
66          this.facetResponse = facetResponse;
67      }
68  
69      public void setAppendHighlightParams(final String appendHighlightParams) {
70          this.appendHighlightParams = appendHighlightParams;
71      }
72  
73      public void setExecTime(final String execTime) {
74          this.execTime = execTime;
75      }
76  
77      public void setPageSize(final int pageSize) {
78          this.pageSize = pageSize;
79      }
80  
81      public void setCurrentPageNumber(final int currentPageNumber) {
82          this.currentPageNumber = currentPageNumber;
83      }
84  
85      public void setAllRecordCount(final long allRecordCount) {
86          this.allRecordCount = allRecordCount;
87      }
88  
89      public void setAllPageCount(final int allPageCount) {
90          this.allPageCount = allPageCount;
91      }
92  
93      public void setExistNextPage(final boolean existNextPage) {
94          this.existNextPage = existNextPage;
95      }
96  
97      public void setExistPrevPage(final boolean existPrevPage) {
98          this.existPrevPage = existPrevPage;
99      }
100 
101     public void setCurrentStartRecordNumber(final long currentStartRecordNumber) {
102         this.currentStartRecordNumber = currentStartRecordNumber;
103     }
104 
105     public void setCurrentEndRecordNumber(final long currentEndRecordNumber) {
106         this.currentEndRecordNumber = currentEndRecordNumber;
107     }
108 
109     public void setPageNumberList(final List<String> pageNumberList) {
110         this.pageNumberList = pageNumberList;
111     }
112 
113     public void setPartialResults(final boolean partialResults) {
114         this.partialResults = partialResults;
115     }
116 
117     public void setQueryTime(final long queryTime) {
118         this.queryTime = queryTime;
119     }
120 
121     public void setSearchQuery(final String searchQuery) {
122         this.searchQuery = searchQuery;
123     }
124 
125     public void setRequestedTime(final long requestedTime) {
126         this.requestedTime = requestedTime;
127     }
128 
129     public void setQueryId(final String queryId) {
130         this.queryId = queryId;
131     }
132 
133     public List<Map<String, Object>> getDocumentItems() {
134         return documentItems;
135     }
136 
137     public FacetResponse getFacetResponse() {
138         return facetResponse;
139     }
140 
141     public String getAppendHighlightParams() {
142         return appendHighlightParams;
143     }
144 
145     public String getExecTime() {
146         return execTime;
147     }
148 
149     public int getPageSize() {
150         return pageSize;
151     }
152 
153     public int getCurrentPageNumber() {
154         return currentPageNumber;
155     }
156 
157     public long getAllRecordCount() {
158         return allRecordCount;
159     }
160 
161     public int getAllPageCount() {
162         return allPageCount;
163     }
164 
165     public boolean isExistNextPage() {
166         return existNextPage;
167     }
168 
169     public boolean isExistPrevPage() {
170         return existPrevPage;
171     }
172 
173     public long getCurrentStartRecordNumber() {
174         return currentStartRecordNumber;
175     }
176 
177     public long getCurrentEndRecordNumber() {
178         return currentEndRecordNumber;
179     }
180 
181     public List<String> getPageNumberList() {
182         return pageNumberList;
183     }
184 
185     public boolean isPartialResults() {
186         return partialResults;
187     }
188 
189     public String getSearchQuery() {
190         return searchQuery;
191     }
192 
193     public long getQueryTime() {
194         return queryTime;
195     }
196 
197     public long getRequestedTime() {
198         return requestedTime;
199     }
200 
201     public String getQueryId() {
202         return queryId;
203     }
204 
205 }