001
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
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
172 public long getPrimaryKey() {
173 return _dlFileShortcut.getPrimaryKey();
174 }
175
176
181 public void setPrimaryKey(long primaryKey) {
182 _dlFileShortcut.setPrimaryKey(primaryKey);
183 }
184
185
190 public java.lang.String getUuid() {
191 return _dlFileShortcut.getUuid();
192 }
193
194
199 public void setUuid(java.lang.String uuid) {
200 _dlFileShortcut.setUuid(uuid);
201 }
202
203
208 public long getFileShortcutId() {
209 return _dlFileShortcut.getFileShortcutId();
210 }
211
212
217 public void setFileShortcutId(long fileShortcutId) {
218 _dlFileShortcut.setFileShortcutId(fileShortcutId);
219 }
220
221
226 public long getGroupId() {
227 return _dlFileShortcut.getGroupId();
228 }
229
230
235 public void setGroupId(long groupId) {
236 _dlFileShortcut.setGroupId(groupId);
237 }
238
239
244 public long getCompanyId() {
245 return _dlFileShortcut.getCompanyId();
246 }
247
248
253 public void setCompanyId(long companyId) {
254 _dlFileShortcut.setCompanyId(companyId);
255 }
256
257
262 public long getUserId() {
263 return _dlFileShortcut.getUserId();
264 }
265
266
271 public void setUserId(long userId) {
272 _dlFileShortcut.setUserId(userId);
273 }
274
275
281 public java.lang.String getUserUuid()
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return _dlFileShortcut.getUserUuid();
284 }
285
286
291 public void setUserUuid(java.lang.String userUuid) {
292 _dlFileShortcut.setUserUuid(userUuid);
293 }
294
295
300 public java.lang.String getUserName() {
301 return _dlFileShortcut.getUserName();
302 }
303
304
309 public void setUserName(java.lang.String userName) {
310 _dlFileShortcut.setUserName(userName);
311 }
312
313
318 public java.util.Date getCreateDate() {
319 return _dlFileShortcut.getCreateDate();
320 }
321
322
327 public void setCreateDate(java.util.Date createDate) {
328 _dlFileShortcut.setCreateDate(createDate);
329 }
330
331
336 public java.util.Date getModifiedDate() {
337 return _dlFileShortcut.getModifiedDate();
338 }
339
340
345 public void setModifiedDate(java.util.Date modifiedDate) {
346 _dlFileShortcut.setModifiedDate(modifiedDate);
347 }
348
349
354 public long getRepositoryId() {
355 return _dlFileShortcut.getRepositoryId();
356 }
357
358
363 public void setRepositoryId(long repositoryId) {
364 _dlFileShortcut.setRepositoryId(repositoryId);
365 }
366
367
372 public long getFolderId() {
373 return _dlFileShortcut.getFolderId();
374 }
375
376
381 public void setFolderId(long folderId) {
382 _dlFileShortcut.setFolderId(folderId);
383 }
384
385
390 public long getToFileEntryId() {
391 return _dlFileShortcut.getToFileEntryId();
392 }
393
394
399 public void setToFileEntryId(long toFileEntryId) {
400 _dlFileShortcut.setToFileEntryId(toFileEntryId);
401 }
402
403
408 public boolean getActive() {
409 return _dlFileShortcut.getActive();
410 }
411
412
417 public boolean isActive() {
418 return _dlFileShortcut.isActive();
419 }
420
421
426 public void setActive(boolean active) {
427 _dlFileShortcut.setActive(active);
428 }
429
430
435 public int getStatus() {
436 return _dlFileShortcut.getStatus();
437 }
438
439
444 public void setStatus(int status) {
445 _dlFileShortcut.setStatus(status);
446 }
447
448
453 public long getStatusByUserId() {
454 return _dlFileShortcut.getStatusByUserId();
455 }
456
457
462 public void setStatusByUserId(long statusByUserId) {
463 _dlFileShortcut.setStatusByUserId(statusByUserId);
464 }
465
466
472 public java.lang.String getStatusByUserUuid()
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return _dlFileShortcut.getStatusByUserUuid();
475 }
476
477
482 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
483 _dlFileShortcut.setStatusByUserUuid(statusByUserUuid);
484 }
485
486
491 public java.lang.String getStatusByUserName() {
492 return _dlFileShortcut.getStatusByUserName();
493 }
494
495
500 public void setStatusByUserName(java.lang.String statusByUserName) {
501 _dlFileShortcut.setStatusByUserName(statusByUserName);
502 }
503
504
509 public java.util.Date getStatusDate() {
510 return _dlFileShortcut.getStatusDate();
511 }
512
513
518 public void setStatusDate(java.util.Date statusDate) {
519 _dlFileShortcut.setStatusDate(statusDate);
520 }
521
522
525 public boolean getApproved() {
526 return _dlFileShortcut.getApproved();
527 }
528
529
534 public boolean isApproved() {
535 return _dlFileShortcut.isApproved();
536 }
537
538
543 public boolean isDenied() {
544 return _dlFileShortcut.isDenied();
545 }
546
547
552 public boolean isDraft() {
553 return _dlFileShortcut.isDraft();
554 }
555
556
561 public boolean isExpired() {
562 return _dlFileShortcut.isExpired();
563 }
564
565
570 public boolean isInactive() {
571 return _dlFileShortcut.isInactive();
572 }
573
574
579 public boolean isIncomplete() {
580 return _dlFileShortcut.isIncomplete();
581 }
582
583
588 public boolean isInTrash() {
589 return _dlFileShortcut.isInTrash();
590 }
591
592
597 public boolean isPending() {
598 return _dlFileShortcut.isPending();
599 }
600
601
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 public com.liferay.portlet.documentlibrary.model.DLFileShortcut toUnescapedModel() {
671 return new DLFileShortcutWrapper(_dlFileShortcut.toUnescapedModel());
672 }
673
674 @Override
675 public java.lang.String toString() {
676 return _dlFileShortcut.toString();
677 }
678
679 public java.lang.String toXmlString() {
680 return _dlFileShortcut.toXmlString();
681 }
682
683 public void persist()
684 throws com.liferay.portal.kernel.exception.SystemException {
685 _dlFileShortcut.persist();
686 }
687
688 public com.liferay.portal.kernel.repository.model.Folder getFolder() {
689 return _dlFileShortcut.getFolder();
690 }
691
692 public java.lang.String getToTitle() {
693 return _dlFileShortcut.getToTitle();
694 }
695
696 public com.liferay.portlet.documentlibrary.model.DLFolder getTrashContainer() {
697 return _dlFileShortcut.getTrashContainer();
698 }
699
700 public boolean isInTrashContainer() {
701 return _dlFileShortcut.isInTrashContainer();
702 }
703
704
707 public DLFileShortcut getWrappedDLFileShortcut() {
708 return _dlFileShortcut;
709 }
710
711 public DLFileShortcut getWrappedModel() {
712 return _dlFileShortcut;
713 }
714
715 public void resetOriginalValues() {
716 _dlFileShortcut.resetOriginalValues();
717 }
718
719 private DLFileShortcut _dlFileShortcut;
720 }