1 package org.kuali.ole.docstore.common.document;
2
3
4
5
6
7
8
9
10
11 import javax.xml.bind.annotation.*;
12
13
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlSeeAlso;
17 import javax.xml.bind.annotation.XmlType;
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 @XmlAccessorType(XmlAccessType.FIELD)
55 @XmlType(name = "docstoreDocument", propOrder = {
56 "active",
57 "category",
58 "content",
59 "createdBy",
60 "createdOn",
61 "fastAdd",
62 "format",
63 "id",
64 "localId",
65 "_public",
66 "staffOnly",
67 "status",
68 "statusUpdatedBy",
69 "statusUpdatedOn",
70 "type",
71 "updatedBy",
72 "updatedOn",
73 "lastUpdated",
74 "displayLabel",
75 "sortedValue"
76 })
77 @XmlSeeAlso({
78 Bib.class
79 })
80 public abstract class DocstoreDocument {
81
82 public static final String ID = "ID";
83 public static final String CREATED_BY = "CREATEDBY";
84 public static final String UPDATED_BY = "UPDATEDBY";
85 public static final String DATE_ENTERED = "DATEENTERED";
86 public static final String DATE_UPDATED = "DATEUPDATED";
87 public static final String STATUS = "STATUS";
88 public static final String STATUS_UPDATED_ON = "STATUSUPDATEDON";
89 protected boolean active = false;
90 protected String category;
91 protected String content;
92 @XmlTransient
93 protected Object contentObject;
94 protected String createdBy;
95 protected String createdOn;
96 protected boolean fastAdd = false;
97 protected String format;
98 protected String id;
99 protected String localId;
100 @XmlElement(name = "public")
101 protected boolean _public = false;
102 protected boolean staffOnly = false;
103 protected String status;
104 protected String statusUpdatedBy;
105 protected String statusUpdatedOn;
106 protected String type;
107 protected String updatedBy;
108 protected String updatedOn;
109 protected String lastUpdated;
110 protected String displayLabel;
111 protected String sortedValue;
112
113
114
115
116 public boolean isActive() {
117 return active;
118 }
119
120
121
122
123 public void setActive(boolean value) {
124 this.active = value;
125 }
126
127
128
129
130
131
132
133 public String getCategory() {
134 return category;
135 }
136
137
138
139
140
141
142
143 public void setCategory(String value) {
144 this.category = value;
145 }
146
147
148
149
150
151
152
153 public String getContent() {
154 return content;
155 }
156
157
158
159
160
161
162
163 public void setContent(String value) {
164 this.content = value;
165 }
166
167
168
169
170
171
172
173 public Object getContentObject() {
174 return contentObject;
175 }
176
177
178
179
180
181
182
183 public void setContentObject(Object value) {
184 this.contentObject = value;
185 }
186
187
188
189
190
191
192
193 public String getCreatedBy() {
194 return createdBy;
195 }
196
197
198
199
200
201
202
203 public void setCreatedBy(String value) {
204 this.createdBy = value;
205 }
206
207
208
209
210
211
212
213 public String getCreatedOn() {
214 return createdOn;
215 }
216
217
218
219
220
221
222
223 public void setCreatedOn(String value) {
224 this.createdOn = value;
225 }
226
227
228
229
230 public boolean isFastAdd() {
231 return fastAdd;
232 }
233
234
235
236
237 public void setFastAdd(boolean value) {
238 this.fastAdd = value;
239 }
240
241
242
243
244
245
246
247 public String getFormat() {
248 return format;
249 }
250
251
252
253
254
255
256
257 public void setFormat(String value) {
258 this.format = value;
259 }
260
261
262
263
264
265
266
267 public String getId() {
268 return id;
269 }
270
271
272
273
274
275
276
277 public void setId(String value) {
278 this.id = value;
279 }
280
281
282
283
284
285
286
287 public String getLocalId() {
288 return localId;
289 }
290
291
292
293
294
295
296
297 public void setLocalId(String value) {
298 this.localId = value;
299 }
300
301
302
303
304 public boolean isPublic() {
305 return _public;
306 }
307
308
309
310
311 public void setPublic(boolean value) {
312 this._public = value;
313 }
314
315
316
317
318 public boolean isStaffOnly() {
319 return staffOnly;
320 }
321
322
323
324
325 public void setStaffOnly(boolean value) {
326 this.staffOnly = value;
327 }
328
329
330
331
332
333
334
335 public String getStatus() {
336 return status;
337 }
338
339
340
341
342
343
344
345 public void setStatus(String value) {
346 this.status = value;
347 }
348
349
350
351
352
353
354
355 public String getStatusUpdatedBy() {
356 return statusUpdatedBy;
357 }
358
359
360
361
362
363
364
365 public void setStatusUpdatedBy(String value) {
366 this.statusUpdatedBy = value;
367 }
368
369
370
371
372
373
374
375 public String getStatusUpdatedOn() {
376 return statusUpdatedOn;
377 }
378
379
380
381
382
383
384
385 public void setStatusUpdatedOn(String value) {
386 this.statusUpdatedOn = value;
387 }
388
389
390
391
392
393
394
395 public String getType() {
396 return type;
397 }
398
399
400
401
402
403
404
405 public void setType(String value) {
406 this.type = value;
407 }
408
409
410
411
412
413
414
415 public String getUpdatedBy() {
416 return updatedBy;
417 }
418
419
420
421
422
423
424
425 public void setUpdatedBy(String value) {
426 this.updatedBy = value;
427 }
428
429
430
431
432
433
434
435 public String getUpdatedOn() {
436 return updatedOn;
437 }
438
439
440
441
442
443
444
445 public void setUpdatedOn(String value) {
446 this.updatedOn = value;
447 }
448
449 public String getLastUpdated() {
450 return lastUpdated;
451 }
452
453 public void setLastUpdated(String lastUpdated) {
454 this.lastUpdated = lastUpdated;
455 }
456
457 public String getDisplayLabel() {
458 return displayLabel;
459 }
460
461 public void setDisplayLabel(String displayLabel) {
462 this.displayLabel = displayLabel;
463 }
464
465 public String getSortedValue() {
466 return sortedValue;
467 }
468
469 public void setSortedValue(String sortedValue) {
470 this.sortedValue = sortedValue;
471 }
472
473 public abstract String serialize(Object object);
474
475 public abstract Object deserialize(String content);
476
477 public abstract Object deserializeContent(Object object);
478
479 public abstract Object deserializeContent(String content);
480
481 public abstract String serializeContent(Object object);
482
483
484 }