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