001 package org.kuali.ole.license.bo; 002 003 import org.joda.time.DateTime; 004 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 005 006 import java.util.ArrayList; 007 import java.util.List; 008 009 /** 010 * OleLicenseRequestBo is the business object class for License Request Maintenance Document. 011 */ 012 public class OleLicenseRequestBo extends PersistableBusinessObjectBase { 013 014 private String oleLicenseRequestId; 015 private String licenseRequestStatusCode; 016 private String assignee; 017 private String locationId; 018 private String licenseRequestTypeId; 019 private String requisitionDocNumber; 020 private String agreementId; 021 private String licenseRequestWorkflowTypeCode; 022 private String documentNumber; 023 024 private String agreementMethod; 025 private List<OleAgreementDocumentMetadata> agreementDocumentMetadataList = new ArrayList<OleAgreementDocumentMetadata>(); 026 private List<OleEventLogBo> eventLogs = new ArrayList<OleEventLogBo>(); 027 private OleLicenseRequestStatus oleLicenseRequestStatus; 028 private OleLicenseRequestLocation oleLicenseRequestLocation = new OleLicenseRequestLocation(); 029 private OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType = new OleLicenseRequestWorkflowType(); 030 private DateTime lastModifiedDate; 031 private String bibliographicTitle; 032 private String linkedAgreement; 033 034 //private ONIXPublicationsLicenseMessage onixElement; 035 036 public DateTime getLastModifiedDate() { 037 return lastModifiedDate; 038 } 039 040 public void setLastModifiedDate(DateTime lastModifiedDate) { 041 this.lastModifiedDate = lastModifiedDate; 042 } 043 044 045 /** 046 * Initiate oleLicenseRequestStatus. 047 */ 048 public OleLicenseRequestBo() { 049 if(oleLicenseRequestStatus==null){ 050 oleLicenseRequestStatus = new OleLicenseRequestStatus(); 051 oleLicenseRequestStatus.setName("License Needed"); 052 } 053 } 054 055 /** 056 * Gets the oleLicenseRequestStatus attribute. 057 * @return Returns the oleLicenseRequestStatus 058 */ 059 public OleLicenseRequestStatus getOleLicenseRequestStatus() { 060 return oleLicenseRequestStatus; 061 } 062 063 /** 064 * Sets the oleLicenseRequestStatus attribute value. 065 * @param oleLicenseRequestStatus The oleLicenseRequestStatus to set. 066 */ 067 public void setOleLicenseRequestStatus(OleLicenseRequestStatus oleLicenseRequestStatus) { 068 this.oleLicenseRequestStatus = oleLicenseRequestStatus; 069 } 070 071 /** 072 * Gets the oleLicenseRequestId attribute. 073 * @return Returns the oleLicenseRequestId 074 */ 075 public String getOleLicenseRequestId() { 076 return oleLicenseRequestId; 077 } 078 079 /** 080 * Sets the oleLicenseRequestId attribute value. 081 * @param oleLicenseRequestId The oleLicenseRequestId to set. 082 */ 083 public void setOleLicenseRequestId(String oleLicenseRequestId) { 084 this.oleLicenseRequestId = oleLicenseRequestId; 085 } 086 087 /** 088 * Gets the licenseRequestStatusCode attribute. 089 * @return Returns the licenseRequestStatusCode 090 */ 091 public String getLicenseRequestStatusCode() { 092 return licenseRequestStatusCode; 093 } 094 095 /** 096 * Sets the licenseRequestStatusCode attribute value. 097 * @param licenseRequestStatusCode The licenseRequestStatusCode to set. 098 */ 099 public void setLicenseRequestStatusCode(String licenseRequestStatusCode) { 100 this.licenseRequestStatusCode = licenseRequestStatusCode; 101 } 102 103 /** 104 * Gets the assignee attribute. 105 * @return Returns the assignee 106 */ 107 public String getAssignee() { 108 return assignee; 109 } 110 111 /** 112 * Sets the assignee attribute value. 113 * @param assignee The assignee to set. 114 */ 115 public void setAssignee(String assignee) { 116 this.assignee = assignee; 117 } 118 119 /** 120 * Gets the locationId attribute. 121 * @return Returns the locationId 122 */ 123 public String getLocationId() { 124 return locationId; 125 } 126 127 /** 128 * Sets the locationId attribute value. 129 * @param locationId The locationId to set. 130 */ 131 public void setLocationId(String locationId) { 132 this.locationId = locationId; 133 } 134 135 /** 136 * Gets the licenseRequestTypeId attribute. 137 * @return Returns the licenseRequestTypeId 138 */ 139 public String getLicenseRequestTypeId() { 140 return licenseRequestTypeId; 141 } 142 143 /** 144 * Sets the licenseRequestTypeId attribute value. 145 * @param licenseRequestTypeId The licenseRequestTypeId to set. 146 */ 147 public void setLicenseRequestTypeId(String licenseRequestTypeId) { 148 this.licenseRequestTypeId = licenseRequestTypeId; 149 } 150 151 /** 152 * Gets the eventLogs attribute. 153 * @return Returns the eventLogs 154 */ 155 public List<OleEventLogBo> getEventLogs() { 156 return eventLogs; 157 } 158 159 /** 160 * Sets the eventLogs attribute value. 161 * @param eventLogs The eventLogs to set. 162 */ 163 public void setEventLogs(List<OleEventLogBo> eventLogs) { 164 this.eventLogs = eventLogs; 165 } 166 167 /** 168 * Gets the requisitionDocNumber attribute. 169 * @return Returns the requisitionDocNumber 170 */ 171 public String getRequisitionDocNumber() { 172 return requisitionDocNumber; 173 } 174 175 /** 176 * Sets the requisitionDocNumber attribute value. 177 * @param requisitionDocNumber The requisitionDocNumber to set. 178 */ 179 public void setRequisitionDocNumber(String requisitionDocNumber) { 180 this.requisitionDocNumber = requisitionDocNumber; 181 } 182 183 /** 184 * Gets the agreementId attribute. 185 * @return Returns the agreementId 186 */ 187 public String getAgreementId() { 188 return agreementId; 189 } 190 191 /** 192 * Sets the agreementId attribute value. 193 * @param agreementId The agreementId to set. 194 */ 195 public void setAgreementId(String agreementId) { 196 this.agreementId = agreementId; 197 } 198 199 /** 200 * Gets the licenseRequestWorkflowTypeCode attribute. 201 * @return Returns the licenseRequestWorkflowTypeCode 202 */ 203 public String getLicenseRequestWorkflowTypeCode() { 204 return licenseRequestWorkflowTypeCode; 205 } 206 207 /** 208 * Sets the licenseRequestWorkflowTypeCode attribute value. 209 * @param licenseRequestWorkflowTypeCode The licenseRequestWorkflowTypeCode to set. 210 */ 211 public void setLicenseRequestWorkflowTypeCode(String licenseRequestWorkflowTypeCode) { 212 this.licenseRequestWorkflowTypeCode = licenseRequestWorkflowTypeCode; 213 } 214 215 /** 216 * Gets the agreementMethod attribute. 217 * @return Returns the agreementMethod 218 */ 219 public String getAgreementMethod() { 220 return agreementMethod; 221 } 222 223 /** 224 * Sets the agreementMethod attribute value. 225 * @param agreementMethod The agreementMethod to set. 226 */ 227 public void setAgreementMethod(String agreementMethod) { 228 this.agreementMethod = agreementMethod; 229 } 230 231 /** 232 * Gets the agreementDocumentMetadataList attribute. 233 * @return Returns the agreementDocumentMetadataList 234 */ 235 public List<OleAgreementDocumentMetadata> getAgreementDocumentMetadataList() { 236 return agreementDocumentMetadataList; 237 } 238 239 /** 240 * Sets the agreementDocumentMetadataList attribute value. 241 * @param agreementDocumentMetadataList The agreementDocumentMetadataList to set. 242 */ 243 public void setAgreementDocumentMetadataList(List<OleAgreementDocumentMetadata> agreementDocumentMetadataList) { 244 this.agreementDocumentMetadataList = agreementDocumentMetadataList; 245 } 246 247 public String getBibliographicTitle() { 248 return bibliographicTitle; 249 } 250 251 public void setBibliographicTitle(String bibliographicTitle) { 252 this.bibliographicTitle = bibliographicTitle; 253 } 254 255 public String getDocumentNumber() { 256 return documentNumber; 257 } 258 259 public void setDocumentNumber(String documentNumber) { 260 this.documentNumber = documentNumber; 261 } 262 263 public OleLicenseRequestLocation getOleLicenseRequestLocation() { 264 return oleLicenseRequestLocation; 265 } 266 267 public void setOleLicenseRequestLocation(OleLicenseRequestLocation oleLicenseRequestLocation) { 268 this.oleLicenseRequestLocation = oleLicenseRequestLocation; 269 } 270 271 public OleLicenseRequestWorkflowType getOleLicenseRequestWorkflowType() { 272 return oleLicenseRequestWorkflowType; 273 } 274 275 public void setOleLicenseRequestWorkflowType(OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType) { 276 this.oleLicenseRequestWorkflowType = oleLicenseRequestWorkflowType; 277 } 278 279 public String getLinkedAgreement() { 280 return linkedAgreement; 281 } 282 283 public void setLinkedAgreement(String linkedAgreement) { 284 this.linkedAgreement = linkedAgreement; 285 } 286 287 /*public ONIXPublicationsLicenseMessage getOnixElement() { 288 return onixElement; 289 } 290 291 public void setOnixElement(ONIXPublicationsLicenseMessage onixElement) { 292 this.onixElement = onixElement; 293 }*/ 294 }