001
014
015 package com.liferay.portlet.wiki.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class WikiNodeWrapper implements WikiNode, ModelWrapper<WikiNode> {
033 public WikiNodeWrapper(WikiNode wikiNode) {
034 _wikiNode = wikiNode;
035 }
036
037 public Class<?> getModelClass() {
038 return WikiNode.class;
039 }
040
041 public String getModelClassName() {
042 return WikiNode.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("nodeId", getNodeId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("name", getName());
057 attributes.put("description", getDescription());
058 attributes.put("lastPostDate", getLastPostDate());
059 attributes.put("status", getStatus());
060 attributes.put("statusByUserId", getStatusByUserId());
061 attributes.put("statusByUserName", getStatusByUserName());
062 attributes.put("statusDate", getStatusDate());
063
064 return attributes;
065 }
066
067 public void setModelAttributes(Map<String, Object> attributes) {
068 String uuid = (String)attributes.get("uuid");
069
070 if (uuid != null) {
071 setUuid(uuid);
072 }
073
074 Long nodeId = (Long)attributes.get("nodeId");
075
076 if (nodeId != null) {
077 setNodeId(nodeId);
078 }
079
080 Long groupId = (Long)attributes.get("groupId");
081
082 if (groupId != null) {
083 setGroupId(groupId);
084 }
085
086 Long companyId = (Long)attributes.get("companyId");
087
088 if (companyId != null) {
089 setCompanyId(companyId);
090 }
091
092 Long userId = (Long)attributes.get("userId");
093
094 if (userId != null) {
095 setUserId(userId);
096 }
097
098 String userName = (String)attributes.get("userName");
099
100 if (userName != null) {
101 setUserName(userName);
102 }
103
104 Date createDate = (Date)attributes.get("createDate");
105
106 if (createDate != null) {
107 setCreateDate(createDate);
108 }
109
110 Date modifiedDate = (Date)attributes.get("modifiedDate");
111
112 if (modifiedDate != null) {
113 setModifiedDate(modifiedDate);
114 }
115
116 String name = (String)attributes.get("name");
117
118 if (name != null) {
119 setName(name);
120 }
121
122 String description = (String)attributes.get("description");
123
124 if (description != null) {
125 setDescription(description);
126 }
127
128 Date lastPostDate = (Date)attributes.get("lastPostDate");
129
130 if (lastPostDate != null) {
131 setLastPostDate(lastPostDate);
132 }
133
134 Integer status = (Integer)attributes.get("status");
135
136 if (status != null) {
137 setStatus(status);
138 }
139
140 Long statusByUserId = (Long)attributes.get("statusByUserId");
141
142 if (statusByUserId != null) {
143 setStatusByUserId(statusByUserId);
144 }
145
146 String statusByUserName = (String)attributes.get("statusByUserName");
147
148 if (statusByUserName != null) {
149 setStatusByUserName(statusByUserName);
150 }
151
152 Date statusDate = (Date)attributes.get("statusDate");
153
154 if (statusDate != null) {
155 setStatusDate(statusDate);
156 }
157 }
158
159
164 public long getPrimaryKey() {
165 return _wikiNode.getPrimaryKey();
166 }
167
168
173 public void setPrimaryKey(long primaryKey) {
174 _wikiNode.setPrimaryKey(primaryKey);
175 }
176
177
182 public java.lang.String getUuid() {
183 return _wikiNode.getUuid();
184 }
185
186
191 public void setUuid(java.lang.String uuid) {
192 _wikiNode.setUuid(uuid);
193 }
194
195
200 public long getNodeId() {
201 return _wikiNode.getNodeId();
202 }
203
204
209 public void setNodeId(long nodeId) {
210 _wikiNode.setNodeId(nodeId);
211 }
212
213
218 public long getGroupId() {
219 return _wikiNode.getGroupId();
220 }
221
222
227 public void setGroupId(long groupId) {
228 _wikiNode.setGroupId(groupId);
229 }
230
231
236 public long getCompanyId() {
237 return _wikiNode.getCompanyId();
238 }
239
240
245 public void setCompanyId(long companyId) {
246 _wikiNode.setCompanyId(companyId);
247 }
248
249
254 public long getUserId() {
255 return _wikiNode.getUserId();
256 }
257
258
263 public void setUserId(long userId) {
264 _wikiNode.setUserId(userId);
265 }
266
267
273 public java.lang.String getUserUuid()
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return _wikiNode.getUserUuid();
276 }
277
278
283 public void setUserUuid(java.lang.String userUuid) {
284 _wikiNode.setUserUuid(userUuid);
285 }
286
287
292 public java.lang.String getUserName() {
293 return _wikiNode.getUserName();
294 }
295
296
301 public void setUserName(java.lang.String userName) {
302 _wikiNode.setUserName(userName);
303 }
304
305
310 public java.util.Date getCreateDate() {
311 return _wikiNode.getCreateDate();
312 }
313
314
319 public void setCreateDate(java.util.Date createDate) {
320 _wikiNode.setCreateDate(createDate);
321 }
322
323
328 public java.util.Date getModifiedDate() {
329 return _wikiNode.getModifiedDate();
330 }
331
332
337 public void setModifiedDate(java.util.Date modifiedDate) {
338 _wikiNode.setModifiedDate(modifiedDate);
339 }
340
341
346 public java.lang.String getName() {
347 return _wikiNode.getName();
348 }
349
350
355 public void setName(java.lang.String name) {
356 _wikiNode.setName(name);
357 }
358
359
364 public java.lang.String getDescription() {
365 return _wikiNode.getDescription();
366 }
367
368
373 public void setDescription(java.lang.String description) {
374 _wikiNode.setDescription(description);
375 }
376
377
382 public java.util.Date getLastPostDate() {
383 return _wikiNode.getLastPostDate();
384 }
385
386
391 public void setLastPostDate(java.util.Date lastPostDate) {
392 _wikiNode.setLastPostDate(lastPostDate);
393 }
394
395
400 public int getStatus() {
401 return _wikiNode.getStatus();
402 }
403
404
409 public void setStatus(int status) {
410 _wikiNode.setStatus(status);
411 }
412
413
418 public long getStatusByUserId() {
419 return _wikiNode.getStatusByUserId();
420 }
421
422
427 public void setStatusByUserId(long statusByUserId) {
428 _wikiNode.setStatusByUserId(statusByUserId);
429 }
430
431
437 public java.lang.String getStatusByUserUuid()
438 throws com.liferay.portal.kernel.exception.SystemException {
439 return _wikiNode.getStatusByUserUuid();
440 }
441
442
447 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
448 _wikiNode.setStatusByUserUuid(statusByUserUuid);
449 }
450
451
456 public java.lang.String getStatusByUserName() {
457 return _wikiNode.getStatusByUserName();
458 }
459
460
465 public void setStatusByUserName(java.lang.String statusByUserName) {
466 _wikiNode.setStatusByUserName(statusByUserName);
467 }
468
469
474 public java.util.Date getStatusDate() {
475 return _wikiNode.getStatusDate();
476 }
477
478
483 public void setStatusDate(java.util.Date statusDate) {
484 _wikiNode.setStatusDate(statusDate);
485 }
486
487
490 public boolean getApproved() {
491 return _wikiNode.getApproved();
492 }
493
494
499 public boolean isApproved() {
500 return _wikiNode.isApproved();
501 }
502
503
508 public boolean isDenied() {
509 return _wikiNode.isDenied();
510 }
511
512
517 public boolean isDraft() {
518 return _wikiNode.isDraft();
519 }
520
521
526 public boolean isExpired() {
527 return _wikiNode.isExpired();
528 }
529
530
535 public boolean isInactive() {
536 return _wikiNode.isInactive();
537 }
538
539
544 public boolean isIncomplete() {
545 return _wikiNode.isIncomplete();
546 }
547
548
553 public boolean isInTrash() {
554 return _wikiNode.isInTrash();
555 }
556
557
562 public boolean isPending() {
563 return _wikiNode.isPending();
564 }
565
566
571 public boolean isScheduled() {
572 return _wikiNode.isScheduled();
573 }
574
575 public boolean isNew() {
576 return _wikiNode.isNew();
577 }
578
579 public void setNew(boolean n) {
580 _wikiNode.setNew(n);
581 }
582
583 public boolean isCachedModel() {
584 return _wikiNode.isCachedModel();
585 }
586
587 public void setCachedModel(boolean cachedModel) {
588 _wikiNode.setCachedModel(cachedModel);
589 }
590
591 public boolean isEscapedModel() {
592 return _wikiNode.isEscapedModel();
593 }
594
595 public java.io.Serializable getPrimaryKeyObj() {
596 return _wikiNode.getPrimaryKeyObj();
597 }
598
599 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
600 _wikiNode.setPrimaryKeyObj(primaryKeyObj);
601 }
602
603 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
604 return _wikiNode.getExpandoBridge();
605 }
606
607 public void setExpandoBridgeAttributes(
608 com.liferay.portal.service.ServiceContext serviceContext) {
609 _wikiNode.setExpandoBridgeAttributes(serviceContext);
610 }
611
612 @Override
613 public java.lang.Object clone() {
614 return new WikiNodeWrapper((WikiNode)_wikiNode.clone());
615 }
616
617 public int compareTo(com.liferay.portlet.wiki.model.WikiNode wikiNode) {
618 return _wikiNode.compareTo(wikiNode);
619 }
620
621 @Override
622 public int hashCode() {
623 return _wikiNode.hashCode();
624 }
625
626 public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiNode> toCacheModel() {
627 return _wikiNode.toCacheModel();
628 }
629
630 public com.liferay.portlet.wiki.model.WikiNode toEscapedModel() {
631 return new WikiNodeWrapper(_wikiNode.toEscapedModel());
632 }
633
634 @Override
635 public java.lang.String toString() {
636 return _wikiNode.toString();
637 }
638
639 public java.lang.String toXmlString() {
640 return _wikiNode.toXmlString();
641 }
642
643 public void persist()
644 throws com.liferay.portal.kernel.exception.SystemException {
645 _wikiNode.persist();
646 }
647
648 public java.util.List<com.liferay.portal.kernel.util.Tuple> getDeletedAttachmentsFiles()
649 throws com.liferay.portal.kernel.exception.PortalException,
650 com.liferay.portal.kernel.exception.SystemException {
651 return _wikiNode.getDeletedAttachmentsFiles();
652 }
653
654
657 public WikiNode getWrappedWikiNode() {
658 return _wikiNode;
659 }
660
661 public WikiNode getWrappedModel() {
662 return _wikiNode;
663 }
664
665 public void resetOriginalValues() {
666 _wikiNode.resetOriginalValues();
667 }
668
669 private WikiNode _wikiNode;
670 }