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 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("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 fileShortcutId = (Long)attributes.get("fileShortcutId");
076    
077                    if (fileShortcutId != null) {
078                            setFileShortcutId(fileShortcutId);
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                    Long folderId = (Long)attributes.get("folderId");
124    
125                    if (folderId != null) {
126                            setFolderId(folderId);
127                    }
128    
129                    Long toFileEntryId = (Long)attributes.get("toFileEntryId");
130    
131                    if (toFileEntryId != null) {
132                            setToFileEntryId(toFileEntryId);
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 document library file shortcut.
162            *
163            * @return the primary key of this document library file shortcut
164            */
165            public long getPrimaryKey() {
166                    return _dlFileShortcut.getPrimaryKey();
167            }
168    
169            /**
170            * Sets the primary key of this document library file shortcut.
171            *
172            * @param primaryKey the primary key of this document library file shortcut
173            */
174            public void setPrimaryKey(long primaryKey) {
175                    _dlFileShortcut.setPrimaryKey(primaryKey);
176            }
177    
178            /**
179            * Returns the uuid of this document library file shortcut.
180            *
181            * @return the uuid of this document library file shortcut
182            */
183            public java.lang.String getUuid() {
184                    return _dlFileShortcut.getUuid();
185            }
186    
187            /**
188            * Sets the uuid of this document library file shortcut.
189            *
190            * @param uuid the uuid of this document library file shortcut
191            */
192            public void setUuid(java.lang.String uuid) {
193                    _dlFileShortcut.setUuid(uuid);
194            }
195    
196            /**
197            * Returns the file shortcut ID of this document library file shortcut.
198            *
199            * @return the file shortcut ID of this document library file shortcut
200            */
201            public long getFileShortcutId() {
202                    return _dlFileShortcut.getFileShortcutId();
203            }
204    
205            /**
206            * Sets the file shortcut ID of this document library file shortcut.
207            *
208            * @param fileShortcutId the file shortcut ID of this document library file shortcut
209            */
210            public void setFileShortcutId(long fileShortcutId) {
211                    _dlFileShortcut.setFileShortcutId(fileShortcutId);
212            }
213    
214            /**
215            * Returns the group ID of this document library file shortcut.
216            *
217            * @return the group ID of this document library file shortcut
218            */
219            public long getGroupId() {
220                    return _dlFileShortcut.getGroupId();
221            }
222    
223            /**
224            * Sets the group ID of this document library file shortcut.
225            *
226            * @param groupId the group ID of this document library file shortcut
227            */
228            public void setGroupId(long groupId) {
229                    _dlFileShortcut.setGroupId(groupId);
230            }
231    
232            /**
233            * Returns the company ID of this document library file shortcut.
234            *
235            * @return the company ID of this document library file shortcut
236            */
237            public long getCompanyId() {
238                    return _dlFileShortcut.getCompanyId();
239            }
240    
241            /**
242            * Sets the company ID of this document library file shortcut.
243            *
244            * @param companyId the company ID of this document library file shortcut
245            */
246            public void setCompanyId(long companyId) {
247                    _dlFileShortcut.setCompanyId(companyId);
248            }
249    
250            /**
251            * Returns the user ID of this document library file shortcut.
252            *
253            * @return the user ID of this document library file shortcut
254            */
255            public long getUserId() {
256                    return _dlFileShortcut.getUserId();
257            }
258    
259            /**
260            * Sets the user ID of this document library file shortcut.
261            *
262            * @param userId the user ID of this document library file shortcut
263            */
264            public void setUserId(long userId) {
265                    _dlFileShortcut.setUserId(userId);
266            }
267    
268            /**
269            * Returns the user uuid of this document library file shortcut.
270            *
271            * @return the user uuid of this document library file shortcut
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 _dlFileShortcut.getUserUuid();
277            }
278    
279            /**
280            * Sets the user uuid of this document library file shortcut.
281            *
282            * @param userUuid the user uuid of this document library file shortcut
283            */
284            public void setUserUuid(java.lang.String userUuid) {
285                    _dlFileShortcut.setUserUuid(userUuid);
286            }
287    
288            /**
289            * Returns the user name of this document library file shortcut.
290            *
291            * @return the user name of this document library file shortcut
292            */
293            public java.lang.String getUserName() {
294                    return _dlFileShortcut.getUserName();
295            }
296    
297            /**
298            * Sets the user name of this document library file shortcut.
299            *
300            * @param userName the user name of this document library file shortcut
301            */
302            public void setUserName(java.lang.String userName) {
303                    _dlFileShortcut.setUserName(userName);
304            }
305    
306            /**
307            * Returns the create date of this document library file shortcut.
308            *
309            * @return the create date of this document library file shortcut
310            */
311            public java.util.Date getCreateDate() {
312                    return _dlFileShortcut.getCreateDate();
313            }
314    
315            /**
316            * Sets the create date of this document library file shortcut.
317            *
318            * @param createDate the create date of this document library file shortcut
319            */
320            public void setCreateDate(java.util.Date createDate) {
321                    _dlFileShortcut.setCreateDate(createDate);
322            }
323    
324            /**
325            * Returns the modified date of this document library file shortcut.
326            *
327            * @return the modified date of this document library file shortcut
328            */
329            public java.util.Date getModifiedDate() {
330                    return _dlFileShortcut.getModifiedDate();
331            }
332    
333            /**
334            * Sets the modified date of this document library file shortcut.
335            *
336            * @param modifiedDate the modified date of this document library file shortcut
337            */
338            public void setModifiedDate(java.util.Date modifiedDate) {
339                    _dlFileShortcut.setModifiedDate(modifiedDate);
340            }
341    
342            /**
343            * Returns the repository ID of this document library file shortcut.
344            *
345            * @return the repository ID of this document library file shortcut
346            */
347            public long getRepositoryId() {
348                    return _dlFileShortcut.getRepositoryId();
349            }
350    
351            /**
352            * Sets the repository ID of this document library file shortcut.
353            *
354            * @param repositoryId the repository ID of this document library file shortcut
355            */
356            public void setRepositoryId(long repositoryId) {
357                    _dlFileShortcut.setRepositoryId(repositoryId);
358            }
359    
360            /**
361            * Returns the folder ID of this document library file shortcut.
362            *
363            * @return the folder ID of this document library file shortcut
364            */
365            public long getFolderId() {
366                    return _dlFileShortcut.getFolderId();
367            }
368    
369            /**
370            * Sets the folder ID of this document library file shortcut.
371            *
372            * @param folderId the folder ID of this document library file shortcut
373            */
374            public void setFolderId(long folderId) {
375                    _dlFileShortcut.setFolderId(folderId);
376            }
377    
378            /**
379            * Returns the to file entry ID of this document library file shortcut.
380            *
381            * @return the to file entry ID of this document library file shortcut
382            */
383            public long getToFileEntryId() {
384                    return _dlFileShortcut.getToFileEntryId();
385            }
386    
387            /**
388            * Sets the to file entry ID of this document library file shortcut.
389            *
390            * @param toFileEntryId the to file entry ID of this document library file shortcut
391            */
392            public void setToFileEntryId(long toFileEntryId) {
393                    _dlFileShortcut.setToFileEntryId(toFileEntryId);
394            }
395    
396            /**
397            * Returns the status of this document library file shortcut.
398            *
399            * @return the status of this document library file shortcut
400            */
401            public int getStatus() {
402                    return _dlFileShortcut.getStatus();
403            }
404    
405            /**
406            * Sets the status of this document library file shortcut.
407            *
408            * @param status the status of this document library file shortcut
409            */
410            public void setStatus(int status) {
411                    _dlFileShortcut.setStatus(status);
412            }
413    
414            /**
415            * Returns the status by user ID of this document library file shortcut.
416            *
417            * @return the status by user ID of this document library file shortcut
418            */
419            public long getStatusByUserId() {
420                    return _dlFileShortcut.getStatusByUserId();
421            }
422    
423            /**
424            * Sets the status by user ID of this document library file shortcut.
425            *
426            * @param statusByUserId the status by user ID of this document library file shortcut
427            */
428            public void setStatusByUserId(long statusByUserId) {
429                    _dlFileShortcut.setStatusByUserId(statusByUserId);
430            }
431    
432            /**
433            * Returns the status by user uuid of this document library file shortcut.
434            *
435            * @return the status by user uuid of this document library file shortcut
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 _dlFileShortcut.getStatusByUserUuid();
441            }
442    
443            /**
444            * Sets the status by user uuid of this document library file shortcut.
445            *
446            * @param statusByUserUuid the status by user uuid of this document library file shortcut
447            */
448            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
449                    _dlFileShortcut.setStatusByUserUuid(statusByUserUuid);
450            }
451    
452            /**
453            * Returns the status by user name of this document library file shortcut.
454            *
455            * @return the status by user name of this document library file shortcut
456            */
457            public java.lang.String getStatusByUserName() {
458                    return _dlFileShortcut.getStatusByUserName();
459            }
460    
461            /**
462            * Sets the status by user name of this document library file shortcut.
463            *
464            * @param statusByUserName the status by user name of this document library file shortcut
465            */
466            public void setStatusByUserName(java.lang.String statusByUserName) {
467                    _dlFileShortcut.setStatusByUserName(statusByUserName);
468            }
469    
470            /**
471            * Returns the status date of this document library file shortcut.
472            *
473            * @return the status date of this document library file shortcut
474            */
475            public java.util.Date getStatusDate() {
476                    return _dlFileShortcut.getStatusDate();
477            }
478    
479            /**
480            * Sets the status date of this document library file shortcut.
481            *
482            * @param statusDate the status date of this document library file shortcut
483            */
484            public void setStatusDate(java.util.Date statusDate) {
485                    _dlFileShortcut.setStatusDate(statusDate);
486            }
487    
488            /**
489            * @deprecated Renamed to {@link #isApproved()}
490            */
491            public boolean getApproved() {
492                    return _dlFileShortcut.getApproved();
493            }
494    
495            /**
496            * Returns <code>true</code> if this document library file shortcut is approved.
497            *
498            * @return <code>true</code> if this document library file shortcut is approved; <code>false</code> otherwise
499            */
500            public boolean isApproved() {
501                    return _dlFileShortcut.isApproved();
502            }
503    
504            /**
505            * Returns <code>true</code> if this document library file shortcut is denied.
506            *
507            * @return <code>true</code> if this document library file shortcut is denied; <code>false</code> otherwise
508            */
509            public boolean isDenied() {
510                    return _dlFileShortcut.isDenied();
511            }
512    
513            /**
514            * Returns <code>true</code> if this document library file shortcut is a draft.
515            *
516            * @return <code>true</code> if this document library file shortcut is a draft; <code>false</code> otherwise
517            */
518            public boolean isDraft() {
519                    return _dlFileShortcut.isDraft();
520            }
521    
522            /**
523            * Returns <code>true</code> if this document library file shortcut is expired.
524            *
525            * @return <code>true</code> if this document library file shortcut is expired; <code>false</code> otherwise
526            */
527            public boolean isExpired() {
528                    return _dlFileShortcut.isExpired();
529            }
530    
531            /**
532            * Returns <code>true</code> if this document library file shortcut is inactive.
533            *
534            * @return <code>true</code> if this document library file shortcut is inactive; <code>false</code> otherwise
535            */
536            public boolean isInactive() {
537                    return _dlFileShortcut.isInactive();
538            }
539    
540            /**
541            * Returns <code>true</code> if this document library file shortcut is incomplete.
542            *
543            * @return <code>true</code> if this document library file shortcut is incomplete; <code>false</code> otherwise
544            */
545            public boolean isIncomplete() {
546                    return _dlFileShortcut.isIncomplete();
547            }
548    
549            /**
550            * Returns <code>true</code> if this document library file shortcut is pending.
551            *
552            * @return <code>true</code> if this document library file shortcut is pending; <code>false</code> otherwise
553            */
554            public boolean isPending() {
555                    return _dlFileShortcut.isPending();
556            }
557    
558            /**
559            * Returns <code>true</code> if this document library file shortcut is scheduled.
560            *
561            * @return <code>true</code> if this document library file shortcut is scheduled; <code>false</code> otherwise
562            */
563            public boolean isScheduled() {
564                    return _dlFileShortcut.isScheduled();
565            }
566    
567            public boolean isNew() {
568                    return _dlFileShortcut.isNew();
569            }
570    
571            public void setNew(boolean n) {
572                    _dlFileShortcut.setNew(n);
573            }
574    
575            public boolean isCachedModel() {
576                    return _dlFileShortcut.isCachedModel();
577            }
578    
579            public void setCachedModel(boolean cachedModel) {
580                    _dlFileShortcut.setCachedModel(cachedModel);
581            }
582    
583            public boolean isEscapedModel() {
584                    return _dlFileShortcut.isEscapedModel();
585            }
586    
587            public java.io.Serializable getPrimaryKeyObj() {
588                    return _dlFileShortcut.getPrimaryKeyObj();
589            }
590    
591            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
592                    _dlFileShortcut.setPrimaryKeyObj(primaryKeyObj);
593            }
594    
595            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
596                    return _dlFileShortcut.getExpandoBridge();
597            }
598    
599            public void setExpandoBridgeAttributes(
600                    com.liferay.portal.service.ServiceContext serviceContext) {
601                    _dlFileShortcut.setExpandoBridgeAttributes(serviceContext);
602            }
603    
604            @Override
605            public java.lang.Object clone() {
606                    return new DLFileShortcutWrapper((DLFileShortcut)_dlFileShortcut.clone());
607            }
608    
609            public int compareTo(
610                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
611                    return _dlFileShortcut.compareTo(dlFileShortcut);
612            }
613    
614            @Override
615            public int hashCode() {
616                    return _dlFileShortcut.hashCode();
617            }
618    
619            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileShortcut> toCacheModel() {
620                    return _dlFileShortcut.toCacheModel();
621            }
622    
623            public com.liferay.portlet.documentlibrary.model.DLFileShortcut toEscapedModel() {
624                    return new DLFileShortcutWrapper(_dlFileShortcut.toEscapedModel());
625            }
626    
627            @Override
628            public java.lang.String toString() {
629                    return _dlFileShortcut.toString();
630            }
631    
632            public java.lang.String toXmlString() {
633                    return _dlFileShortcut.toXmlString();
634            }
635    
636            public void persist()
637                    throws com.liferay.portal.kernel.exception.SystemException {
638                    _dlFileShortcut.persist();
639            }
640    
641            public com.liferay.portal.kernel.repository.model.Folder getFolder() {
642                    return _dlFileShortcut.getFolder();
643            }
644    
645            public java.lang.String getToTitle() {
646                    return _dlFileShortcut.getToTitle();
647            }
648    
649            /**
650             * @deprecated Renamed to {@link #getWrappedModel}
651             */
652            public DLFileShortcut getWrappedDLFileShortcut() {
653                    return _dlFileShortcut;
654            }
655    
656            public DLFileShortcut getWrappedModel() {
657                    return _dlFileShortcut;
658            }
659    
660            public void resetOriginalValues() {
661                    _dlFileShortcut.resetOriginalValues();
662            }
663    
664            private DLFileShortcut _dlFileShortcut;
665    }