Kawai Wiki

Rev

Rev 22 | Rev 25 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11 soliveira 1
package org.kawai.model;
2
 
22 soliveira 3
import java.util.Date;
4
 
11 soliveira 5
public class Page {
6
 
22 soliveira 7
        public static final String LEFT_COLUMN = "LeftColumn";
8
 
11 soliveira 9
        private int id;
10
        private String name;
11
        private String title;
12
        private String body;
22 soliveira 13
        private boolean isSystemPage;
14
        private int languageId;
15
        private int modifiedBy;
16
        private Date modifiedOn;
17
        private int createdBy;
18
        private Date createdOn;
24 soliveira 19
        private boolean isFrontPage;
11 soliveira 20
 
21
        public Page() { }
22
 
23
        public int getId() {
24
        return id;
25
    }
26
 
27
        public void setId(int id) {
28
        this.id = id;
29
    }
30
 
31
        public String getName() {
32
        return name;
33
    }
34
 
35
        public void setName(String name) {
36
        this.name = name;
37
    }
38
 
39
        public String getTitle() {
40
        return title;
41
    }
42
 
43
        public void setTitle(String title) {
44
        this.title = title;
45
    }
46
 
47
        public String getBody() {
48
        return body;
49
    }
50
 
51
        public void setBody(String body) {
52
        this.body = body;
53
    }
22 soliveira 54
 
55
        public boolean isSystemPage() {
56
        return isSystemPage;
57
    }
58
 
59
        public void setSystemPage(boolean isSystemPage) {
60
        this.isSystemPage = isSystemPage;
61
    }
62
 
63
        public int getLanguageId() {
64
        return languageId;
65
    }
66
 
67
        public void setLanguageId(int languageId) {
68
        this.languageId = languageId;
69
    }
70
 
71
        public Language getLanguage() {
72
                return Language.fromCode(languageId);
73
        }
74
 
75
        public int getModifiedBy() {
76
        return modifiedBy;
77
    }
78
 
79
        public void setModifiedBy(int modifiedBy) {
80
        this.modifiedBy = modifiedBy;
81
    }
82
 
83
        public Date getModifiedOn() {
84
        return modifiedOn;
85
    }
86
 
87
        public void setModifiedOn(Date modifiedOn) {
88
        this.modifiedOn = modifiedOn;
89
    }
90
 
91
        public int getCreatedBy() {
92
        return createdBy;
93
    }
94
 
95
        public void setCreatedBy(int createdBy) {
96
        this.createdBy = createdBy;
97
    }
98
 
99
        public Date getCreatedOn() {
100
        return createdOn;
101
    }
102
 
103
        public void setCreatedOn(Date createdOn) {
104
        this.createdOn = createdOn;
105
    }
24 soliveira 106
 
107
        public void setFrontPage(boolean isFrontPage) {
108
                this.isFrontPage = isFrontPage;
109
        }
110
 
111
        public boolean isFrontPage() {
112
                return isFrontPage;
113
        }
22 soliveira 114
 
115
        @Override
116
    public String toString() {
117
            return "Page [name=" + name + ";language=" + getLanguage() + "]";
118
    }
119
 
11 soliveira 120
}