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