View Javadoc
1   /*
2    * Copyright (C) 2003-2009 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.wiki.mow.api;
18  
19  import java.util.Date;
20  import java.util.List;
21  
22  public class Page {
23  
24    private String id;
25  
26    private String name;
27  
28    private String owner;
29  
30    private String author;
31  
32    private Date createdDate;
33  
34    private Date updatedDate;
35  
36    private String content;
37  
38    private String syntax;
39  
40    private String title;
41  
42    private String comment;
43  
44    private List<PermissionEntry> permissions;
45  
46    private String url;
47  
48    private String activityId;
49  
50    private String wikiId;
51  
52    private String wikiType;
53  
54    private String wikiOwner;
55  
56    private boolean isMinorEdit;
57  
58    public Page() {
59    }
60  
61    public Page(String name) {
62      this.name = name;
63    }
64  
65    public Page(String name, String title) {
66      this();
67      this.name = name;
68      this.title = title;
69    }
70  
71    public String getId() {
72      return id;
73    }
74  
75    public void setId(String id) {
76      this.id = id;
77    }
78  
79    public String getName() {
80      return name;
81    }
82  
83    public void setName(String name) {
84      this.name = name;
85    }
86  
87    public String getOwner() {
88      return owner;
89    }
90  
91    public void setOwner(String owner) {
92      this.owner = owner;
93    }
94  
95    public String getAuthor() {
96      return author;
97    }
98  
99    public void setAuthor(String author) {
100     this.author = author;
101   }
102 
103   public Date getCreatedDate() {
104     return createdDate;
105   }
106 
107   public void setCreatedDate(Date createdDate) {
108     this.createdDate = createdDate;
109   }
110 
111   public Date getUpdatedDate() {
112     return updatedDate;
113   }
114 
115   public void setUpdatedDate(Date updatedDate) {
116     this.updatedDate = updatedDate;
117   }
118 
119   public String getContent() {
120     return content;
121   }
122 
123   public void setContent(String content) {
124     this.content = content;
125   }
126 
127   public String getSyntax() {
128     return syntax;
129   }
130 
131   public void setSyntax(String syntax) {
132     this.syntax = syntax;
133   }
134 
135   public String getTitle() {
136     return title;
137   }
138 
139   public void setTitle(String title) {
140     this.title = title;
141   }
142 
143   public String getComment() {
144     return comment;
145   }
146 
147   public void setComment(String comment) {
148     this.comment = comment;
149   }
150 
151   public List<PermissionEntry> getPermissions() {
152     return permissions;
153   }
154 
155   public void setPermissions(List<PermissionEntry> permissions) {
156     this.permissions = permissions;
157   }
158 
159   public String getUrl() {
160     return url;
161   }
162 
163   public void setUrl(String url) {
164     this.url = url;
165   }
166 
167   public String getActivityId() {
168     return activityId;
169   }
170 
171   public void setActivityId(String activityId) {
172     this.activityId = activityId;
173   }
174 
175   public String getWikiId() {
176     return wikiId;
177   }
178 
179   public void setWikiId(String wikiId) {
180     this.wikiId = wikiId;
181   }
182 
183   public String getWikiType() {
184     return wikiType;
185   }
186 
187   public void setWikiType(String wikiType) {
188     this.wikiType = wikiType;
189   }
190 
191   public String getWikiOwner() {
192     return wikiOwner;
193   }
194 
195   public void setWikiOwner(String wikiOwner) {
196     this.wikiOwner = wikiOwner;
197   }
198 
199   public boolean isMinorEdit() {
200     return isMinorEdit;
201   }
202 
203   public void setMinorEdit(boolean isMinorEdit) {
204     this.isMinorEdit = isMinorEdit;
205   }
206 }