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
580 public long getContainerModelId() {
581 return _wikiNode.getContainerModelId();
582 }
583
584
589 public void setContainerModelId(long containerModelId) {
590 _wikiNode.setContainerModelId(containerModelId);
591 }
592
593
598 public java.lang.String getContainerModelName() {
599 return _wikiNode.getContainerModelName();
600 }
601
602
607 public long getParentContainerModelId() {
608 return _wikiNode.getParentContainerModelId();
609 }
610
611
616 public void setParentContainerModelId(long parentContainerModelId) {
617 _wikiNode.setParentContainerModelId(parentContainerModelId);
618 }
619
620 public boolean isNew() {
621 return _wikiNode.isNew();
622 }
623
624 public void setNew(boolean n) {
625 _wikiNode.setNew(n);
626 }
627
628 public boolean isCachedModel() {
629 return _wikiNode.isCachedModel();
630 }
631
632 public void setCachedModel(boolean cachedModel) {
633 _wikiNode.setCachedModel(cachedModel);
634 }
635
636 public boolean isEscapedModel() {
637 return _wikiNode.isEscapedModel();
638 }
639
640 public java.io.Serializable getPrimaryKeyObj() {
641 return _wikiNode.getPrimaryKeyObj();
642 }
643
644 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
645 _wikiNode.setPrimaryKeyObj(primaryKeyObj);
646 }
647
648 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
649 return _wikiNode.getExpandoBridge();
650 }
651
652 public void setExpandoBridgeAttributes(
653 com.liferay.portal.model.BaseModel<?> baseModel) {
654 _wikiNode.setExpandoBridgeAttributes(baseModel);
655 }
656
657 public void setExpandoBridgeAttributes(
658 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
659 _wikiNode.setExpandoBridgeAttributes(expandoBridge);
660 }
661
662 public void setExpandoBridgeAttributes(
663 com.liferay.portal.service.ServiceContext serviceContext) {
664 _wikiNode.setExpandoBridgeAttributes(serviceContext);
665 }
666
667 @Override
668 public java.lang.Object clone() {
669 return new WikiNodeWrapper((WikiNode)_wikiNode.clone());
670 }
671
672 public int compareTo(com.liferay.portlet.wiki.model.WikiNode wikiNode) {
673 return _wikiNode.compareTo(wikiNode);
674 }
675
676 @Override
677 public int hashCode() {
678 return _wikiNode.hashCode();
679 }
680
681 public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiNode> toCacheModel() {
682 return _wikiNode.toCacheModel();
683 }
684
685 public com.liferay.portlet.wiki.model.WikiNode toEscapedModel() {
686 return new WikiNodeWrapper(_wikiNode.toEscapedModel());
687 }
688
689 public com.liferay.portlet.wiki.model.WikiNode toUnescapedModel() {
690 return new WikiNodeWrapper(_wikiNode.toUnescapedModel());
691 }
692
693 @Override
694 public java.lang.String toString() {
695 return _wikiNode.toString();
696 }
697
698 public java.lang.String toXmlString() {
699 return _wikiNode.toXmlString();
700 }
701
702 public void persist()
703 throws com.liferay.portal.kernel.exception.SystemException {
704 _wikiNode.persist();
705 }
706
707 public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
708 throws com.liferay.portal.kernel.exception.PortalException,
709 com.liferay.portal.kernel.exception.SystemException {
710 return _wikiNode.addAttachmentsFolder();
711 }
712
713 public long getAttachmentsFolderId()
714 throws com.liferay.portal.kernel.exception.SystemException {
715 return _wikiNode.getAttachmentsFolderId();
716 }
717
718 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFiles()
719 throws com.liferay.portal.kernel.exception.SystemException {
720 return _wikiNode.getDeletedAttachmentsFiles();
721 }
722
723
726 public WikiNode getWrappedWikiNode() {
727 return _wikiNode;
728 }
729
730 public WikiNode getWrappedModel() {
731 return _wikiNode;
732 }
733
734 public void resetOriginalValues() {
735 _wikiNode.resetOriginalValues();
736 }
737
738 private WikiNode _wikiNode;
739 }