1 package org.kuali.ole.select.bo;
2
3 import org.apache.commons.lang.StringUtils;
4 import org.kuali.rice.core.api.CoreApiServiceLocator;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6
7 import java.sql.Timestamp;
8
9
10
11
12 public class OleAgreementDocumentMetadata extends PersistableBusinessObjectBase {
13 private Timestamp uploadedDate;
14 private String uploadedBy;
15 private String agreementType;
16 private String agreementName;
17 private String agreementFileName;
18 private String agreementNotes;
19 private String agreementVersion;
20 private String agreementMimeType;
21 private String agreementUUID;
22 private String oleAgreementDocumentId;
23 private String oleLicenseRequestId;
24 private OleLicenseRequestBo oleLicenseRequestBo;
25
26
27
28
29
30
31 public Timestamp getUploadedDate() {
32 return uploadedDate;
33 }
34
35
36
37
38
39
40 public void setUploadedDate(Timestamp uploadedDate) {
41 this.uploadedDate = uploadedDate;
42 }
43
44
45
46
47
48
49 public String getUploadedBy() {
50 return uploadedBy;
51 }
52
53
54
55
56
57
58 public void setUploadedBy(String uploadedBy) {
59 this.uploadedBy = uploadedBy;
60 }
61
62
63
64
65
66
67 public String getAgreementType() {
68 return agreementType;
69 }
70
71
72
73
74
75
76 public void setAgreementType(String agreementType) {
77 this.agreementType = agreementType;
78 }
79
80
81
82
83
84
85 public String getAgreementName() {
86 return agreementName;
87 }
88
89
90
91
92
93
94 public void setAgreementName(String agreementName) {
95 this.agreementName = agreementName;
96 }
97
98
99
100
101
102
103 public String getAgreementFileName() {
104 return agreementFileName;
105 }
106
107
108
109
110
111
112 public void setAgreementFileName(String agreementFileName) {
113 this.agreementFileName = agreementFileName;
114 }
115
116
117
118
119
120
121 public String getAgreementNotes() {
122 return agreementNotes;
123 }
124
125
126
127
128
129
130 public void setAgreementNotes(String agreementNotes) {
131 this.agreementNotes = agreementNotes;
132 }
133
134
135
136
137
138
139 public String getAgreementVersion() {
140 return agreementVersion;
141 }
142
143
144
145
146
147
148 public void setAgreementVersion(String agreementVersion) {
149 this.agreementVersion = agreementVersion;
150 }
151
152
153
154
155
156
157 public String getAgreementMimeType() {
158 return agreementMimeType;
159 }
160
161
162
163
164
165
166 public void setAgreementMimeType(String agreementMimeType) {
167 this.agreementMimeType = agreementMimeType;
168 }
169
170
171
172
173
174
175 public String getAgreementUUID() {
176 return agreementUUID;
177 }
178
179
180
181
182
183
184 public void setAgreementUUID(String agreementUUID) {
185 this.agreementUUID = agreementUUID;
186 }
187
188
189
190
191
192
193 public String getOleAgreementDocumentId() {
194 return oleAgreementDocumentId;
195 }
196
197
198
199
200
201
202 public void setOleAgreementDocumentId(String oleAgreementDocumentId) {
203 this.oleAgreementDocumentId = oleAgreementDocumentId;
204 }
205
206
207
208
209
210
211 public String getOleLicenseRequestId() {
212 return oleLicenseRequestId;
213 }
214
215
216
217
218
219
220 public void setOleLicenseRequestId(String oleLicenseRequestId) {
221 this.oleLicenseRequestId = oleLicenseRequestId;
222 }
223
224
225
226
227
228
229 public OleLicenseRequestBo getOleLicenseRequestBo() {
230 return oleLicenseRequestBo;
231 }
232
233
234
235
236
237
238 public void setOleLicenseRequestBo(OleLicenseRequestBo oleLicenseRequestBo) {
239 this.oleLicenseRequestBo = oleLicenseRequestBo;
240 }
241
242
243
244
245
246
247 public boolean isComplete() {
248 return StringUtils.isNotBlank(agreementFileName) && StringUtils.isNotBlank(agreementMimeType);
249 }
250
251
252
253
254 public void setCurrentTimeStamp() {
255 final Timestamp now = CoreApiServiceLocator.getDateTimeService().getCurrentTimestamp();
256 this.setUploadedDate(now);
257 }
258 }