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