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