001package org.kuali.ole.describe.form; 002 003import org.kuali.ole.describe.bo.*; 004import org.kuali.ole.docstore.common.document.Bib; 005import org.kuali.ole.docstore.common.document.Holdings; 006import org.kuali.ole.docstore.common.document.Item; 007import org.kuali.ole.docstore.common.search.SearchCondition; 008import org.kuali.ole.docstore.common.search.SearchParams; 009import org.kuali.ole.docstore.common.search.SearchResponse; 010import org.kuali.ole.docstore.model.bo.WorkItemDocument; 011import org.kuali.rice.krad.web.form.UifFormBase; 012 013import java.util.ArrayList; 014import java.util.List; 015 016import org.kuali.ole.docstore.common.document.Item; 017 018/** 019 * Created with IntelliJ IDEA. 020 * User: PP7788 021 * Date: 11/21/12 022 * Time: 2:46 PM 023 * To change this template use File | Settings | File Templates. 024 */ 025public class WorkbenchForm extends UifFormBase { 026 027 private SearchParams searchParams; 028 private SearchResponse searchResponse; 029 private List<OleWorkBibDocument> workBibDocumentList; 030 private List<SearchResultDisplayRow> searchResultDisplayRowList; 031 private List<OleWorkHoldingsDocument> workHoldingsDocumentList; 032 private List<OleWorkEHoldingsDocument> workEHoldingsDocumentList; 033 private List<SearchResultDisplayRow> bibSearchResultDisplayRowList; 034 private List<SearchResultDisplayRow> holdingSearchResultDisplayRowList; 035 036 private List<Bib> bibList; 037 private List<Holdings> holdingsList; 038 private List<Item> itemList; 039 // private List<WorkHoldingsDocument> workHoldingsDocumentList; 040 //private List<WorkItemDocument> workItemDocumentList; 041 private List<OleWorkItemDocument> workItemDocumentList; 042 // private List<WorkEHoldingsDocument> workEHoldingsDocumentList; 043 private boolean showExport; 044 private boolean showRequestXML; 045 private String requestXMLTextArea; 046 private String tokenId; 047 private String message; 048 private String successMessage; 049 private boolean linkToERSFlag; 050 private String linkExistingInstance; 051 private String holdings; 052 private String errorMessage; 053 private int pageSize = 10; 054 private int start; 055 public boolean nextFlag; 056 public boolean previousFlag; 057 public String pageShowEntries; 058 private String sortOrder; 059 private String sortField; 060 private String sortFlag; 061 private String holdingsFlag="false"; 062 private String eHoldingsFlag="false"; 063 private String docType; 064 065 public String getHoldingsFlag() { 066 return holdingsFlag; 067 } 068 069 public void setHoldingsFlag(String holdingsFlag) { 070 this.holdingsFlag = holdingsFlag; 071 } 072 073 public String geteHoldingsFlag() { 074 return eHoldingsFlag; 075 } 076 077 public void seteHoldingsFlag(String eHoldingsFlag) { 078 this.eHoldingsFlag = eHoldingsFlag; 079 } 080 081 public List<SearchResultDisplayRow> getSearchResultDisplayRowList() { 082 return searchResultDisplayRowList; 083 } 084 085 public void setSearchResultDisplayRowList(List<SearchResultDisplayRow> searchResultDisplayRowList) { 086 this.searchResultDisplayRowList = searchResultDisplayRowList; 087 } 088 089 public String getDocType() { 090 return docType; 091 } 092 093 public void setDocType(String docType) { 094 this.docType = docType; 095 } 096 097 public List<OleWorkItemDocument> getWorkItemDocumentList() { 098 return workItemDocumentList; 099 } 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 /*public List<WorkItemDocument> getWorkItemDocumentList() { 194 return workItemDocumentList; 195 } 196 197 public void setWorkItemDocumentList(List<WorkItemDocument> workItemDocumentList) { 198 this.workItemDocumentList = workItemDocumentList; 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 /* public List<WorkHoldingsDocument> getWorkHoldingsDocumentList() { 287 return workHoldingsDocumentList; 288 } 289 290 public void setWorkHoldingsDocumentList(List<WorkHoldingsDocument> workHoldingsDocumentList) { 291 this.workHoldingsDocumentList = workHoldingsDocumentList; 292 } 293 294 295 296 297 298 public void setWorkEHoldingsDocumentList(List<WorkEHoldingsDocument> workEHoldingsDocumentList) { 299 this.workEHoldingsDocumentList = workEHoldingsDocumentList; 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}