001
014
015 package com.liferay.portlet.wiki.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
033 public class WikiPageSoap implements Serializable {
034 public static WikiPageSoap toSoapModel(WikiPage model) {
035 WikiPageSoap soapModel = new WikiPageSoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setPageId(model.getPageId());
039 soapModel.setResourcePrimKey(model.getResourcePrimKey());
040 soapModel.setGroupId(model.getGroupId());
041 soapModel.setCompanyId(model.getCompanyId());
042 soapModel.setUserId(model.getUserId());
043 soapModel.setUserName(model.getUserName());
044 soapModel.setCreateDate(model.getCreateDate());
045 soapModel.setModifiedDate(model.getModifiedDate());
046 soapModel.setNodeId(model.getNodeId());
047 soapModel.setTitle(model.getTitle());
048 soapModel.setVersion(model.getVersion());
049 soapModel.setMinorEdit(model.getMinorEdit());
050 soapModel.setContent(model.getContent());
051 soapModel.setSummary(model.getSummary());
052 soapModel.setFormat(model.getFormat());
053 soapModel.setHead(model.getHead());
054 soapModel.setParentTitle(model.getParentTitle());
055 soapModel.setRedirectTitle(model.getRedirectTitle());
056 soapModel.setStatus(model.getStatus());
057 soapModel.setStatusByUserId(model.getStatusByUserId());
058 soapModel.setStatusByUserName(model.getStatusByUserName());
059 soapModel.setStatusDate(model.getStatusDate());
060
061 return soapModel;
062 }
063
064 public static WikiPageSoap[] toSoapModels(WikiPage[] models) {
065 WikiPageSoap[] soapModels = new WikiPageSoap[models.length];
066
067 for (int i = 0; i < models.length; i++) {
068 soapModels[i] = toSoapModel(models[i]);
069 }
070
071 return soapModels;
072 }
073
074 public static WikiPageSoap[][] toSoapModels(WikiPage[][] models) {
075 WikiPageSoap[][] soapModels = null;
076
077 if (models.length > 0) {
078 soapModels = new WikiPageSoap[models.length][models[0].length];
079 }
080 else {
081 soapModels = new WikiPageSoap[0][0];
082 }
083
084 for (int i = 0; i < models.length; i++) {
085 soapModels[i] = toSoapModels(models[i]);
086 }
087
088 return soapModels;
089 }
090
091 public static WikiPageSoap[] toSoapModels(List<WikiPage> models) {
092 List<WikiPageSoap> soapModels = new ArrayList<WikiPageSoap>(models.size());
093
094 for (WikiPage model : models) {
095 soapModels.add(toSoapModel(model));
096 }
097
098 return soapModels.toArray(new WikiPageSoap[soapModels.size()]);
099 }
100
101 public WikiPageSoap() {
102 }
103
104 public long getPrimaryKey() {
105 return _pageId;
106 }
107
108 public void setPrimaryKey(long pk) {
109 setPageId(pk);
110 }
111
112 public String getUuid() {
113 return _uuid;
114 }
115
116 public void setUuid(String uuid) {
117 _uuid = uuid;
118 }
119
120 public long getPageId() {
121 return _pageId;
122 }
123
124 public void setPageId(long pageId) {
125 _pageId = pageId;
126 }
127
128 public long getResourcePrimKey() {
129 return _resourcePrimKey;
130 }
131
132 public void setResourcePrimKey(long resourcePrimKey) {
133 _resourcePrimKey = resourcePrimKey;
134 }
135
136 public long getGroupId() {
137 return _groupId;
138 }
139
140 public void setGroupId(long groupId) {
141 _groupId = groupId;
142 }
143
144 public long getCompanyId() {
145 return _companyId;
146 }
147
148 public void setCompanyId(long companyId) {
149 _companyId = companyId;
150 }
151
152 public long getUserId() {
153 return _userId;
154 }
155
156 public void setUserId(long userId) {
157 _userId = userId;
158 }
159
160 public String getUserName() {
161 return _userName;
162 }
163
164 public void setUserName(String userName) {
165 _userName = userName;
166 }
167
168 public Date getCreateDate() {
169 return _createDate;
170 }
171
172 public void setCreateDate(Date createDate) {
173 _createDate = createDate;
174 }
175
176 public Date getModifiedDate() {
177 return _modifiedDate;
178 }
179
180 public void setModifiedDate(Date modifiedDate) {
181 _modifiedDate = modifiedDate;
182 }
183
184 public long getNodeId() {
185 return _nodeId;
186 }
187
188 public void setNodeId(long nodeId) {
189 _nodeId = nodeId;
190 }
191
192 public String getTitle() {
193 return _title;
194 }
195
196 public void setTitle(String title) {
197 _title = title;
198 }
199
200 public double getVersion() {
201 return _version;
202 }
203
204 public void setVersion(double version) {
205 _version = version;
206 }
207
208 public boolean getMinorEdit() {
209 return _minorEdit;
210 }
211
212 public boolean isMinorEdit() {
213 return _minorEdit;
214 }
215
216 public void setMinorEdit(boolean minorEdit) {
217 _minorEdit = minorEdit;
218 }
219
220 public String getContent() {
221 return _content;
222 }
223
224 public void setContent(String content) {
225 _content = content;
226 }
227
228 public String getSummary() {
229 return _summary;
230 }
231
232 public void setSummary(String summary) {
233 _summary = summary;
234 }
235
236 public String getFormat() {
237 return _format;
238 }
239
240 public void setFormat(String format) {
241 _format = format;
242 }
243
244 public boolean getHead() {
245 return _head;
246 }
247
248 public boolean isHead() {
249 return _head;
250 }
251
252 public void setHead(boolean head) {
253 _head = head;
254 }
255
256 public String getParentTitle() {
257 return _parentTitle;
258 }
259
260 public void setParentTitle(String parentTitle) {
261 _parentTitle = parentTitle;
262 }
263
264 public String getRedirectTitle() {
265 return _redirectTitle;
266 }
267
268 public void setRedirectTitle(String redirectTitle) {
269 _redirectTitle = redirectTitle;
270 }
271
272 public int getStatus() {
273 return _status;
274 }
275
276 public void setStatus(int status) {
277 _status = status;
278 }
279
280 public long getStatusByUserId() {
281 return _statusByUserId;
282 }
283
284 public void setStatusByUserId(long statusByUserId) {
285 _statusByUserId = statusByUserId;
286 }
287
288 public String getStatusByUserName() {
289 return _statusByUserName;
290 }
291
292 public void setStatusByUserName(String statusByUserName) {
293 _statusByUserName = statusByUserName;
294 }
295
296 public Date getStatusDate() {
297 return _statusDate;
298 }
299
300 public void setStatusDate(Date statusDate) {
301 _statusDate = statusDate;
302 }
303
304 private String _uuid;
305 private long _pageId;
306 private long _resourcePrimKey;
307 private long _groupId;
308 private long _companyId;
309 private long _userId;
310 private String _userName;
311 private Date _createDate;
312 private Date _modifiedDate;
313 private long _nodeId;
314 private String _title;
315 private double _version;
316 private boolean _minorEdit;
317 private String _content;
318 private String _summary;
319 private String _format;
320 private boolean _head;
321 private String _parentTitle;
322 private String _redirectTitle;
323 private int _status;
324 private long _statusByUserId;
325 private String _statusByUserName;
326 private Date _statusDate;
327 }