001    /**
002     * Copyright (c) 2000-2012 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.documentlibrary.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DLFolder}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLFolder
026     * @generated
027     */
028    public class DLFolderWrapper implements DLFolder, ModelWrapper<DLFolder> {
029            public DLFolderWrapper(DLFolder dlFolder) {
030                    _dlFolder = dlFolder;
031            }
032    
033            public Class<?> getModelClass() {
034                    return DLFolder.class;
035            }
036    
037            public String getModelClassName() {
038                    return DLFolder.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this document library folder.
043            *
044            * @return the primary key of this document library folder
045            */
046            public long getPrimaryKey() {
047                    return _dlFolder.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this document library folder.
052            *
053            * @param primaryKey the primary key of this document library folder
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _dlFolder.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the uuid of this document library folder.
061            *
062            * @return the uuid of this document library folder
063            */
064            public java.lang.String getUuid() {
065                    return _dlFolder.getUuid();
066            }
067    
068            /**
069            * Sets the uuid of this document library folder.
070            *
071            * @param uuid the uuid of this document library folder
072            */
073            public void setUuid(java.lang.String uuid) {
074                    _dlFolder.setUuid(uuid);
075            }
076    
077            /**
078            * Returns the folder ID of this document library folder.
079            *
080            * @return the folder ID of this document library folder
081            */
082            public long getFolderId() {
083                    return _dlFolder.getFolderId();
084            }
085    
086            /**
087            * Sets the folder ID of this document library folder.
088            *
089            * @param folderId the folder ID of this document library folder
090            */
091            public void setFolderId(long folderId) {
092                    _dlFolder.setFolderId(folderId);
093            }
094    
095            /**
096            * Returns the group ID of this document library folder.
097            *
098            * @return the group ID of this document library folder
099            */
100            public long getGroupId() {
101                    return _dlFolder.getGroupId();
102            }
103    
104            /**
105            * Sets the group ID of this document library folder.
106            *
107            * @param groupId the group ID of this document library folder
108            */
109            public void setGroupId(long groupId) {
110                    _dlFolder.setGroupId(groupId);
111            }
112    
113            /**
114            * Returns the company ID of this document library folder.
115            *
116            * @return the company ID of this document library folder
117            */
118            public long getCompanyId() {
119                    return _dlFolder.getCompanyId();
120            }
121    
122            /**
123            * Sets the company ID of this document library folder.
124            *
125            * @param companyId the company ID of this document library folder
126            */
127            public void setCompanyId(long companyId) {
128                    _dlFolder.setCompanyId(companyId);
129            }
130    
131            /**
132            * Returns the user ID of this document library folder.
133            *
134            * @return the user ID of this document library folder
135            */
136            public long getUserId() {
137                    return _dlFolder.getUserId();
138            }
139    
140            /**
141            * Sets the user ID of this document library folder.
142            *
143            * @param userId the user ID of this document library folder
144            */
145            public void setUserId(long userId) {
146                    _dlFolder.setUserId(userId);
147            }
148    
149            /**
150            * Returns the user uuid of this document library folder.
151            *
152            * @return the user uuid of this document library folder
153            * @throws SystemException if a system exception occurred
154            */
155            public java.lang.String getUserUuid()
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _dlFolder.getUserUuid();
158            }
159    
160            /**
161            * Sets the user uuid of this document library folder.
162            *
163            * @param userUuid the user uuid of this document library folder
164            */
165            public void setUserUuid(java.lang.String userUuid) {
166                    _dlFolder.setUserUuid(userUuid);
167            }
168    
169            /**
170            * Returns the user name of this document library folder.
171            *
172            * @return the user name of this document library folder
173            */
174            public java.lang.String getUserName() {
175                    return _dlFolder.getUserName();
176            }
177    
178            /**
179            * Sets the user name of this document library folder.
180            *
181            * @param userName the user name of this document library folder
182            */
183            public void setUserName(java.lang.String userName) {
184                    _dlFolder.setUserName(userName);
185            }
186    
187            /**
188            * Returns the create date of this document library folder.
189            *
190            * @return the create date of this document library folder
191            */
192            public java.util.Date getCreateDate() {
193                    return _dlFolder.getCreateDate();
194            }
195    
196            /**
197            * Sets the create date of this document library folder.
198            *
199            * @param createDate the create date of this document library folder
200            */
201            public void setCreateDate(java.util.Date createDate) {
202                    _dlFolder.setCreateDate(createDate);
203            }
204    
205            /**
206            * Returns the modified date of this document library folder.
207            *
208            * @return the modified date of this document library folder
209            */
210            public java.util.Date getModifiedDate() {
211                    return _dlFolder.getModifiedDate();
212            }
213    
214            /**
215            * Sets the modified date of this document library folder.
216            *
217            * @param modifiedDate the modified date of this document library folder
218            */
219            public void setModifiedDate(java.util.Date modifiedDate) {
220                    _dlFolder.setModifiedDate(modifiedDate);
221            }
222    
223            /**
224            * Returns the repository ID of this document library folder.
225            *
226            * @return the repository ID of this document library folder
227            */
228            public long getRepositoryId() {
229                    return _dlFolder.getRepositoryId();
230            }
231    
232            /**
233            * Sets the repository ID of this document library folder.
234            *
235            * @param repositoryId the repository ID of this document library folder
236            */
237            public void setRepositoryId(long repositoryId) {
238                    _dlFolder.setRepositoryId(repositoryId);
239            }
240    
241            /**
242            * Returns the mount point of this document library folder.
243            *
244            * @return the mount point of this document library folder
245            */
246            public boolean getMountPoint() {
247                    return _dlFolder.getMountPoint();
248            }
249    
250            /**
251            * Returns <code>true</code> if this document library folder is mount point.
252            *
253            * @return <code>true</code> if this document library folder is mount point; <code>false</code> otherwise
254            */
255            public boolean isMountPoint() {
256                    return _dlFolder.isMountPoint();
257            }
258    
259            /**
260            * Sets whether this document library folder is mount point.
261            *
262            * @param mountPoint the mount point of this document library folder
263            */
264            public void setMountPoint(boolean mountPoint) {
265                    _dlFolder.setMountPoint(mountPoint);
266            }
267    
268            /**
269            * Returns the parent folder ID of this document library folder.
270            *
271            * @return the parent folder ID of this document library folder
272            */
273            public long getParentFolderId() {
274                    return _dlFolder.getParentFolderId();
275            }
276    
277            /**
278            * Sets the parent folder ID of this document library folder.
279            *
280            * @param parentFolderId the parent folder ID of this document library folder
281            */
282            public void setParentFolderId(long parentFolderId) {
283                    _dlFolder.setParentFolderId(parentFolderId);
284            }
285    
286            /**
287            * Returns the name of this document library folder.
288            *
289            * @return the name of this document library folder
290            */
291            public java.lang.String getName() {
292                    return _dlFolder.getName();
293            }
294    
295            /**
296            * Sets the name of this document library folder.
297            *
298            * @param name the name of this document library folder
299            */
300            public void setName(java.lang.String name) {
301                    _dlFolder.setName(name);
302            }
303    
304            /**
305            * Returns the description of this document library folder.
306            *
307            * @return the description of this document library folder
308            */
309            public java.lang.String getDescription() {
310                    return _dlFolder.getDescription();
311            }
312    
313            /**
314            * Sets the description of this document library folder.
315            *
316            * @param description the description of this document library folder
317            */
318            public void setDescription(java.lang.String description) {
319                    _dlFolder.setDescription(description);
320            }
321    
322            /**
323            * Returns the last post date of this document library folder.
324            *
325            * @return the last post date of this document library folder
326            */
327            public java.util.Date getLastPostDate() {
328                    return _dlFolder.getLastPostDate();
329            }
330    
331            /**
332            * Sets the last post date of this document library folder.
333            *
334            * @param lastPostDate the last post date of this document library folder
335            */
336            public void setLastPostDate(java.util.Date lastPostDate) {
337                    _dlFolder.setLastPostDate(lastPostDate);
338            }
339    
340            /**
341            * Returns the default file entry type ID of this document library folder.
342            *
343            * @return the default file entry type ID of this document library folder
344            */
345            public long getDefaultFileEntryTypeId() {
346                    return _dlFolder.getDefaultFileEntryTypeId();
347            }
348    
349            /**
350            * Sets the default file entry type ID of this document library folder.
351            *
352            * @param defaultFileEntryTypeId the default file entry type ID of this document library folder
353            */
354            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
355                    _dlFolder.setDefaultFileEntryTypeId(defaultFileEntryTypeId);
356            }
357    
358            /**
359            * Returns the override file entry types of this document library folder.
360            *
361            * @return the override file entry types of this document library folder
362            */
363            public boolean getOverrideFileEntryTypes() {
364                    return _dlFolder.getOverrideFileEntryTypes();
365            }
366    
367            /**
368            * Returns <code>true</code> if this document library folder is override file entry types.
369            *
370            * @return <code>true</code> if this document library folder is override file entry types; <code>false</code> otherwise
371            */
372            public boolean isOverrideFileEntryTypes() {
373                    return _dlFolder.isOverrideFileEntryTypes();
374            }
375    
376            /**
377            * Sets whether this document library folder is override file entry types.
378            *
379            * @param overrideFileEntryTypes the override file entry types of this document library folder
380            */
381            public void setOverrideFileEntryTypes(boolean overrideFileEntryTypes) {
382                    _dlFolder.setOverrideFileEntryTypes(overrideFileEntryTypes);
383            }
384    
385            public boolean isNew() {
386                    return _dlFolder.isNew();
387            }
388    
389            public void setNew(boolean n) {
390                    _dlFolder.setNew(n);
391            }
392    
393            public boolean isCachedModel() {
394                    return _dlFolder.isCachedModel();
395            }
396    
397            public void setCachedModel(boolean cachedModel) {
398                    _dlFolder.setCachedModel(cachedModel);
399            }
400    
401            public boolean isEscapedModel() {
402                    return _dlFolder.isEscapedModel();
403            }
404    
405            public java.io.Serializable getPrimaryKeyObj() {
406                    return _dlFolder.getPrimaryKeyObj();
407            }
408    
409            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
410                    _dlFolder.setPrimaryKeyObj(primaryKeyObj);
411            }
412    
413            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
414                    return _dlFolder.getExpandoBridge();
415            }
416    
417            public void setExpandoBridgeAttributes(
418                    com.liferay.portal.service.ServiceContext serviceContext) {
419                    _dlFolder.setExpandoBridgeAttributes(serviceContext);
420            }
421    
422            @Override
423            public java.lang.Object clone() {
424                    return new DLFolderWrapper((DLFolder)_dlFolder.clone());
425            }
426    
427            public int compareTo(
428                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
429                    return _dlFolder.compareTo(dlFolder);
430            }
431    
432            @Override
433            public int hashCode() {
434                    return _dlFolder.hashCode();
435            }
436    
437            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFolder> toCacheModel() {
438                    return _dlFolder.toCacheModel();
439            }
440    
441            public com.liferay.portlet.documentlibrary.model.DLFolder toEscapedModel() {
442                    return new DLFolderWrapper(_dlFolder.toEscapedModel());
443            }
444    
445            @Override
446            public java.lang.String toString() {
447                    return _dlFolder.toString();
448            }
449    
450            public java.lang.String toXmlString() {
451                    return _dlFolder.toXmlString();
452            }
453    
454            public void persist()
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    _dlFolder.persist();
457            }
458    
459            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getAncestors()
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    return _dlFolder.getAncestors();
463            }
464    
465            public com.liferay.portlet.documentlibrary.model.DLFolder getParentFolder()
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    return _dlFolder.getParentFolder();
469            }
470    
471            public java.lang.String getPath()
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException {
474                    return _dlFolder.getPath();
475            }
476    
477            public java.lang.String[] getPathArray()
478                    throws com.liferay.portal.kernel.exception.PortalException,
479                            com.liferay.portal.kernel.exception.SystemException {
480                    return _dlFolder.getPathArray();
481            }
482    
483            public boolean hasInheritableLock() {
484                    return _dlFolder.hasInheritableLock();
485            }
486    
487            public boolean hasLock() {
488                    return _dlFolder.hasLock();
489            }
490    
491            public boolean isLocked() {
492                    return _dlFolder.isLocked();
493            }
494    
495            public boolean isRoot() {
496                    return _dlFolder.isRoot();
497            }
498    
499            /**
500             * @deprecated Renamed to {@link #getWrappedModel}
501             */
502            public DLFolder getWrappedDLFolder() {
503                    return _dlFolder;
504            }
505    
506            public DLFolder getWrappedModel() {
507                    return _dlFolder;
508            }
509    
510            public void resetOriginalValues() {
511                    _dlFolder.resetOriginalValues();
512            }
513    
514            private DLFolder _dlFolder;
515    }