1 package org.kuali.ole.docstore.common.document;
2
3 /**
4 * Created with IntelliJ IDEA.
5 * User: sambasivam
6 * Date: 12/13/13
7 * Time: 3:29 PM
8 * To change this template use File | Settings | File Templates.
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 * <p>Java class for docstoreDocument complex type.
22 * <p/>
23 * <p>The following schema fragment specifies the expected content contained within this class.
24 * <p/>
25 * <pre>
26 * <complexType name="docstoreDocument">
27 * <complexContent>
28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29 * <sequence>
30 * <element name="active" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
31 * <element name="category" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
32 * <element name="content" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
33 * <element name="contentObject" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
34 * <element name="createdBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
35 * <element name="createdOn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
36 * <element name="fastAdd" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
37 * <element name="format" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
38 * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
39 * <element name="localId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
40 * <element name="public" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
41 * <element name="staffOnly" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
42 * <element name="status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
43 * <element name="statusUpdatedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
44 * <element name="statusUpdatedOn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
45 * <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
46 * <element name="updatedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
47 * <element name="updatedOn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
48 * </sequence>
49 * </restriction>
50 * </complexContent>
51 * </complexType>
52 * </pre>
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 * Gets the value of the active property.
115 */
116 public boolean isActive() {
117 return active;
118 }
119
120 /**
121 * Sets the value of the active property.
122 */
123 public void setActive(boolean value) {
124 this.active = value;
125 }
126
127 /**
128 * Gets the value of the category property.
129 *
130 * @return possible object is
131 * {@link String }
132 */
133 public String getCategory() {
134 return category;
135 }
136
137 /**
138 * Sets the value of the category property.
139 *
140 * @param value allowed object is
141 * {@link String }
142 */
143 public void setCategory(String value) {
144 this.category = value;
145 }
146
147 /**
148 * Gets the value of the content property.
149 *
150 * @return possible object is
151 * {@link String }
152 */
153 public String getContent() {
154 return content;
155 }
156
157 /**
158 * Sets the value of the content property.
159 *
160 * @param value allowed object is
161 * {@link String }
162 */
163 public void setContent(String value) {
164 this.content = value;
165 }
166
167 /**
168 * Gets the value of the contentObject property.
169 *
170 * @return possible object is
171 * {@link Object }
172 */
173 public Object getContentObject() {
174 return contentObject;
175 }
176
177 /**
178 * Sets the value of the contentObject property.
179 *
180 * @param value allowed object is
181 * {@link Object }
182 */
183 public void setContentObject(Object value) {
184 this.contentObject = value;
185 }
186
187 /**
188 * Gets the value of the createdBy property.
189 *
190 * @return possible object is
191 * {@link String }
192 */
193 public String getCreatedBy() {
194 return createdBy;
195 }
196
197 /**
198 * Sets the value of the createdBy property.
199 *
200 * @param value allowed object is
201 * {@link String }
202 */
203 public void setCreatedBy(String value) {
204 this.createdBy = value;
205 }
206
207 /**
208 * Gets the value of the createdOn property.
209 *
210 * @return possible object is
211 * {@link String }
212 */
213 public String getCreatedOn() {
214 return createdOn;
215 }
216
217 /**
218 * Sets the value of the createdOn property.
219 *
220 * @param value allowed object is
221 * {@link String }
222 */
223 public void setCreatedOn(String value) {
224 this.createdOn = value;
225 }
226
227 /**
228 * Gets the value of the fastAdd property.
229 */
230 public boolean isFastAdd() {
231 return fastAdd;
232 }
233
234 /**
235 * Sets the value of the fastAdd property.
236 */
237 public void setFastAdd(boolean value) {
238 this.fastAdd = value;
239 }
240
241 /**
242 * Gets the value of the format property.
243 *
244 * @return possible object is
245 * {@link String }
246 */
247 public String getFormat() {
248 return format;
249 }
250
251 /**
252 * Sets the value of the format property.
253 *
254 * @param value allowed object is
255 * {@link String }
256 */
257 public void setFormat(String value) {
258 this.format = value;
259 }
260
261 /**
262 * Gets the value of the id property.
263 *
264 * @return possible object is
265 * {@link String }
266 */
267 public String getId() {
268 return id;
269 }
270
271 /**
272 * Sets the value of the id property.
273 *
274 * @param value allowed object is
275 * {@link String }
276 */
277 public void setId(String value) {
278 this.id = value;
279 }
280
281 /**
282 * Gets the value of the localId property.
283 *
284 * @return possible object is
285 * {@link String }
286 */
287 public String getLocalId() {
288 return localId;
289 }
290
291 /**
292 * Sets the value of the localId property.
293 *
294 * @param value allowed object is
295 * {@link String }
296 */
297 public void setLocalId(String value) {
298 this.localId = value;
299 }
300
301 /**
302 * Gets the value of the public property.
303 */
304 public boolean isPublic() {
305 return _public;
306 }
307
308 /**
309 * Sets the value of the public property.
310 */
311 public void setPublic(boolean value) {
312 this._public = value;
313 }
314
315 /**
316 * Gets the value of the staffOnly property.
317 */
318 public boolean isStaffOnly() {
319 return staffOnly;
320 }
321
322 /**
323 * Sets the value of the staffOnly property.
324 */
325 public void setStaffOnly(boolean value) {
326 this.staffOnly = value;
327 }
328
329 /**
330 * Gets the value of the status property.
331 *
332 * @return possible object is
333 * {@link String }
334 */
335 public String getStatus() {
336 return status;
337 }
338
339 /**
340 * Sets the value of the status property.
341 *
342 * @param value allowed object is
343 * {@link String }
344 */
345 public void setStatus(String value) {
346 this.status = value;
347 }
348
349 /**
350 * Gets the value of the statusUpdatedBy property.
351 *
352 * @return possible object is
353 * {@link String }
354 */
355 public String getStatusUpdatedBy() {
356 return statusUpdatedBy;
357 }
358
359 /**
360 * Sets the value of the statusUpdatedBy property.
361 *
362 * @param value allowed object is
363 * {@link String }
364 */
365 public void setStatusUpdatedBy(String value) {
366 this.statusUpdatedBy = value;
367 }
368
369 /**
370 * Gets the value of the statusUpdatedOn property.
371 *
372 * @return possible object is
373 * {@link String }
374 */
375 public String getStatusUpdatedOn() {
376 return statusUpdatedOn;
377 }
378
379 /**
380 * Sets the value of the statusUpdatedOn property.
381 *
382 * @param value allowed object is
383 * {@link String }
384 */
385 public void setStatusUpdatedOn(String value) {
386 this.statusUpdatedOn = value;
387 }
388
389 /**
390 * Gets the value of the type property.
391 *
392 * @return possible object is
393 * {@link String }
394 */
395 public String getType() {
396 return type;
397 }
398
399 /**
400 * Sets the value of the type property.
401 *
402 * @param value allowed object is
403 * {@link String }
404 */
405 public void setType(String value) {
406 this.type = value;
407 }
408
409 /**
410 * Gets the value of the updatedBy property.
411 *
412 * @return possible object is
413 * {@link String }
414 */
415 public String getUpdatedBy() {
416 return updatedBy;
417 }
418
419 /**
420 * Sets the value of the updatedBy property.
421 *
422 * @param value allowed object is
423 * {@link String }
424 */
425 public void setUpdatedBy(String value) {
426 this.updatedBy = value;
427 }
428
429 /**
430 * Gets the value of the updatedOn property.
431 *
432 * @return possible object is
433 * {@link String }
434 */
435 public String getUpdatedOn() {
436 return updatedOn;
437 }
438
439 /**
440 * Sets the value of the updatedOn property.
441 *
442 * @param value allowed object is
443 * {@link String }
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 }