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.journal.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 JournalFolder}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       JournalFolder
030     * @generated
031     */
032    public class JournalFolderWrapper implements JournalFolder,
033            ModelWrapper<JournalFolder> {
034            public JournalFolderWrapper(JournalFolder journalFolder) {
035                    _journalFolder = journalFolder;
036            }
037    
038            public Class<?> getModelClass() {
039                    return JournalFolder.class;
040            }
041    
042            public String getModelClassName() {
043                    return JournalFolder.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("uuid", getUuid());
050                    attributes.put("folderId", getFolderId());
051                    attributes.put("groupId", getGroupId());
052                    attributes.put("companyId", getCompanyId());
053                    attributes.put("userId", getUserId());
054                    attributes.put("userName", getUserName());
055                    attributes.put("createDate", getCreateDate());
056                    attributes.put("modifiedDate", getModifiedDate());
057                    attributes.put("parentFolderId", getParentFolderId());
058                    attributes.put("name", getName());
059                    attributes.put("description", getDescription());
060                    attributes.put("status", getStatus());
061                    attributes.put("statusByUserId", getStatusByUserId());
062                    attributes.put("statusByUserName", getStatusByUserName());
063                    attributes.put("statusDate", getStatusDate());
064    
065                    return attributes;
066            }
067    
068            public void setModelAttributes(Map<String, Object> attributes) {
069                    String uuid = (String)attributes.get("uuid");
070    
071                    if (uuid != null) {
072                            setUuid(uuid);
073                    }
074    
075                    Long folderId = (Long)attributes.get("folderId");
076    
077                    if (folderId != null) {
078                            setFolderId(folderId);
079                    }
080    
081                    Long groupId = (Long)attributes.get("groupId");
082    
083                    if (groupId != null) {
084                            setGroupId(groupId);
085                    }
086    
087                    Long companyId = (Long)attributes.get("companyId");
088    
089                    if (companyId != null) {
090                            setCompanyId(companyId);
091                    }
092    
093                    Long userId = (Long)attributes.get("userId");
094    
095                    if (userId != null) {
096                            setUserId(userId);
097                    }
098    
099                    String userName = (String)attributes.get("userName");
100    
101                    if (userName != null) {
102                            setUserName(userName);
103                    }
104    
105                    Date createDate = (Date)attributes.get("createDate");
106    
107                    if (createDate != null) {
108                            setCreateDate(createDate);
109                    }
110    
111                    Date modifiedDate = (Date)attributes.get("modifiedDate");
112    
113                    if (modifiedDate != null) {
114                            setModifiedDate(modifiedDate);
115                    }
116    
117                    Long parentFolderId = (Long)attributes.get("parentFolderId");
118    
119                    if (parentFolderId != null) {
120                            setParentFolderId(parentFolderId);
121                    }
122    
123                    String name = (String)attributes.get("name");
124    
125                    if (name != null) {
126                            setName(name);
127                    }
128    
129                    String description = (String)attributes.get("description");
130    
131                    if (description != null) {
132                            setDescription(description);
133                    }
134    
135                    Integer status = (Integer)attributes.get("status");
136    
137                    if (status != null) {
138                            setStatus(status);
139                    }
140    
141                    Long statusByUserId = (Long)attributes.get("statusByUserId");
142    
143                    if (statusByUserId != null) {
144                            setStatusByUserId(statusByUserId);
145                    }
146    
147                    String statusByUserName = (String)attributes.get("statusByUserName");
148    
149                    if (statusByUserName != null) {
150                            setStatusByUserName(statusByUserName);
151                    }
152    
153                    Date statusDate = (Date)attributes.get("statusDate");
154    
155                    if (statusDate != null) {
156                            setStatusDate(statusDate);
157                    }
158            }
159    
160            /**
161            * Returns the primary key of this journal folder.
162            *
163            * @return the primary key of this journal folder
164            */
165            public long getPrimaryKey() {
166                    return _journalFolder.getPrimaryKey();
167            }
168    
169            /**
170            * Sets the primary key of this journal folder.
171            *
172            * @param primaryKey the primary key of this journal folder
173            */
174            public void setPrimaryKey(long primaryKey) {
175                    _journalFolder.setPrimaryKey(primaryKey);
176            }
177    
178            /**
179            * Returns the uuid of this journal folder.
180            *
181            * @return the uuid of this journal folder
182            */
183            public java.lang.String getUuid() {
184                    return _journalFolder.getUuid();
185            }
186    
187            /**
188            * Sets the uuid of this journal folder.
189            *
190            * @param uuid the uuid of this journal folder
191            */
192            public void setUuid(java.lang.String uuid) {
193                    _journalFolder.setUuid(uuid);
194            }
195    
196            /**
197            * Returns the folder ID of this journal folder.
198            *
199            * @return the folder ID of this journal folder
200            */
201            public long getFolderId() {
202                    return _journalFolder.getFolderId();
203            }
204    
205            /**
206            * Sets the folder ID of this journal folder.
207            *
208            * @param folderId the folder ID of this journal folder
209            */
210            public void setFolderId(long folderId) {
211                    _journalFolder.setFolderId(folderId);
212            }
213    
214            /**
215            * Returns the group ID of this journal folder.
216            *
217            * @return the group ID of this journal folder
218            */
219            public long getGroupId() {
220                    return _journalFolder.getGroupId();
221            }
222    
223            /**
224            * Sets the group ID of this journal folder.
225            *
226            * @param groupId the group ID of this journal folder
227            */
228            public void setGroupId(long groupId) {
229                    _journalFolder.setGroupId(groupId);
230            }
231    
232            /**
233            * Returns the company ID of this journal folder.
234            *
235            * @return the company ID of this journal folder
236            */
237            public long getCompanyId() {
238                    return _journalFolder.getCompanyId();
239            }
240    
241            /**
242            * Sets the company ID of this journal folder.
243            *
244            * @param companyId the company ID of this journal folder
245            */
246            public void setCompanyId(long companyId) {
247                    _journalFolder.setCompanyId(companyId);
248            }
249    
250            /**
251            * Returns the user ID of this journal folder.
252            *
253            * @return the user ID of this journal folder
254            */
255            public long getUserId() {
256                    return _journalFolder.getUserId();
257            }
258    
259            /**
260            * Sets the user ID of this journal folder.
261            *
262            * @param userId the user ID of this journal folder
263            */
264            public void setUserId(long userId) {
265                    _journalFolder.setUserId(userId);
266            }
267    
268            /**
269            * Returns the user uuid of this journal folder.
270            *
271            * @return the user uuid of this journal folder
272            * @throws SystemException if a system exception occurred
273            */
274            public java.lang.String getUserUuid()
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return _journalFolder.getUserUuid();
277            }
278    
279            /**
280            * Sets the user uuid of this journal folder.
281            *
282            * @param userUuid the user uuid of this journal folder
283            */
284            public void setUserUuid(java.lang.String userUuid) {
285                    _journalFolder.setUserUuid(userUuid);
286            }
287    
288            /**
289            * Returns the user name of this journal folder.
290            *
291            * @return the user name of this journal folder
292            */
293            public java.lang.String getUserName() {
294                    return _journalFolder.getUserName();
295            }
296    
297            /**
298            * Sets the user name of this journal folder.
299            *
300            * @param userName the user name of this journal folder
301            */
302            public void setUserName(java.lang.String userName) {
303                    _journalFolder.setUserName(userName);
304            }
305    
306            /**
307            * Returns the create date of this journal folder.
308            *
309            * @return the create date of this journal folder
310            */
311            public java.util.Date getCreateDate() {
312                    return _journalFolder.getCreateDate();
313            }
314    
315            /**
316            * Sets the create date of this journal folder.
317            *
318            * @param createDate the create date of this journal folder
319            */
320            public void setCreateDate(java.util.Date createDate) {
321                    _journalFolder.setCreateDate(createDate);
322            }
323    
324            /**
325            * Returns the modified date of this journal folder.
326            *
327            * @return the modified date of this journal folder
328            */
329            public java.util.Date getModifiedDate() {
330                    return _journalFolder.getModifiedDate();
331            }
332    
333            /**
334            * Sets the modified date of this journal folder.
335            *
336            * @param modifiedDate the modified date of this journal folder
337            */
338            public void setModifiedDate(java.util.Date modifiedDate) {
339                    _journalFolder.setModifiedDate(modifiedDate);
340            }
341    
342            /**
343            * Returns the parent folder ID of this journal folder.
344            *
345            * @return the parent folder ID of this journal folder
346            */
347            public long getParentFolderId() {
348                    return _journalFolder.getParentFolderId();
349            }
350    
351            /**
352            * Sets the parent folder ID of this journal folder.
353            *
354            * @param parentFolderId the parent folder ID of this journal folder
355            */
356            public void setParentFolderId(long parentFolderId) {
357                    _journalFolder.setParentFolderId(parentFolderId);
358            }
359    
360            /**
361            * Returns the name of this journal folder.
362            *
363            * @return the name of this journal folder
364            */
365            public java.lang.String getName() {
366                    return _journalFolder.getName();
367            }
368    
369            /**
370            * Sets the name of this journal folder.
371            *
372            * @param name the name of this journal folder
373            */
374            public void setName(java.lang.String name) {
375                    _journalFolder.setName(name);
376            }
377    
378            /**
379            * Returns the description of this journal folder.
380            *
381            * @return the description of this journal folder
382            */
383            public java.lang.String getDescription() {
384                    return _journalFolder.getDescription();
385            }
386    
387            /**
388            * Sets the description of this journal folder.
389            *
390            * @param description the description of this journal folder
391            */
392            public void setDescription(java.lang.String description) {
393                    _journalFolder.setDescription(description);
394            }
395    
396            /**
397            * Returns the status of this journal folder.
398            *
399            * @return the status of this journal folder
400            */
401            public int getStatus() {
402                    return _journalFolder.getStatus();
403            }
404    
405            /**
406            * Sets the status of this journal folder.
407            *
408            * @param status the status of this journal folder
409            */
410            public void setStatus(int status) {
411                    _journalFolder.setStatus(status);
412            }
413    
414            /**
415            * Returns the status by user ID of this journal folder.
416            *
417            * @return the status by user ID of this journal folder
418            */
419            public long getStatusByUserId() {
420                    return _journalFolder.getStatusByUserId();
421            }
422    
423            /**
424            * Sets the status by user ID of this journal folder.
425            *
426            * @param statusByUserId the status by user ID of this journal folder
427            */
428            public void setStatusByUserId(long statusByUserId) {
429                    _journalFolder.setStatusByUserId(statusByUserId);
430            }
431    
432            /**
433            * Returns the status by user uuid of this journal folder.
434            *
435            * @return the status by user uuid of this journal folder
436            * @throws SystemException if a system exception occurred
437            */
438            public java.lang.String getStatusByUserUuid()
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    return _journalFolder.getStatusByUserUuid();
441            }
442    
443            /**
444            * Sets the status by user uuid of this journal folder.
445            *
446            * @param statusByUserUuid the status by user uuid of this journal folder
447            */
448            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
449                    _journalFolder.setStatusByUserUuid(statusByUserUuid);
450            }
451    
452            /**
453            * Returns the status by user name of this journal folder.
454            *
455            * @return the status by user name of this journal folder
456            */
457            public java.lang.String getStatusByUserName() {
458                    return _journalFolder.getStatusByUserName();
459            }
460    
461            /**
462            * Sets the status by user name of this journal folder.
463            *
464            * @param statusByUserName the status by user name of this journal folder
465            */
466            public void setStatusByUserName(java.lang.String statusByUserName) {
467                    _journalFolder.setStatusByUserName(statusByUserName);
468            }
469    
470            /**
471            * Returns the status date of this journal folder.
472            *
473            * @return the status date of this journal folder
474            */
475            public java.util.Date getStatusDate() {
476                    return _journalFolder.getStatusDate();
477            }
478    
479            /**
480            * Sets the status date of this journal folder.
481            *
482            * @param statusDate the status date of this journal folder
483            */
484            public void setStatusDate(java.util.Date statusDate) {
485                    _journalFolder.setStatusDate(statusDate);
486            }
487    
488            /**
489            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
490            */
491            public boolean getApproved() {
492                    return _journalFolder.getApproved();
493            }
494    
495            /**
496            * Returns <code>true</code> if this journal folder is approved.
497            *
498            * @return <code>true</code> if this journal folder is approved; <code>false</code> otherwise
499            */
500            public boolean isApproved() {
501                    return _journalFolder.isApproved();
502            }
503    
504            /**
505            * Returns <code>true</code> if this journal folder is denied.
506            *
507            * @return <code>true</code> if this journal folder is denied; <code>false</code> otherwise
508            */
509            public boolean isDenied() {
510                    return _journalFolder.isDenied();
511            }
512    
513            /**
514            * Returns <code>true</code> if this journal folder is a draft.
515            *
516            * @return <code>true</code> if this journal folder is a draft; <code>false</code> otherwise
517            */
518            public boolean isDraft() {
519                    return _journalFolder.isDraft();
520            }
521    
522            /**
523            * Returns <code>true</code> if this journal folder is expired.
524            *
525            * @return <code>true</code> if this journal folder is expired; <code>false</code> otherwise
526            */
527            public boolean isExpired() {
528                    return _journalFolder.isExpired();
529            }
530    
531            /**
532            * Returns <code>true</code> if this journal folder is inactive.
533            *
534            * @return <code>true</code> if this journal folder is inactive; <code>false</code> otherwise
535            */
536            public boolean isInactive() {
537                    return _journalFolder.isInactive();
538            }
539    
540            /**
541            * Returns <code>true</code> if this journal folder is incomplete.
542            *
543            * @return <code>true</code> if this journal folder is incomplete; <code>false</code> otherwise
544            */
545            public boolean isIncomplete() {
546                    return _journalFolder.isIncomplete();
547            }
548    
549            /**
550            * Returns <code>true</code> if this journal folder is in the Recycle Bin.
551            *
552            * @return <code>true</code> if this journal folder is in the Recycle Bin; <code>false</code> otherwise
553            */
554            public boolean isInTrash() {
555                    return _journalFolder.isInTrash();
556            }
557    
558            /**
559            * Returns <code>true</code> if this journal folder is pending.
560            *
561            * @return <code>true</code> if this journal folder is pending; <code>false</code> otherwise
562            */
563            public boolean isPending() {
564                    return _journalFolder.isPending();
565            }
566    
567            /**
568            * Returns <code>true</code> if this journal folder is scheduled.
569            *
570            * @return <code>true</code> if this journal folder is scheduled; <code>false</code> otherwise
571            */
572            public boolean isScheduled() {
573                    return _journalFolder.isScheduled();
574            }
575    
576            /**
577            * Returns the container model ID of this journal folder.
578            *
579            * @return the container model ID of this journal folder
580            */
581            public long getContainerModelId() {
582                    return _journalFolder.getContainerModelId();
583            }
584    
585            /**
586            * Sets the container model ID of this journal folder.
587            *
588            * @param container model ID of this journal folder
589            */
590            public void setContainerModelId(long containerModelId) {
591                    _journalFolder.setContainerModelId(containerModelId);
592            }
593    
594            /**
595            * Returns the container name of this journal folder.
596            *
597            * @return the container name of this journal folder
598            */
599            public java.lang.String getContainerModelName() {
600                    return _journalFolder.getContainerModelName();
601            }
602    
603            /**
604            * Returns the parent container model ID of this journal folder.
605            *
606            * @return the parent container model ID of this journal folder
607            */
608            public long getParentContainerModelId() {
609                    return _journalFolder.getParentContainerModelId();
610            }
611    
612            /**
613            * Sets the parent container model ID of this journal folder.
614            *
615            * @param parent container model ID of this journal folder
616            */
617            public void setParentContainerModelId(long parentContainerModelId) {
618                    _journalFolder.setParentContainerModelId(parentContainerModelId);
619            }
620    
621            public boolean isNew() {
622                    return _journalFolder.isNew();
623            }
624    
625            public void setNew(boolean n) {
626                    _journalFolder.setNew(n);
627            }
628    
629            public boolean isCachedModel() {
630                    return _journalFolder.isCachedModel();
631            }
632    
633            public void setCachedModel(boolean cachedModel) {
634                    _journalFolder.setCachedModel(cachedModel);
635            }
636    
637            public boolean isEscapedModel() {
638                    return _journalFolder.isEscapedModel();
639            }
640    
641            public java.io.Serializable getPrimaryKeyObj() {
642                    return _journalFolder.getPrimaryKeyObj();
643            }
644    
645            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
646                    _journalFolder.setPrimaryKeyObj(primaryKeyObj);
647            }
648    
649            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
650                    return _journalFolder.getExpandoBridge();
651            }
652    
653            public void setExpandoBridgeAttributes(
654                    com.liferay.portal.model.BaseModel<?> baseModel) {
655                    _journalFolder.setExpandoBridgeAttributes(baseModel);
656            }
657    
658            public void setExpandoBridgeAttributes(
659                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
660                    _journalFolder.setExpandoBridgeAttributes(expandoBridge);
661            }
662    
663            public void setExpandoBridgeAttributes(
664                    com.liferay.portal.service.ServiceContext serviceContext) {
665                    _journalFolder.setExpandoBridgeAttributes(serviceContext);
666            }
667    
668            @Override
669            public java.lang.Object clone() {
670                    return new JournalFolderWrapper((JournalFolder)_journalFolder.clone());
671            }
672    
673            public int compareTo(
674                    com.liferay.portlet.journal.model.JournalFolder journalFolder) {
675                    return _journalFolder.compareTo(journalFolder);
676            }
677    
678            @Override
679            public int hashCode() {
680                    return _journalFolder.hashCode();
681            }
682    
683            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalFolder> toCacheModel() {
684                    return _journalFolder.toCacheModel();
685            }
686    
687            public com.liferay.portlet.journal.model.JournalFolder toEscapedModel() {
688                    return new JournalFolderWrapper(_journalFolder.toEscapedModel());
689            }
690    
691            public com.liferay.portlet.journal.model.JournalFolder toUnescapedModel() {
692                    return new JournalFolderWrapper(_journalFolder.toUnescapedModel());
693            }
694    
695            @Override
696            public java.lang.String toString() {
697                    return _journalFolder.toString();
698            }
699    
700            public java.lang.String toXmlString() {
701                    return _journalFolder.toXmlString();
702            }
703    
704            public void persist()
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    _journalFolder.persist();
707            }
708    
709            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getAncestors()
710                    throws com.liferay.portal.kernel.exception.PortalException,
711                            com.liferay.portal.kernel.exception.SystemException {
712                    return _journalFolder.getAncestors();
713            }
714    
715            public com.liferay.portlet.journal.model.JournalFolder getParentFolder()
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    return _journalFolder.getParentFolder();
719            }
720    
721            public com.liferay.portlet.journal.model.JournalFolder getTrashContainer() {
722                    return _journalFolder.getTrashContainer();
723            }
724    
725            public boolean isInTrashContainer() {
726                    return _journalFolder.isInTrashContainer();
727            }
728    
729            public boolean isRoot() {
730                    return _journalFolder.isRoot();
731            }
732    
733            /**
734             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
735             */
736            public JournalFolder getWrappedJournalFolder() {
737                    return _journalFolder;
738            }
739    
740            public JournalFolder getWrappedModel() {
741                    return _journalFolder;
742            }
743    
744            public void resetOriginalValues() {
745                    _journalFolder.resetOriginalValues();
746            }
747    
748            private JournalFolder _journalFolder;
749    }