1 package org.kuali.ole.license.bo;
2
3 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4
5 import java.sql.Timestamp;
6 import java.util.ArrayList;
7 import java.util.List;
8
9
10
11
12 public class OleLicenseRequestBo extends PersistableBusinessObjectBase {
13
14 private String oleLicenseRequestId;
15 private String licenseRequestStatusCode;
16 private String assignee;
17 private String locationId;
18 private String licenseRequestTypeId;
19 private String requisitionDocNumber;
20 private String agreementId;
21 private String licenseRequestWorkflowTypeCode;
22 private String documentNumber;
23
24 private String agreementMethod;
25 private List<OleAgreementDocumentMetadata> agreementDocumentMetadataList = new ArrayList<OleAgreementDocumentMetadata>();
26 private List<OleEventLogBo> eventLogs = new ArrayList<OleEventLogBo>();
27 private List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles = new ArrayList<OleLicenseRequestItemTitle>();
28 private OleLicenseRequestStatus oleLicenseRequestStatus;
29 private OleLicenseRequestLocation oleLicenseRequestLocation = new OleLicenseRequestLocation();
30 private OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType = new OleLicenseRequestWorkflowType();
31 private Timestamp lastModifiedDate;
32 private String bibliographicTitle;
33 private String linkedAgreement;
34 private String agreementDate;
35 private String agreementUser;
36 private String agreementStatus;
37 private String agreementType;
38 private String agreementMd;
39 private OleLicenseRequestType oleLicenseRequestType = new OleLicenseRequestType();
40
41 public void setOleLicenseRequestType(OleLicenseRequestType oleLicenseRequestType) {
42 this.oleLicenseRequestType = oleLicenseRequestType;
43 }
44
45 public OleLicenseRequestType getOleLicenseRequestType() {
46
47 return oleLicenseRequestType;
48 }
49
50 private boolean present;
51
52 public Timestamp getLastModifiedDate() {
53 return lastModifiedDate;
54 }
55
56 public void setLastModifiedDate(Timestamp lastModifiedDate) {
57 this.lastModifiedDate = lastModifiedDate;
58 }
59
60
61
62
63 public OleLicenseRequestBo() {
64 if(oleLicenseRequestStatus==null){
65 oleLicenseRequestStatus = new OleLicenseRequestStatus();
66 oleLicenseRequestStatus.setName("License Needed");
67 }
68 }
69
70
71
72
73
74 public OleLicenseRequestStatus getOleLicenseRequestStatus() {
75 return oleLicenseRequestStatus;
76 }
77
78
79
80
81
82 public void setOleLicenseRequestStatus(OleLicenseRequestStatus oleLicenseRequestStatus) {
83 this.oleLicenseRequestStatus = oleLicenseRequestStatus;
84 }
85
86
87
88
89
90 public String getOleLicenseRequestId() {
91 return oleLicenseRequestId;
92 }
93
94
95
96
97
98 public void setOleLicenseRequestId(String oleLicenseRequestId) {
99 this.oleLicenseRequestId = oleLicenseRequestId;
100 }
101
102
103
104
105
106 public String getLicenseRequestStatusCode() {
107 return licenseRequestStatusCode;
108 }
109
110
111
112
113
114 public void setLicenseRequestStatusCode(String licenseRequestStatusCode) {
115 this.licenseRequestStatusCode = licenseRequestStatusCode;
116 }
117
118
119
120
121
122 public String getAssignee() {
123 return assignee;
124 }
125
126
127
128
129
130 public void setAssignee(String assignee) {
131 this.assignee = assignee;
132 }
133
134
135
136
137
138 public String getLocationId() {
139 return locationId;
140 }
141
142
143
144
145
146 public void setLocationId(String locationId) {
147 this.locationId = locationId;
148 }
149
150
151
152
153
154 public String getLicenseRequestTypeId() {
155 return licenseRequestTypeId;
156 }
157
158
159
160
161
162 public void setLicenseRequestTypeId(String licenseRequestTypeId) {
163 this.licenseRequestTypeId = licenseRequestTypeId;
164 }
165
166
167
168
169
170 public List<OleEventLogBo> getEventLogs() {
171 return eventLogs;
172 }
173
174
175
176
177
178 public void setEventLogs(List<OleEventLogBo> eventLogs) {
179 this.eventLogs = eventLogs;
180 }
181
182
183
184
185
186 public String getRequisitionDocNumber() {
187 return requisitionDocNumber;
188 }
189
190
191
192
193
194 public void setRequisitionDocNumber(String requisitionDocNumber) {
195 this.requisitionDocNumber = requisitionDocNumber;
196 }
197
198
199
200
201
202 public String getAgreementId() {
203 return agreementId;
204 }
205
206
207
208
209
210 public void setAgreementId(String agreementId) {
211 this.agreementId = agreementId;
212 }
213
214
215
216
217
218 public String getLicenseRequestWorkflowTypeCode() {
219 return licenseRequestWorkflowTypeCode;
220 }
221
222
223
224
225
226 public void setLicenseRequestWorkflowTypeCode(String licenseRequestWorkflowTypeCode) {
227 this.licenseRequestWorkflowTypeCode = licenseRequestWorkflowTypeCode;
228 }
229
230
231
232
233
234 public String getAgreementMethod() {
235 return agreementMethod;
236 }
237
238
239
240
241
242 public void setAgreementMethod(String agreementMethod) {
243 this.agreementMethod = agreementMethod;
244 }
245
246
247
248
249
250 public List<OleAgreementDocumentMetadata> getAgreementDocumentMetadataList() {
251 return agreementDocumentMetadataList;
252 }
253
254
255
256
257
258 public void setAgreementDocumentMetadataList(List<OleAgreementDocumentMetadata> agreementDocumentMetadataList) {
259 this.agreementDocumentMetadataList = agreementDocumentMetadataList;
260 }
261
262 public String getBibliographicTitle() {
263 return bibliographicTitle;
264 }
265
266 public void setBibliographicTitle(String bibliographicTitle) {
267 this.bibliographicTitle = bibliographicTitle;
268 }
269
270 public String getDocumentNumber() {
271 return documentNumber;
272 }
273
274 public void setDocumentNumber(String documentNumber) {
275 this.documentNumber = documentNumber;
276 }
277
278 public OleLicenseRequestLocation getOleLicenseRequestLocation() {
279 return oleLicenseRequestLocation;
280 }
281
282 public void setOleLicenseRequestLocation(OleLicenseRequestLocation oleLicenseRequestLocation) {
283 this.oleLicenseRequestLocation = oleLicenseRequestLocation;
284 }
285
286 public OleLicenseRequestWorkflowType getOleLicenseRequestWorkflowType() {
287 return oleLicenseRequestWorkflowType;
288 }
289
290 public void setOleLicenseRequestWorkflowType(OleLicenseRequestWorkflowType oleLicenseRequestWorkflowType) {
291 this.oleLicenseRequestWorkflowType = oleLicenseRequestWorkflowType;
292 }
293
294 public String getLinkedAgreement() {
295 return linkedAgreement;
296 }
297
298 public void setLinkedAgreement(String linkedAgreement) {
299 this.linkedAgreement = linkedAgreement;
300 }
301
302 public String getAgreementDate() {
303 return agreementDate;
304 }
305
306 public void setAgreementDate(String agreementDate) {
307 this.agreementDate = agreementDate;
308 }
309
310 public String getAgreementUser() {
311 return agreementUser;
312 }
313
314 public void setAgreementUser(String agreementUser) {
315 this.agreementUser = agreementUser;
316 }
317
318 public String getAgreementStatus() {
319 return agreementStatus;
320 }
321
322 public void setAgreementStatus(String agreementStatus) {
323 this.agreementStatus = agreementStatus;
324 }
325
326 public String getAgreementType() {
327 return agreementType;
328 }
329
330 public void setAgreementType(String agreementType) {
331 this.agreementType = agreementType;
332 }
333
334 public String getAgreementMd() {
335 return agreementMd;
336 }
337
338 public void setAgreementMd(String agreementMd) {
339 this.agreementMd = agreementMd;
340 }
341 public boolean isPresent() {
342 return (this.agreementDate != null || this.agreementUser != null || this.agreementStatus != null ||
343 this.agreementType != null || this.agreementMd != null || licenseRequestStatusCode != null ) ? true : false ;
344 }
345
346 public List<OleLicenseRequestItemTitle> getOleLicenseRequestItemTitles() {
347 return oleLicenseRequestItemTitles;
348 }
349
350 public void setOleLicenseRequestItemTitles(List<OleLicenseRequestItemTitle> oleLicenseRequestItemTitles) {
351 this.oleLicenseRequestItemTitles = oleLicenseRequestItemTitles;
352 }
353 }