001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.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 DLFolder}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       DLFolder
030     * @generated
031     */
032    public class DLFolderWrapper implements DLFolder, ModelWrapper<DLFolder> {
033            public DLFolderWrapper(DLFolder dlFolder) {
034                    _dlFolder = dlFolder;
035            }
036    
037            public Class<?> getModelClass() {
038                    return DLFolder.class;
039            }
040    
041            public String getModelClassName() {
042                    return DLFolder.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("folderId", getFolderId());
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("repositoryId", getRepositoryId());
057                    attributes.put("mountPoint", getMountPoint());
058                    attributes.put("parentFolderId", getParentFolderId());
059                    attributes.put("name", getName());
060                    attributes.put("description", getDescription());
061                    attributes.put("lastPostDate", getLastPostDate());
062                    attributes.put("defaultFileEntryTypeId", getDefaultFileEntryTypeId());
063                    attributes.put("overrideFileEntryTypes", getOverrideFileEntryTypes());
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 repositoryId = (Long)attributes.get("repositoryId");
118    
119                    if (repositoryId != null) {
120                            setRepositoryId(repositoryId);
121                    }
122    
123                    Boolean mountPoint = (Boolean)attributes.get("mountPoint");
124    
125                    if (mountPoint != null) {
126                            setMountPoint(mountPoint);
127                    }
128    
129                    Long parentFolderId = (Long)attributes.get("parentFolderId");
130    
131                    if (parentFolderId != null) {
132                            setParentFolderId(parentFolderId);
133                    }
134    
135                    String name = (String)attributes.get("name");
136    
137                    if (name != null) {
138                            setName(name);
139                    }
140    
141                    String description = (String)attributes.get("description");
142    
143                    if (description != null) {
144                            setDescription(description);
145                    }
146    
147                    Date lastPostDate = (Date)attributes.get("lastPostDate");
148    
149                    if (lastPostDate != null) {
150                            setLastPostDate(lastPostDate);
151                    }
152    
153                    Long defaultFileEntryTypeId = (Long)attributes.get(
154                                    "defaultFileEntryTypeId");
155    
156                    if (defaultFileEntryTypeId != null) {
157                            setDefaultFileEntryTypeId(defaultFileEntryTypeId);
158                    }
159    
160                    Boolean overrideFileEntryTypes = (Boolean)attributes.get(
161                                    "overrideFileEntryTypes");
162    
163                    if (overrideFileEntryTypes != null) {
164                            setOverrideFileEntryTypes(overrideFileEntryTypes);
165                    }
166            }
167    
168            /**
169            * Returns the primary key of this document library folder.
170            *
171            * @return the primary key of this document library folder
172            */
173            public long getPrimaryKey() {
174                    return _dlFolder.getPrimaryKey();
175            }
176    
177            /**
178            * Sets the primary key of this document library folder.
179            *
180            * @param primaryKey the primary key of this document library folder
181            */
182            public void setPrimaryKey(long primaryKey) {
183                    _dlFolder.setPrimaryKey(primaryKey);
184            }
185    
186            /**
187            * Returns the uuid of this document library folder.
188            *
189            * @return the uuid of this document library folder
190            */
191            public java.lang.String getUuid() {
192                    return _dlFolder.getUuid();
193            }
194    
195            /**
196            * Sets the uuid of this document library folder.
197            *
198            * @param uuid the uuid of this document library folder
199            */
200            public void setUuid(java.lang.String uuid) {
201                    _dlFolder.setUuid(uuid);
202            }
203    
204            /**
205            * Returns the folder ID of this document library folder.
206            *
207            * @return the folder ID of this document library folder
208            */
209            public long getFolderId() {
210                    return _dlFolder.getFolderId();
211            }
212    
213            /**
214            * Sets the folder ID of this document library folder.
215            *
216            * @param folderId the folder ID of this document library folder
217            */
218            public void setFolderId(long folderId) {
219                    _dlFolder.setFolderId(folderId);
220            }
221    
222            /**
223            * Returns the group ID of this document library folder.
224            *
225            * @return the group ID of this document library folder
226            */
227            public long getGroupId() {
228                    return _dlFolder.getGroupId();
229            }
230    
231            /**
232            * Sets the group ID of this document library folder.
233            *
234            * @param groupId the group ID of this document library folder
235            */
236            public void setGroupId(long groupId) {
237                    _dlFolder.setGroupId(groupId);
238            }
239    
240            /**
241            * Returns the company ID of this document library folder.
242            *
243            * @return the company ID of this document library folder
244            */
245            public long getCompanyId() {
246                    return _dlFolder.getCompanyId();
247            }
248    
249            /**
250            * Sets the company ID of this document library folder.
251            *
252            * @param companyId the company ID of this document library folder
253            */
254            public void setCompanyId(long companyId) {
255                    _dlFolder.setCompanyId(companyId);
256            }
257    
258            /**
259            * Returns the user ID of this document library folder.
260            *
261            * @return the user ID of this document library folder
262            */
263            public long getUserId() {
264                    return _dlFolder.getUserId();
265            }
266    
267            /**
268            * Sets the user ID of this document library folder.
269            *
270            * @param userId the user ID of this document library folder
271            */
272            public void setUserId(long userId) {
273                    _dlFolder.setUserId(userId);
274            }
275    
276            /**
277            * Returns the user uuid of this document library folder.
278            *
279            * @return the user uuid of this document library folder
280            * @throws SystemException if a system exception occurred
281            */
282            public java.lang.String getUserUuid()
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _dlFolder.getUserUuid();
285            }
286    
287            /**
288            * Sets the user uuid of this document library folder.
289            *
290            * @param userUuid the user uuid of this document library folder
291            */
292            public void setUserUuid(java.lang.String userUuid) {
293                    _dlFolder.setUserUuid(userUuid);
294            }
295    
296            /**
297            * Returns the user name of this document library folder.
298            *
299            * @return the user name of this document library folder
300            */
301            public java.lang.String getUserName() {
302                    return _dlFolder.getUserName();
303            }
304    
305            /**
306            * Sets the user name of this document library folder.
307            *
308            * @param userName the user name of this document library folder
309            */
310            public void setUserName(java.lang.String userName) {
311                    _dlFolder.setUserName(userName);
312            }
313    
314            /**
315            * Returns the create date of this document library folder.
316            *
317            * @return the create date of this document library folder
318            */
319            public java.util.Date getCreateDate() {
320                    return _dlFolder.getCreateDate();
321            }
322    
323            /**
324            * Sets the create date of this document library folder.
325            *
326            * @param createDate the create date of this document library folder
327            */
328            public void setCreateDate(java.util.Date createDate) {
329                    _dlFolder.setCreateDate(createDate);
330            }
331    
332            /**
333            * Returns the modified date of this document library folder.
334            *
335            * @return the modified date of this document library folder
336            */
337            public java.util.Date getModifiedDate() {
338                    return _dlFolder.getModifiedDate();
339            }
340    
341            /**
342            * Sets the modified date of this document library folder.
343            *
344            * @param modifiedDate the modified date of this document library folder
345            */
346            public void setModifiedDate(java.util.Date modifiedDate) {
347                    _dlFolder.setModifiedDate(modifiedDate);
348            }
349    
350            /**
351            * Returns the repository ID of this document library folder.
352            *
353            * @return the repository ID of this document library folder
354            */
355            public long getRepositoryId() {
356                    return _dlFolder.getRepositoryId();
357            }
358    
359            /**
360            * Sets the repository ID of this document library folder.
361            *
362            * @param repositoryId the repository ID of this document library folder
363            */
364            public void setRepositoryId(long repositoryId) {
365                    _dlFolder.setRepositoryId(repositoryId);
366            }
367    
368            /**
369            * Returns the mount point of this document library folder.
370            *
371            * @return the mount point of this document library folder
372            */
373            public boolean getMountPoint() {
374                    return _dlFolder.getMountPoint();
375            }
376    
377            /**
378            * Returns <code>true</code> if this document library folder is mount point.
379            *
380            * @return <code>true</code> if this document library folder is mount point; <code>false</code> otherwise
381            */
382            public boolean isMountPoint() {
383                    return _dlFolder.isMountPoint();
384            }
385    
386            /**
387            * Sets whether this document library folder is mount point.
388            *
389            * @param mountPoint the mount point of this document library folder
390            */
391            public void setMountPoint(boolean mountPoint) {
392                    _dlFolder.setMountPoint(mountPoint);
393            }
394    
395            /**
396            * Returns the parent folder ID of this document library folder.
397            *
398            * @return the parent folder ID of this document library folder
399            */
400            public long getParentFolderId() {
401                    return _dlFolder.getParentFolderId();
402            }
403    
404            /**
405            * Sets the parent folder ID of this document library folder.
406            *
407            * @param parentFolderId the parent folder ID of this document library folder
408            */
409            public void setParentFolderId(long parentFolderId) {
410                    _dlFolder.setParentFolderId(parentFolderId);
411            }
412    
413            /**
414            * Returns the name of this document library folder.
415            *
416            * @return the name of this document library folder
417            */
418            public java.lang.String getName() {
419                    return _dlFolder.getName();
420            }
421    
422            /**
423            * Sets the name of this document library folder.
424            *
425            * @param name the name of this document library folder
426            */
427            public void setName(java.lang.String name) {
428                    _dlFolder.setName(name);
429            }
430    
431            /**
432            * Returns the description of this document library folder.
433            *
434            * @return the description of this document library folder
435            */
436            public java.lang.String getDescription() {
437                    return _dlFolder.getDescription();
438            }
439    
440            /**
441            * Sets the description of this document library folder.
442            *
443            * @param description the description of this document library folder
444            */
445            public void setDescription(java.lang.String description) {
446                    _dlFolder.setDescription(description);
447            }
448    
449            /**
450            * Returns the last post date of this document library folder.
451            *
452            * @return the last post date of this document library folder
453            */
454            public java.util.Date getLastPostDate() {
455                    return _dlFolder.getLastPostDate();
456            }
457    
458            /**
459            * Sets the last post date of this document library folder.
460            *
461            * @param lastPostDate the last post date of this document library folder
462            */
463            public void setLastPostDate(java.util.Date lastPostDate) {
464                    _dlFolder.setLastPostDate(lastPostDate);
465            }
466    
467            /**
468            * Returns the default file entry type ID of this document library folder.
469            *
470            * @return the default file entry type ID of this document library folder
471            */
472            public long getDefaultFileEntryTypeId() {
473                    return _dlFolder.getDefaultFileEntryTypeId();
474            }
475    
476            /**
477            * Sets the default file entry type ID of this document library folder.
478            *
479            * @param defaultFileEntryTypeId the default file entry type ID of this document library folder
480            */
481            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
482                    _dlFolder.setDefaultFileEntryTypeId(defaultFileEntryTypeId);
483            }
484    
485            /**
486            * Returns the override file entry types of this document library folder.
487            *
488            * @return the override file entry types of this document library folder
489            */
490            public boolean getOverrideFileEntryTypes() {
491                    return _dlFolder.getOverrideFileEntryTypes();
492            }
493    
494            /**
495            * Returns <code>true</code> if this document library folder is override file entry types.
496            *
497            * @return <code>true</code> if this document library folder is override file entry types; <code>false</code> otherwise
498            */
499            public boolean isOverrideFileEntryTypes() {
500                    return _dlFolder.isOverrideFileEntryTypes();
501            }
502    
503            /**
504            * Sets whether this document library folder is override file entry types.
505            *
506            * @param overrideFileEntryTypes the override file entry types of this document library folder
507            */
508            public void setOverrideFileEntryTypes(boolean overrideFileEntryTypes) {
509                    _dlFolder.setOverrideFileEntryTypes(overrideFileEntryTypes);
510            }
511    
512            public boolean isNew() {
513                    return _dlFolder.isNew();
514            }
515    
516            public void setNew(boolean n) {
517                    _dlFolder.setNew(n);
518            }
519    
520            public boolean isCachedModel() {
521                    return _dlFolder.isCachedModel();
522            }
523    
524            public void setCachedModel(boolean cachedModel) {
525                    _dlFolder.setCachedModel(cachedModel);
526            }
527    
528            public boolean isEscapedModel() {
529                    return _dlFolder.isEscapedModel();
530            }
531    
532            public java.io.Serializable getPrimaryKeyObj() {
533                    return _dlFolder.getPrimaryKeyObj();
534            }
535    
536            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
537                    _dlFolder.setPrimaryKeyObj(primaryKeyObj);
538            }
539    
540            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
541                    return _dlFolder.getExpandoBridge();
542            }
543    
544            public void setExpandoBridgeAttributes(
545                    com.liferay.portal.service.ServiceContext serviceContext) {
546                    _dlFolder.setExpandoBridgeAttributes(serviceContext);
547            }
548    
549            @Override
550            public java.lang.Object clone() {
551                    return new DLFolderWrapper((DLFolder)_dlFolder.clone());
552            }
553    
554            public int compareTo(
555                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
556                    return _dlFolder.compareTo(dlFolder);
557            }
558    
559            @Override
560            public int hashCode() {
561                    return _dlFolder.hashCode();
562            }
563    
564            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFolder> toCacheModel() {
565                    return _dlFolder.toCacheModel();
566            }
567    
568            public com.liferay.portlet.documentlibrary.model.DLFolder toEscapedModel() {
569                    return new DLFolderWrapper(_dlFolder.toEscapedModel());
570            }
571    
572            @Override
573            public java.lang.String toString() {
574                    return _dlFolder.toString();
575            }
576    
577            public java.lang.String toXmlString() {
578                    return _dlFolder.toXmlString();
579            }
580    
581            public void persist()
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    _dlFolder.persist();
584            }
585    
586            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getAncestors()
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException {
589                    return _dlFolder.getAncestors();
590            }
591    
592            public com.liferay.portlet.documentlibrary.model.DLFolder getParentFolder()
593                    throws com.liferay.portal.kernel.exception.PortalException,
594                            com.liferay.portal.kernel.exception.SystemException {
595                    return _dlFolder.getParentFolder();
596            }
597    
598            public java.lang.String getPath()
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            com.liferay.portal.kernel.exception.SystemException {
601                    return _dlFolder.getPath();
602            }
603    
604            public java.lang.String[] getPathArray()
605                    throws com.liferay.portal.kernel.exception.PortalException,
606                            com.liferay.portal.kernel.exception.SystemException {
607                    return _dlFolder.getPathArray();
608            }
609    
610            public boolean hasInheritableLock() {
611                    return _dlFolder.hasInheritableLock();
612            }
613    
614            public boolean hasLock() {
615                    return _dlFolder.hasLock();
616            }
617    
618            public boolean isLocked() {
619                    return _dlFolder.isLocked();
620            }
621    
622            public boolean isRoot() {
623                    return _dlFolder.isRoot();
624            }
625    
626            /**
627             * @deprecated Renamed to {@link #getWrappedModel}
628             */
629            public DLFolder getWrappedDLFolder() {
630                    return _dlFolder;
631            }
632    
633            public DLFolder getWrappedModel() {
634                    return _dlFolder;
635            }
636    
637            public void resetOriginalValues() {
638                    _dlFolder.resetOriginalValues();
639            }
640    
641            private DLFolder _dlFolder;
642    }