001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
024     * <p>
025     * This class is a wrapper for {@link WikiNode}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       WikiNode
030     * @generated
031     */
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            /**
160            * Returns the primary key of this wiki node.
161            *
162            * @return the primary key of this wiki node
163            */
164            public long getPrimaryKey() {
165                    return _wikiNode.getPrimaryKey();
166            }
167    
168            /**
169            * Sets the primary key of this wiki node.
170            *
171            * @param primaryKey the primary key of this wiki node
172            */
173            public void setPrimaryKey(long primaryKey) {
174                    _wikiNode.setPrimaryKey(primaryKey);
175            }
176    
177            /**
178            * Returns the uuid of this wiki node.
179            *
180            * @return the uuid of this wiki node
181            */
182            public java.lang.String getUuid() {
183                    return _wikiNode.getUuid();
184            }
185    
186            /**
187            * Sets the uuid of this wiki node.
188            *
189            * @param uuid the uuid of this wiki node
190            */
191            public void setUuid(java.lang.String uuid) {
192                    _wikiNode.setUuid(uuid);
193            }
194    
195            /**
196            * Returns the node ID of this wiki node.
197            *
198            * @return the node ID of this wiki node
199            */
200            public long getNodeId() {
201                    return _wikiNode.getNodeId();
202            }
203    
204            /**
205            * Sets the node ID of this wiki node.
206            *
207            * @param nodeId the node ID of this wiki node
208            */
209            public void setNodeId(long nodeId) {
210                    _wikiNode.setNodeId(nodeId);
211            }
212    
213            /**
214            * Returns the group ID of this wiki node.
215            *
216            * @return the group ID of this wiki node
217            */
218            public long getGroupId() {
219                    return _wikiNode.getGroupId();
220            }
221    
222            /**
223            * Sets the group ID of this wiki node.
224            *
225            * @param groupId the group ID of this wiki node
226            */
227            public void setGroupId(long groupId) {
228                    _wikiNode.setGroupId(groupId);
229            }
230    
231            /**
232            * Returns the company ID of this wiki node.
233            *
234            * @return the company ID of this wiki node
235            */
236            public long getCompanyId() {
237                    return _wikiNode.getCompanyId();
238            }
239    
240            /**
241            * Sets the company ID of this wiki node.
242            *
243            * @param companyId the company ID of this wiki node
244            */
245            public void setCompanyId(long companyId) {
246                    _wikiNode.setCompanyId(companyId);
247            }
248    
249            /**
250            * Returns the user ID of this wiki node.
251            *
252            * @return the user ID of this wiki node
253            */
254            public long getUserId() {
255                    return _wikiNode.getUserId();
256            }
257    
258            /**
259            * Sets the user ID of this wiki node.
260            *
261            * @param userId the user ID of this wiki node
262            */
263            public void setUserId(long userId) {
264                    _wikiNode.setUserId(userId);
265            }
266    
267            /**
268            * Returns the user uuid of this wiki node.
269            *
270            * @return the user uuid of this wiki node
271            * @throws SystemException if a system exception occurred
272            */
273            public java.lang.String getUserUuid()
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return _wikiNode.getUserUuid();
276            }
277    
278            /**
279            * Sets the user uuid of this wiki node.
280            *
281            * @param userUuid the user uuid of this wiki node
282            */
283            public void setUserUuid(java.lang.String userUuid) {
284                    _wikiNode.setUserUuid(userUuid);
285            }
286    
287            /**
288            * Returns the user name of this wiki node.
289            *
290            * @return the user name of this wiki node
291            */
292            public java.lang.String getUserName() {
293                    return _wikiNode.getUserName();
294            }
295    
296            /**
297            * Sets the user name of this wiki node.
298            *
299            * @param userName the user name of this wiki node
300            */
301            public void setUserName(java.lang.String userName) {
302                    _wikiNode.setUserName(userName);
303            }
304    
305            /**
306            * Returns the create date of this wiki node.
307            *
308            * @return the create date of this wiki node
309            */
310            public java.util.Date getCreateDate() {
311                    return _wikiNode.getCreateDate();
312            }
313    
314            /**
315            * Sets the create date of this wiki node.
316            *
317            * @param createDate the create date of this wiki node
318            */
319            public void setCreateDate(java.util.Date createDate) {
320                    _wikiNode.setCreateDate(createDate);
321            }
322    
323            /**
324            * Returns the modified date of this wiki node.
325            *
326            * @return the modified date of this wiki node
327            */
328            public java.util.Date getModifiedDate() {
329                    return _wikiNode.getModifiedDate();
330            }
331    
332            /**
333            * Sets the modified date of this wiki node.
334            *
335            * @param modifiedDate the modified date of this wiki node
336            */
337            public void setModifiedDate(java.util.Date modifiedDate) {
338                    _wikiNode.setModifiedDate(modifiedDate);
339            }
340    
341            /**
342            * Returns the name of this wiki node.
343            *
344            * @return the name of this wiki node
345            */
346            public java.lang.String getName() {
347                    return _wikiNode.getName();
348            }
349    
350            /**
351            * Sets the name of this wiki node.
352            *
353            * @param name the name of this wiki node
354            */
355            public void setName(java.lang.String name) {
356                    _wikiNode.setName(name);
357            }
358    
359            /**
360            * Returns the description of this wiki node.
361            *
362            * @return the description of this wiki node
363            */
364            public java.lang.String getDescription() {
365                    return _wikiNode.getDescription();
366            }
367    
368            /**
369            * Sets the description of this wiki node.
370            *
371            * @param description the description of this wiki node
372            */
373            public void setDescription(java.lang.String description) {
374                    _wikiNode.setDescription(description);
375            }
376    
377            /**
378            * Returns the last post date of this wiki node.
379            *
380            * @return the last post date of this wiki node
381            */
382            public java.util.Date getLastPostDate() {
383                    return _wikiNode.getLastPostDate();
384            }
385    
386            /**
387            * Sets the last post date of this wiki node.
388            *
389            * @param lastPostDate the last post date of this wiki node
390            */
391            public void setLastPostDate(java.util.Date lastPostDate) {
392                    _wikiNode.setLastPostDate(lastPostDate);
393            }
394    
395            /**
396            * Returns the status of this wiki node.
397            *
398            * @return the status of this wiki node
399            */
400            public int getStatus() {
401                    return _wikiNode.getStatus();
402            }
403    
404            /**
405            * Sets the status of this wiki node.
406            *
407            * @param status the status of this wiki node
408            */
409            public void setStatus(int status) {
410                    _wikiNode.setStatus(status);
411            }
412    
413            /**
414            * Returns the status by user ID of this wiki node.
415            *
416            * @return the status by user ID of this wiki node
417            */
418            public long getStatusByUserId() {
419                    return _wikiNode.getStatusByUserId();
420            }
421    
422            /**
423            * Sets the status by user ID of this wiki node.
424            *
425            * @param statusByUserId the status by user ID of this wiki node
426            */
427            public void setStatusByUserId(long statusByUserId) {
428                    _wikiNode.setStatusByUserId(statusByUserId);
429            }
430    
431            /**
432            * Returns the status by user uuid of this wiki node.
433            *
434            * @return the status by user uuid of this wiki node
435            * @throws SystemException if a system exception occurred
436            */
437            public java.lang.String getStatusByUserUuid()
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _wikiNode.getStatusByUserUuid();
440            }
441    
442            /**
443            * Sets the status by user uuid of this wiki node.
444            *
445            * @param statusByUserUuid the status by user uuid of this wiki node
446            */
447            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
448                    _wikiNode.setStatusByUserUuid(statusByUserUuid);
449            }
450    
451            /**
452            * Returns the status by user name of this wiki node.
453            *
454            * @return the status by user name of this wiki node
455            */
456            public java.lang.String getStatusByUserName() {
457                    return _wikiNode.getStatusByUserName();
458            }
459    
460            /**
461            * Sets the status by user name of this wiki node.
462            *
463            * @param statusByUserName the status by user name of this wiki node
464            */
465            public void setStatusByUserName(java.lang.String statusByUserName) {
466                    _wikiNode.setStatusByUserName(statusByUserName);
467            }
468    
469            /**
470            * Returns the status date of this wiki node.
471            *
472            * @return the status date of this wiki node
473            */
474            public java.util.Date getStatusDate() {
475                    return _wikiNode.getStatusDate();
476            }
477    
478            /**
479            * Sets the status date of this wiki node.
480            *
481            * @param statusDate the status date of this wiki node
482            */
483            public void setStatusDate(java.util.Date statusDate) {
484                    _wikiNode.setStatusDate(statusDate);
485            }
486    
487            /**
488            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
489            */
490            public boolean getApproved() {
491                    return _wikiNode.getApproved();
492            }
493    
494            /**
495            * Returns <code>true</code> if this wiki node is approved.
496            *
497            * @return <code>true</code> if this wiki node is approved; <code>false</code> otherwise
498            */
499            public boolean isApproved() {
500                    return _wikiNode.isApproved();
501            }
502    
503            /**
504            * Returns <code>true</code> if this wiki node is denied.
505            *
506            * @return <code>true</code> if this wiki node is denied; <code>false</code> otherwise
507            */
508            public boolean isDenied() {
509                    return _wikiNode.isDenied();
510            }
511    
512            /**
513            * Returns <code>true</code> if this wiki node is a draft.
514            *
515            * @return <code>true</code> if this wiki node is a draft; <code>false</code> otherwise
516            */
517            public boolean isDraft() {
518                    return _wikiNode.isDraft();
519            }
520    
521            /**
522            * Returns <code>true</code> if this wiki node is expired.
523            *
524            * @return <code>true</code> if this wiki node is expired; <code>false</code> otherwise
525            */
526            public boolean isExpired() {
527                    return _wikiNode.isExpired();
528            }
529    
530            /**
531            * Returns <code>true</code> if this wiki node is inactive.
532            *
533            * @return <code>true</code> if this wiki node is inactive; <code>false</code> otherwise
534            */
535            public boolean isInactive() {
536                    return _wikiNode.isInactive();
537            }
538    
539            /**
540            * Returns <code>true</code> if this wiki node is incomplete.
541            *
542            * @return <code>true</code> if this wiki node is incomplete; <code>false</code> otherwise
543            */
544            public boolean isIncomplete() {
545                    return _wikiNode.isIncomplete();
546            }
547    
548            /**
549            * Returns <code>true</code> if this wiki node is in the Recycle Bin.
550            *
551            * @return <code>true</code> if this wiki node is in the Recycle Bin; <code>false</code> otherwise
552            */
553            public boolean isInTrash() {
554                    return _wikiNode.isInTrash();
555            }
556    
557            /**
558            * Returns <code>true</code> if this wiki node is pending.
559            *
560            * @return <code>true</code> if this wiki node is pending; <code>false</code> otherwise
561            */
562            public boolean isPending() {
563                    return _wikiNode.isPending();
564            }
565    
566            /**
567            * Returns <code>true</code> if this wiki node is scheduled.
568            *
569            * @return <code>true</code> if this wiki node is scheduled; <code>false</code> otherwise
570            */
571            public boolean isScheduled() {
572                    return _wikiNode.isScheduled();
573            }
574    
575            /**
576            * Returns the container model ID of this wiki node.
577            *
578            * @return the container model ID of this wiki node
579            */
580            public long getContainerModelId() {
581                    return _wikiNode.getContainerModelId();
582            }
583    
584            /**
585            * Sets the container model ID of this wiki node.
586            *
587            * @param container model ID of this wiki node
588            */
589            public void setContainerModelId(long containerModelId) {
590                    _wikiNode.setContainerModelId(containerModelId);
591            }
592    
593            /**
594            * Returns the container name of this wiki node.
595            *
596            * @return the container name of this wiki node
597            */
598            public java.lang.String getContainerModelName() {
599                    return _wikiNode.getContainerModelName();
600            }
601    
602            /**
603            * Returns the parent container model ID of this wiki node.
604            *
605            * @return the parent container model ID of this wiki node
606            */
607            public long getParentContainerModelId() {
608                    return _wikiNode.getParentContainerModelId();
609            }
610    
611            /**
612            * Sets the parent container model ID of this wiki node.
613            *
614            * @param parent container model ID of this wiki node
615            */
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            /**
724             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
725             */
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    }