001package org.kuali.ole.select.bo; 002 003import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue; 004import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 005 006import java.sql.Timestamp; 007import java.util.ArrayList; 008import java.util.List; 009 010/** 011 * OleLicenseRequestBo is the business object class for License Request Maintenance Document. 012 */ 013public class OleLicenseRequestBo extends PersistableBusinessObjectBase { 014 015 private String oleLicenseRequestId; 016 private String licenseRequestStatusCode; 017 private String assignee; 018 private String locationId; 019 private String licenseRequestTypeId; 020 private String eResourceDocNumber; 021 private String agreementId; 022 private String licenseRequestWorkflowTypeCode; 023 private String documentNumber; 024 025 private String agreementMethod; 026 private List<OleAgreementDocumentMetadata> agreementDocumentMetadataList = new ArrayList<OleAgreementDocumentMetadata>(); 027 private List<OleEventLogBo> eventLogs = new ArrayList<OleEventLogBo>(); 028 private List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles = new ArrayList<OleLicenseRequestItemTitle>(); 029 private OleLicenseRequestStatus oleLicenseRequestStatus; 030 private OleLicenseRequestLocation oleLicenseRequestLocation = new OleLicenseRequestLocation(); 031 private OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType = new OleLicenseRequestWorkflowType(); 032 033 private String eResourceName; 034 private String linkedAgreement; 035 private String agreementDate; 036 private String agreementUser; 037 private String agreementStatus; 038 private String agreementType; 039 private String agreementMd; 040 private OleLicenseRequestType oleLicenseRequestType = new OleLicenseRequestType(); 041 private Timestamp createdDateFrom; 042 private Timestamp createdDateTo; 043 private Timestamp createdDate; 044 045 private Timestamp lastModifiedDateFrom; 046 private Timestamp lastModifiedDateTo; 047 private boolean lastModifiedDateSearchType; 048 049 private String licenseDocumentNumber; 050 private DocumentRouteHeaderValue documentRouteHeaderValue = new DocumentRouteHeaderValue(); 051 052 private OleAgreementMethod oleAgreementMethod = new OleAgreementMethod(); 053 private String agreementMethodId; 054 055 056 public String getAgreementMethodId() { 057 return agreementMethodId; 058 } 059 060 public void setAgreementMethodId(String agreementMethodId) { 061 this.agreementMethodId = agreementMethodId; 062 } 063 064 public OleAgreementMethod getOleAgreementMethod() { 065 return oleAgreementMethod; 066 } 067 068 public void setOleAgreementMethod(OleAgreementMethod oleAgreementMethod) { 069 this.oleAgreementMethod = oleAgreementMethod; 070 } 071 072 public void setOleLicenseRequestType(OleLicenseRequestType oleLicenseRequestType) { 073 this.oleLicenseRequestType = oleLicenseRequestType; 074 } 075 076 public OleLicenseRequestType getOleLicenseRequestType() { 077 078 return oleLicenseRequestType; 079 } 080 081 private boolean present; 082 083 /** 084 * Initiate oleLicenseRequestStatus. 085 */ 086 public OleLicenseRequestBo() { 087 /*if(oleLicenseRequestStatus==null){ 088 oleLicenseRequestStatus = new OleLicenseRequestStatus(); 089 oleLicenseRequestStatus.setName("License Needed1"); 090 }*/ 091 } 092 093 public String geteResourceName() { 094 return eResourceName; 095 } 096 097 public void seteResourceName(String eResourceName) { 098 this.eResourceName = eResourceName; 099 } 100 101 /** 102 * Gets the oleLicenseRequestStatus attribute. 103 * 104 * @return Returns the oleLicenseRequestStatus 105 */ 106 public OleLicenseRequestStatus getOleLicenseRequestStatus() { 107 return oleLicenseRequestStatus; 108 } 109 110 /** 111 * Sets the oleLicenseRequestStatus attribute value. 112 * 113 * @param oleLicenseRequestStatus The oleLicenseRequestStatus to set. 114 */ 115 public void setOleLicenseRequestStatus(OleLicenseRequestStatus oleLicenseRequestStatus) { 116 this.oleLicenseRequestStatus = oleLicenseRequestStatus; 117 } 118 119 /** 120 * Gets the oleLicenseRequestId attribute. 121 * 122 * @return Returns the oleLicenseRequestId 123 */ 124 public String getOleLicenseRequestId() { 125 return oleLicenseRequestId; 126 } 127 128 /** 129 * Sets the oleLicenseRequestId attribute value. 130 * 131 * @param oleLicenseRequestId The oleLicenseRequestId to set. 132 */ 133 public void setOleLicenseRequestId(String oleLicenseRequestId) { 134 this.oleLicenseRequestId = oleLicenseRequestId; 135 } 136 137 /** 138 * Gets the licenseRequestStatusCode attribute. 139 * 140 * @return Returns the licenseRequestStatusCode 141 */ 142 public String getLicenseRequestStatusCode() { 143 return licenseRequestStatusCode; 144 } 145 146 /** 147 * Sets the licenseRequestStatusCode attribute value. 148 * 149 * @param licenseRequestStatusCode The licenseRequestStatusCode to set. 150 */ 151 public void setLicenseRequestStatusCode(String licenseRequestStatusCode) { 152 this.licenseRequestStatusCode = licenseRequestStatusCode; 153 } 154 155 /** 156 * Gets the assignee attribute. 157 * 158 * @return Returns the assignee 159 */ 160 public String getAssignee() { 161 return assignee; 162 } 163 164 /** 165 * Sets the assignee attribute value. 166 * 167 * @param assignee The assignee to set. 168 */ 169 public void setAssignee(String assignee) { 170 this.assignee = assignee; 171 } 172 173 /** 174 * Gets the locationId attribute. 175 * 176 * @return Returns the locationId 177 */ 178 public String getLocationId() { 179 return locationId; 180 } 181 182 /** 183 * Sets the locationId attribute value. 184 * 185 * @param locationId The locationId to set. 186 */ 187 public void setLocationId(String locationId) { 188 this.locationId = locationId; 189 } 190 191 /** 192 * Gets the licenseRequestTypeId attribute. 193 * 194 * @return Returns the licenseRequestTypeId 195 */ 196 public String getLicenseRequestTypeId() { 197 return licenseRequestTypeId; 198 } 199 200 /** 201 * Sets the licenseRequestTypeId attribute value. 202 * 203 * @param licenseRequestTypeId The licenseRequestTypeId to set. 204 */ 205 public void setLicenseRequestTypeId(String licenseRequestTypeId) { 206 this.licenseRequestTypeId = licenseRequestTypeId; 207 } 208 209 /** 210 * Gets the eventLogs attribute. 211 * 212 * @return Returns the eventLogs 213 */ 214 public List<OleEventLogBo> getEventLogs() { 215 return eventLogs; 216 } 217 218 /** 219 * Sets the eventLogs attribute value. 220 * 221 * @param eventLogs The eventLogs to set. 222 */ 223 public void setEventLogs(List<OleEventLogBo> eventLogs) { 224 this.eventLogs = eventLogs; 225 } 226 227 /** 228 * Gets the requisitionDocNumber attribute. 229 * 230 * @return Returns the requisitionDocNumber 231 */ 232 public String geteResourceDocNumber() { 233 return eResourceDocNumber; 234 } 235 236 237 /** 238 * Sets the requisitionDocNumber attribute value. 239 * 240 * @param eResourceDocNumber The requisitionDocNumber to set. 241 */ 242 public void seteResourceDocNumber(String eResourceDocNumber) { 243 this.eResourceDocNumber = eResourceDocNumber; 244 } 245 246 /** 247 * Gets the agreementId attribute. 248 * 249 * @return Returns the agreementId 250 */ 251 public String getAgreementId() { 252 return agreementId; 253 } 254 255 /** 256 * Sets the agreementId attribute value. 257 * 258 * @param agreementId The agreementId to set. 259 */ 260 public void setAgreementId(String agreementId) { 261 this.agreementId = agreementId; 262 } 263 264 /** 265 * Gets the licenseRequestWorkflowTypeCode attribute. 266 * 267 * @return Returns the licenseRequestWorkflowTypeCode 268 */ 269 public String getLicenseRequestWorkflowTypeCode() { 270 return licenseRequestWorkflowTypeCode; 271 } 272 273 /** 274 * Sets the licenseRequestWorkflowTypeCode attribute value. 275 * 276 * @param licenseRequestWorkflowTypeCode The licenseRequestWorkflowTypeCode to set. 277 */ 278 public void setLicenseRequestWorkflowTypeCode(String licenseRequestWorkflowTypeCode) { 279 this.licenseRequestWorkflowTypeCode = licenseRequestWorkflowTypeCode; 280 } 281 282 /** 283 * Gets the agreementMethod attribute. 284 * 285 * @return Returns the agreementMethod 286 */ 287 public String getAgreementMethod() { 288 return agreementMethod; 289 } 290 291 /** 292 * Sets the agreementMethod attribute value. 293 * 294 * @param agreementMethod The agreementMethod to set. 295 */ 296 public void setAgreementMethod(String agreementMethod) { 297 this.agreementMethod = agreementMethod; 298 } 299 300 /** 301 * Gets the agreementDocumentMetadataList attribute. 302 * 303 * @return Returns the agreementDocumentMetadataList 304 */ 305 public List<OleAgreementDocumentMetadata> getAgreementDocumentMetadataList() { 306 return agreementDocumentMetadataList; 307 } 308 309 /** 310 * Sets the agreementDocumentMetadataList attribute value. 311 * 312 * @param agreementDocumentMetadataList The agreementDocumentMetadataList to set. 313 */ 314 public void setAgreementDocumentMetadataList(List<OleAgreementDocumentMetadata> agreementDocumentMetadataList) { 315 this.agreementDocumentMetadataList = agreementDocumentMetadataList; 316 } 317 318 public String getDocumentNumber() { 319 return documentNumber; 320 } 321 322 public void setDocumentNumber(String documentNumber) { 323 this.documentNumber = documentNumber; 324 } 325 326 public OleLicenseRequestLocation getOleLicenseRequestLocation() { 327 return oleLicenseRequestLocation; 328 } 329 330 public void setOleLicenseRequestLocation(OleLicenseRequestLocation oleLicenseRequestLocation) { 331 this.oleLicenseRequestLocation = oleLicenseRequestLocation; 332 } 333 334 public OleLicenseRequestWorkflowType getOleLicenseRequestWorkflowType() { 335 return oleLicenseRequestWorkflowType; 336 } 337 338 public void setOleLicenseRequestWorkflowType(OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType) { 339 this.oleLicenseRequestWorkflowType = oleLicenseRequestWorkflowType; 340 } 341 342 public String getLinkedAgreement() { 343 return linkedAgreement; 344 } 345 346 public void setLinkedAgreement(String linkedAgreement) { 347 this.linkedAgreement = linkedAgreement; 348 } 349 350 public String getAgreementDate() { 351 return agreementDate; 352 } 353 354 public void setAgreementDate(String agreementDate) { 355 this.agreementDate = agreementDate; 356 } 357 358 public String getAgreementUser() { 359 return agreementUser; 360 } 361 362 public void setAgreementUser(String agreementUser) { 363 this.agreementUser = agreementUser; 364 } 365 366 public String getAgreementStatus() { 367 return agreementStatus; 368 } 369 370 public void setAgreementStatus(String agreementStatus) { 371 this.agreementStatus = agreementStatus; 372 } 373 374 public String getAgreementType() { 375 return agreementType; 376 } 377 378 public void setAgreementType(String agreementType) { 379 this.agreementType = agreementType; 380 } 381 382 public String getAgreementMd() { 383 return agreementMd; 384 } 385 386 public void setAgreementMd(String agreementMd) { 387 this.agreementMd = agreementMd; 388 } 389 390 public boolean isPresent() { 391 return (this.agreementDate != null || this.agreementUser != null || this.agreementStatus != null || 392 this.agreementType != null || this.agreementMd != null || licenseRequestStatusCode != null) ? true : false; 393 } 394 395 public List<OleLicenseRequestItemTitle> getOleLicenseRequestItemTitles() { 396 return oleLicenseRequestItemTitles; 397 } 398 399 public void setOleLicenseRequestItemTitles(List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles) { 400 this.oleLicenseRequestItemTitles = oleLicenseRequestItemTitles; 401 } 402 403 public Timestamp getCreatedDate() { 404 return createdDate; 405 } 406 407 public void setCreatedDate(Timestamp createdDate) { 408 this.createdDate = createdDate; 409 } 410 411 public Timestamp getCreatedDateFrom() { 412 return createdDateFrom; 413 } 414 415 public void setCreatedDateFrom(Timestamp createdDateFrom) { 416 this.createdDateFrom = createdDateFrom; 417 } 418 419 public Timestamp getCreatedDateTo() { 420 return createdDateTo; 421 } 422 423 public void setCreatedDateTo(Timestamp createdDateTo) { 424 this.createdDateTo = createdDateTo; 425 } 426 427 /** 428 * Gets the lastModifiedDateFrom attribute. 429 * 430 * @return Returns the lastModifiedDateFrom 431 */ 432 public Timestamp getLastModifiedDateFrom() { 433 return lastModifiedDateFrom; 434 } 435 436 /** 437 * Sets the lastModifiedDateFrom attribute value. 438 * 439 * @param lastModifiedDateFrom 440 */ 441 public void setLastModifiedDateFrom(Timestamp lastModifiedDateFrom) { 442 this.lastModifiedDateFrom = lastModifiedDateFrom; 443 } 444 445 /** 446 * Gets the lastModifiedDateTo attribute. 447 * 448 * @return Returns the lastModifiedDateTo 449 */ 450 public Timestamp getLastModifiedDateTo() { 451 return lastModifiedDateTo; 452 } 453 454 /** 455 * Sets the lastModifiedDateTo attribute value. 456 * 457 * @param lastModifiedDateTo 458 */ 459 public void setLastModifiedDateTo(Timestamp lastModifiedDateTo) { 460 this.lastModifiedDateTo = lastModifiedDateTo; 461 } 462 463 /** 464 * Gets the lastModifiedDateSearchType attribute. 465 * 466 * @return Returns the lastModifiedDateSearchType 467 */ 468 public boolean isLastModifiedDateSearchType() { 469 return lastModifiedDateSearchType; 470 } 471 472 /** 473 * Sets the lastModifiedDateSearchType attribute value. 474 * 475 * @param lastModifiedDateSearchType 476 */ 477 public void setLastModifiedDateSearchType(boolean lastModifiedDateSearchType) { 478 this.lastModifiedDateSearchType = lastModifiedDateSearchType; 479 } 480 481 482 public String getLicenseDocumentNumber() { 483 return licenseDocumentNumber; 484 } 485 486 public void setLicenseDocumentNumber(String licenseDocumentNumber) { 487 this.licenseDocumentNumber = licenseDocumentNumber; 488 } 489 490 public DocumentRouteHeaderValue getDocumentRouteHeaderValue() { 491 return documentRouteHeaderValue; 492 } 493 494 public void setDocumentRouteHeaderValue(DocumentRouteHeaderValue documentRouteHeaderValue) { 495 this.documentRouteHeaderValue = documentRouteHeaderValue; 496 } 497}