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.SearchCondition;
8 import org.kuali.ole.docstore.common.search.SearchParams;
9 import org.kuali.ole.docstore.common.search.SearchResponse;
10 import org.kuali.ole.docstore.model.bo.WorkItemDocument;
11 import org.kuali.rice.krad.web.form.UifFormBase;
12
13 import java.util.ArrayList;
14 import java.util.List;
15
16 import org.kuali.ole.docstore.common.document.Item;
17
18
19
20
21
22
23
24
25 public class WorkbenchForm extends UifFormBase {
26
27 private SearchParams searchParams;
28 private SearchResponse searchResponse;
29 private List<OleWorkBibDocument> workBibDocumentList;
30 private List<SearchResultDisplayRow> searchResultDisplayRowList;
31 private List<OleWorkHoldingsDocument> workHoldingsDocumentList;
32 private List<OleWorkEHoldingsDocument> workEHoldingsDocumentList;
33 private List<SearchResultDisplayRow> bibSearchResultDisplayRowList;
34 private List<SearchResultDisplayRow> holdingSearchResultDisplayRowList;
35
36 private List<Bib> bibList;
37 private List<Holdings> holdingsList;
38 private List<Item> itemList;
39
40
41 private List<OleWorkItemDocument> workItemDocumentList;
42
43 private boolean showExport;
44 private boolean showRequestXML;
45 private String requestXMLTextArea;
46 private String tokenId;
47 private String message;
48 private String successMessage;
49 private boolean linkToERSFlag;
50 private String linkExistingInstance;
51 private String holdings;
52 private String errorMessage;
53 private int pageSize = 10;
54 private int start;
55 public boolean nextFlag;
56 public boolean previousFlag;
57 public String pageShowEntries;
58 private String sortOrder;
59 private String sortField;
60 private String sortFlag;
61 private String holdingsFlag="false";
62 private String eHoldingsFlag="false";
63 private String docType;
64
65 public String getHoldingsFlag() {
66 return holdingsFlag;
67 }
68
69 public void setHoldingsFlag(String holdingsFlag) {
70 this.holdingsFlag = holdingsFlag;
71 }
72
73 public String geteHoldingsFlag() {
74 return eHoldingsFlag;
75 }
76
77 public void seteHoldingsFlag(String eHoldingsFlag) {
78 this.eHoldingsFlag = eHoldingsFlag;
79 }
80
81 public List<SearchResultDisplayRow> getSearchResultDisplayRowList() {
82 return searchResultDisplayRowList;
83 }
84
85 public void setSearchResultDisplayRowList(List<SearchResultDisplayRow> searchResultDisplayRowList) {
86 this.searchResultDisplayRowList = searchResultDisplayRowList;
87 }
88
89 public String getDocType() {
90 return docType;
91 }
92
93 public void setDocType(String docType) {
94 this.docType = docType;
95 }
96
97 public List<OleWorkItemDocument> getWorkItemDocumentList() {
98 return workItemDocumentList;
99 }
100
101 public void setWorkItemDocumentList(List<OleWorkItemDocument> workItemDocumentList) {
102 this.workItemDocumentList = workItemDocumentList;
103 }
104
105 public WorkbenchForm() {
106 List<SearchCondition> searchConditions = getSearchParams().getSearchConditions();
107 if (null == searchConditions) {
108 searchConditions = new ArrayList<SearchCondition>();
109 }
110 searchConditions.add(new SearchCondition());
111 searchConditions.add(new SearchCondition());
112 }
113
114 public SearchParams getSearchParams() {
115 if (null == searchParams) {
116 searchParams = new SearchParams();
117 }
118 return searchParams;
119 }
120
121 public SearchResponse getSearchResponse() {
122 return searchResponse;
123 }
124
125 public void setSearchResponse(SearchResponse searchResponse) {
126 this.searchResponse = searchResponse;
127 }
128
129 public List<Bib> getBibList() {
130 return bibList;
131 }
132
133 public void setBibList(List<Bib> bibList) {
134 this.bibList = bibList;
135 }
136
137 public List<Holdings> getHoldingsList() {
138 return holdingsList;
139 }
140
141 public void setHoldingsList(List<Holdings> holdingsList) {
142 this.holdingsList = holdingsList;
143 }
144
145 public List<Item> getItemList() {
146 return itemList;
147 }
148
149 public void setItemList(List<Item> itemList) {
150 this.itemList = itemList;
151 }
152
153 public boolean isNextFlag() {
154 return nextFlag;
155 }
156
157 public void setNextFlag(boolean nextFlag) {
158 this.nextFlag = nextFlag;
159 }
160
161 public boolean isPreviousFlag() {
162 return previousFlag;
163 }
164
165 public void setPreviousFlag(boolean previousFlag) {
166 this.previousFlag = previousFlag;
167 }
168
169 public String getPageShowEntries() {
170 return pageShowEntries;
171 }
172
173 public void setPageShowEntries(String pageShowEntries) {
174 this.pageShowEntries = pageShowEntries;
175 }
176
177 public int getPageSize() {
178 return pageSize;
179 }
180
181 public void setPageSize(int pageSize) {
182 this.pageSize = pageSize;
183 }
184
185 public int getStart() {
186 return start;
187 }
188
189 public void setStart(int start) {
190 this.start = start;
191 }
192
193
194
195
196
197
198
199
200
201 public String getTokenId() {
202 return tokenId;
203 }
204
205 public void setTokenId(String tokenId) {
206 this.tokenId = tokenId;
207 }
208
209 public String getMessage() {
210 return message;
211 }
212
213 public String getLinkExistingInstance() {
214 return linkExistingInstance;
215 }
216
217
218 public String getErrorMessage() {
219 return errorMessage;
220 }
221
222 public void setErrorMessage(String errorMessage) {
223 this.errorMessage = errorMessage;
224 }
225
226 public String getHoldings() {
227 return holdings;
228 }
229
230 public void setHoldings(String holdings) {
231 this.holdings = holdings;
232 }
233
234 public void setLinkExistingInstance(String linkExistingInstance) {
235 this.linkExistingInstance = linkExistingInstance;
236 }
237
238 public void setMessage(String message) {
239 this.message = message;
240 }
241
242 public String getSuccessMessage() {
243 return successMessage;
244 }
245
246 public void setSuccessMessage(String successMessage) {
247 this.successMessage = successMessage;
248 }
249
250 public void setSearchParams(SearchParams searchParams) {
251 this.searchParams = searchParams;
252 }
253
254 public List<OleWorkBibDocument> getWorkBibDocumentList() {
255 return workBibDocumentList;
256 }
257
258 public void setWorkBibDocumentList(List<OleWorkBibDocument> workBibDocumentList) {
259 this.workBibDocumentList = workBibDocumentList;
260 }
261
262 public String getSortOrder() {
263 return sortOrder;
264 }
265
266 public void setSortOrder(String sortOrder) {
267 this.sortOrder = sortOrder;
268 }
269
270 public String getSortField() {
271 return sortField;
272 }
273
274 public void setSortField(String sortField) {
275 this.sortField = sortField;
276 }
277
278 public String getSortFlag() {
279 return sortFlag;
280 }
281
282 public void setSortFlag(String sortFlag) {
283 this.sortFlag = sortFlag;
284 }
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303 public List<OleWorkEHoldingsDocument> getWorkEHoldingsDocumentList() {
304 return workEHoldingsDocumentList;
305 }
306
307 public void setWorkEHoldingsDocumentList(List<OleWorkEHoldingsDocument> workEHoldingsDocumentList) {
308 this.workEHoldingsDocumentList = workEHoldingsDocumentList;
309 }
310
311 public List<SearchResultDisplayRow> getBibSearchResultDisplayRowList() {
312 return bibSearchResultDisplayRowList;
313 }
314
315 public void setBibSearchResultDisplayRowList(List<SearchResultDisplayRow> bibSearchResultDisplayRowList) {
316 this.bibSearchResultDisplayRowList = bibSearchResultDisplayRowList;
317 }
318
319 public List<SearchResultDisplayRow> getHoldingSearchResultDisplayRowList() {
320 return holdingSearchResultDisplayRowList;
321 }
322
323 public void setHoldingSearchResultDisplayRowList(List<SearchResultDisplayRow> holdingSearchResultDisplayRowList) {
324 this.holdingSearchResultDisplayRowList = holdingSearchResultDisplayRowList;
325 }
326
327 public List<OleWorkHoldingsDocument> getWorkHoldingsDocumentList() {
328 return workHoldingsDocumentList;
329 }
330
331 public void setWorkHoldingsDocumentList(List<OleWorkHoldingsDocument> workHoldingsDocumentList) {
332 this.workHoldingsDocumentList = workHoldingsDocumentList;
333 }
334
335 public boolean isShowExport() {
336 return showExport;
337 }
338
339 public void setShowExport(boolean showExport) {
340 this.showExport = showExport;
341 }
342
343 public boolean isShowRequestXML() {
344 return showRequestXML;
345 }
346
347 public void setShowRequestXML(boolean showRequestXML) {
348 this.showRequestXML = showRequestXML;
349 }
350
351 public String getRequestXMLTextArea() {
352 return requestXMLTextArea;
353 }
354
355 public void setRequestXMLTextArea(String requestXMLTextArea) {
356 this.requestXMLTextArea = requestXMLTextArea;
357 }
358
359 public boolean isLinkToERSFlag() {
360 return linkToERSFlag;
361 }
362
363 public void setLinkToERSFlag(boolean linkToERSFlag) {
364 this.linkToERSFlag = linkToERSFlag;
365 }
366 }