1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.page.document.impl;
18
19 import org.apache.jetspeed.om.page.Document;
20 import org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl;
21
22 /***
23 * DocumentImpl
24 *
25 * @author <a href="mailto:rwatler@apache.org">Randy Watler</a>
26 * @version $Id$
27 */
28 public abstract class DocumentImpl extends NodeImpl implements Document
29 {
30 private String version;
31
32 private boolean dirty = false;
33
34 public DocumentImpl(SecurityConstraintsImpl constraints)
35 {
36 super(constraints);
37 }
38
39
40
41
42 public String getTitle()
43 {
44
45 String title = super.getTitle();
46 if (title == null)
47 {
48 title = defaultTitleFromName();
49 setTitle(title);
50 }
51 return title;
52 }
53
54
55
56
57 public String getVersion()
58 {
59 return version;
60 }
61
62
63
64
65 public void setVersion(String version)
66 {
67 this.version = version;
68 }
69
70 public boolean isDirty() {
71 return dirty;
72 }
73
74 public void setDirty(boolean dirty) {
75 this.dirty = dirty;
76 }
77
78 }