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