1 package org.kuali.ole.describe.form;
2
3 import org.kuali.ole.describe.bo.*;
4 import org.kuali.ole.docstore.common.document.Bib;
5 import org.kuali.ole.docstore.common.document.Holdings;
6 import org.kuali.ole.docstore.common.document.Item;
7 import org.kuali.ole.docstore.common.search.FacetResultField;
8 import org.kuali.ole.docstore.common.search.SearchCondition;
9 import org.kuali.ole.docstore.common.search.SearchParams;
10 import org.kuali.ole.docstore.common.search.SearchResponse;
11 import org.kuali.rice.krad.web.form.UifFormBase;
12 import org.springframework.web.multipart.MultipartFile;
13
14 import java.util.ArrayList;
15 import java.util.HashMap;
16 import java.util.List;
17 import java.util.Map;
18
19
20
21
22
23
24
25
26 public class GlobalEditForm extends OLESearchForm {
27
28 private SearchResultDisplayFields searchResultDisplayFields;
29 private List<SearchResultDisplayRow> searchResultDisplayRowList;
30 private List<SearchResultDisplayRow> globalEditRecords;
31 private Map<String, SearchResultDisplayRow> globalEditMap;
32 private List<FacetResultField> facetResultFields;
33
34 private boolean viewGlobalEditFlag;
35 private String docType;
36 private String searchType;
37 private String fieldType;
38 private MultipartFile file;
39 private boolean searchFlag = true;
40 private int start;
41 private boolean showExport;
42 private boolean showRequestXML;
43 private String requestXMLTextArea;
44 private String tokenId;
45 private String message;
46 private String successMessage;
47 private boolean linkToERSFlag;
48 private String linkExistingInstance;
49 private String errorMessage;
50 private String globalEditDefaultMessage;
51 private String selectedFileName;
52 private int matchedCount;
53 private String unMatchedRecords;
54 private int unMatchedCount;
55 private int totalRecords;
56 private boolean viewGlobalEditDispMessageFlag;
57 private boolean selectAll;
58
59 public boolean isViewGlobalEditDispMessageFlag() {
60 return viewGlobalEditDispMessageFlag;
61 }
62
63 public void setViewGlobalEditDispMessageFlag(boolean viewGlobalEditDispMessageFlag) {
64 this.viewGlobalEditDispMessageFlag = viewGlobalEditDispMessageFlag;
65 }
66
67 public String getSelectedFileName() {
68 return selectedFileName;
69 }
70
71 public void setSelectedFileName(String selectedFileName) {
72 this.selectedFileName = selectedFileName;
73 }
74
75 public int getMatchedCount() {
76 return matchedCount;
77 }
78
79 public void setMatchedCount(int matchedCount) {
80 this.matchedCount = matchedCount;
81 }
82
83 public String getUnMatchedRecords() {
84 return unMatchedRecords;
85 }
86
87 public void setUnMatchedRecords(String unMatchedRecords) {
88 this.unMatchedRecords = unMatchedRecords;
89 }
90
91 public int getUnMatchedCount() {
92 return unMatchedCount;
93 }
94
95 public void setUnMatchedCount(int unMatchedCount) {
96 this.unMatchedCount = unMatchedCount;
97 }
98
99 public int getTotalRecords() {
100 return totalRecords;
101 }
102
103 public void setTotalRecords(int totalRecords) {
104 this.totalRecords = totalRecords;
105 }
106
107 public String getGlobalEditDefaultMessage() {
108 return globalEditDefaultMessage;
109 }
110
111 public void setGlobalEditDefaultMessage(String globalEditDefaultMessage) {
112 this.globalEditDefaultMessage = globalEditDefaultMessage;
113 }
114
115 public GlobalEditForm() {
116 super();
117 }
118
119 public List<SearchResultDisplayRow> getSearchResultDisplayRowList() {
120 return searchResultDisplayRowList;
121 }
122
123 public void setSearchResultDisplayRowList(List<SearchResultDisplayRow> searchResultDisplayRowList) {
124 this.searchResultDisplayRowList = searchResultDisplayRowList;
125 }
126
127 public List<SearchResultDisplayRow> getGlobalEditRecords() {
128 if (globalEditRecords == null) {
129 globalEditRecords = new ArrayList<SearchResultDisplayRow>();
130 }
131 return globalEditRecords;
132 }
133
134 public void setGlobalEditRecords(List<SearchResultDisplayRow> globalEditRecords) {
135 this.globalEditRecords = globalEditRecords;
136 }
137
138 public boolean isViewGlobalEditFlag() {
139 return viewGlobalEditFlag;
140 }
141
142 public void setViewGlobalEditFlag(boolean viewGlobalEditFlag) {
143 this.viewGlobalEditFlag = viewGlobalEditFlag;
144 }
145
146 public String getDocType() {
147 return docType;
148 }
149
150 public void setDocType(String docType) {
151 if (docType != null && docType.contains(","))
152 this.docType = docType.substring(0, docType.indexOf(","));
153 else
154 this.docType = docType;
155
156 }
157
158 public int getStart() {
159 return start;
160 }
161
162 public void setStart(int start) {
163 this.start = start;
164 }
165
166 public String getTokenId() {
167 return tokenId;
168 }
169
170 public void setTokenId(String tokenId) {
171 this.tokenId = tokenId;
172 }
173
174 public String getMessage() {
175 return message;
176 }
177
178 public String getLinkExistingInstance() {
179 return linkExistingInstance;
180 }
181
182
183 public String getErrorMessage() {
184 return errorMessage;
185 }
186
187 public void setErrorMessage(String errorMessage) {
188 this.errorMessage = errorMessage;
189 }
190
191 public void setLinkExistingInstance(String linkExistingInstance) {
192 this.linkExistingInstance = linkExistingInstance;
193 }
194
195 public void setMessage(String message) {
196 this.message = message;
197 }
198
199 public String getSuccessMessage() {
200 return successMessage;
201 }
202
203 public void setSuccessMessage(String successMessage) {
204 this.successMessage = successMessage;
205 }
206
207 public boolean isShowExport() {
208 return showExport;
209 }
210
211 public void setShowExport(boolean showExport) {
212 this.showExport = showExport;
213 }
214
215 public boolean isShowRequestXML() {
216 return showRequestXML;
217 }
218
219 public void setShowRequestXML(boolean showRequestXML) {
220 this.showRequestXML = showRequestXML;
221 }
222
223 public String getRequestXMLTextArea() {
224 return requestXMLTextArea;
225 }
226
227 public void setRequestXMLTextArea(String requestXMLTextArea) {
228 this.requestXMLTextArea = requestXMLTextArea;
229 }
230
231 public boolean isLinkToERSFlag() {
232 return linkToERSFlag;
233 }
234
235 public void setLinkToERSFlag(boolean linkToERSFlag) {
236 this.linkToERSFlag = linkToERSFlag;
237 }
238
239 public String getSearchType() {
240 return searchType;
241 }
242
243 public void setSearchType(String searchType) {
244 this.searchType = searchType;
245 }
246
247 public String getFieldType() {
248 return fieldType;
249 }
250
251 public void setFieldType(String fieldType) {
252 this.fieldType = fieldType;
253 }
254
255 public MultipartFile getFile() {
256 return file;
257 }
258
259 public void setFile(MultipartFile file) {
260 this.file = file;
261 }
262
263
264 public boolean isSearchFlag() {
265 return searchFlag;
266 }
267
268 public void setSearchFlag(boolean searchFlag) {
269 this.searchFlag = searchFlag;
270 }
271
272 public Map<String, SearchResultDisplayRow> getGlobalEditMap() {
273 if (globalEditMap == null) {
274 globalEditMap = new HashMap<String, SearchResultDisplayRow>();
275 }
276 return globalEditMap;
277 }
278
279 public void setGlobalEditMap(Map<String, SearchResultDisplayRow> globalEditMap) {
280 this.globalEditMap = globalEditMap;
281 }
282
283 public List<FacetResultField> getFacetResultFields() {
284 return facetResultFields;
285 }
286
287 public void setFacetResultFields(List<FacetResultField> facetResultFields) {
288 this.facetResultFields = facetResultFields;
289 }
290
291 public SearchResultDisplayFields getSearchResultDisplayFields() {
292 return searchResultDisplayFields;
293 }
294
295 public void setSearchResultDisplayFields(SearchResultDisplayFields searchResultDisplayFields) {
296 this.searchResultDisplayFields = searchResultDisplayFields;
297 }
298
299
300 private String browseField;
301 private String browseText;
302 private String location;
303 private String classificationScheme;
304 private String callNumberBrowseText;
305 private List<Holdings> holdingsList;
306 private List<Item> itemList;
307
308 public List<Holdings> getHoldingsList() {
309 return holdingsList;
310 }
311
312 public void setHoldingsList(List<Holdings> holdingsList) {
313 this.holdingsList = holdingsList;
314 }
315
316 public List<Item> getItemList() {
317 return itemList;
318 }
319
320 public String getBrowseField() {
321 return browseField;
322 }
323
324 public void setBrowseField(String browseField) {
325 this.browseField = browseField;
326 }
327
328 public String getBrowseText() {
329 return browseText;
330 }
331
332 public void setBrowseText(String browseText) {
333 this.browseText = browseText;
334 }
335
336 public String getLocation() {
337 return location;
338 }
339
340 public void setLocation(String location) {
341 this.location = location;
342 }
343
344 public String getClassificationScheme() {
345 return classificationScheme;
346 }
347
348 public void setClassificationScheme(String classificationScheme) {
349 this.classificationScheme = classificationScheme;
350 }
351
352 public String getCallNumberBrowseText() {
353 return callNumberBrowseText;
354 }
355
356 public void setCallNumberBrowseText(String callNumberBrowseText) {
357 this.callNumberBrowseText = callNumberBrowseText;
358 }
359
360 public boolean isSelectAll() {
361 return selectAll;
362 }
363
364 public void setSelectAll(boolean selectAll) {
365 this.selectAll = selectAll;
366 }
367 }