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("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
165 public long getPrimaryKey() {
166 return _dlFileShortcut.getPrimaryKey();
167 }
168
169
174 public void setPrimaryKey(long primaryKey) {
175 _dlFileShortcut.setPrimaryKey(primaryKey);
176 }
177
178
183 public java.lang.String getUuid() {
184 return _dlFileShortcut.getUuid();
185 }
186
187
192 public void setUuid(java.lang.String uuid) {
193 _dlFileShortcut.setUuid(uuid);
194 }
195
196
201 public long getFileShortcutId() {
202 return _dlFileShortcut.getFileShortcutId();
203 }
204
205
210 public void setFileShortcutId(long fileShortcutId) {
211 _dlFileShortcut.setFileShortcutId(fileShortcutId);
212 }
213
214
219 public long getGroupId() {
220 return _dlFileShortcut.getGroupId();
221 }
222
223
228 public void setGroupId(long groupId) {
229 _dlFileShortcut.setGroupId(groupId);
230 }
231
232
237 public long getCompanyId() {
238 return _dlFileShortcut.getCompanyId();
239 }
240
241
246 public void setCompanyId(long companyId) {
247 _dlFileShortcut.setCompanyId(companyId);
248 }
249
250
255 public long getUserId() {
256 return _dlFileShortcut.getUserId();
257 }
258
259
264 public void setUserId(long userId) {
265 _dlFileShortcut.setUserId(userId);
266 }
267
268
274 public java.lang.String getUserUuid()
275 throws com.liferay.portal.kernel.exception.SystemException {
276 return _dlFileShortcut.getUserUuid();
277 }
278
279
284 public void setUserUuid(java.lang.String userUuid) {
285 _dlFileShortcut.setUserUuid(userUuid);
286 }
287
288
293 public java.lang.String getUserName() {
294 return _dlFileShortcut.getUserName();
295 }
296
297
302 public void setUserName(java.lang.String userName) {
303 _dlFileShortcut.setUserName(userName);
304 }
305
306
311 public java.util.Date getCreateDate() {
312 return _dlFileShortcut.getCreateDate();
313 }
314
315
320 public void setCreateDate(java.util.Date createDate) {
321 _dlFileShortcut.setCreateDate(createDate);
322 }
323
324
329 public java.util.Date getModifiedDate() {
330 return _dlFileShortcut.getModifiedDate();
331 }
332
333
338 public void setModifiedDate(java.util.Date modifiedDate) {
339 _dlFileShortcut.setModifiedDate(modifiedDate);
340 }
341
342
347 public long getRepositoryId() {
348 return _dlFileShortcut.getRepositoryId();
349 }
350
351
356 public void setRepositoryId(long repositoryId) {
357 _dlFileShortcut.setRepositoryId(repositoryId);
358 }
359
360
365 public long getFolderId() {
366 return _dlFileShortcut.getFolderId();
367 }
368
369
374 public void setFolderId(long folderId) {
375 _dlFileShortcut.setFolderId(folderId);
376 }
377
378
383 public long getToFileEntryId() {
384 return _dlFileShortcut.getToFileEntryId();
385 }
386
387
392 public void setToFileEntryId(long toFileEntryId) {
393 _dlFileShortcut.setToFileEntryId(toFileEntryId);
394 }
395
396
401 public int getStatus() {
402 return _dlFileShortcut.getStatus();
403 }
404
405
410 public void setStatus(int status) {
411 _dlFileShortcut.setStatus(status);
412 }
413
414
419 public long getStatusByUserId() {
420 return _dlFileShortcut.getStatusByUserId();
421 }
422
423
428 public void setStatusByUserId(long statusByUserId) {
429 _dlFileShortcut.setStatusByUserId(statusByUserId);
430 }
431
432
438 public java.lang.String getStatusByUserUuid()
439 throws com.liferay.portal.kernel.exception.SystemException {
440 return _dlFileShortcut.getStatusByUserUuid();
441 }
442
443
448 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
449 _dlFileShortcut.setStatusByUserUuid(statusByUserUuid);
450 }
451
452
457 public java.lang.String getStatusByUserName() {
458 return _dlFileShortcut.getStatusByUserName();
459 }
460
461
466 public void setStatusByUserName(java.lang.String statusByUserName) {
467 _dlFileShortcut.setStatusByUserName(statusByUserName);
468 }
469
470
475 public java.util.Date getStatusDate() {
476 return _dlFileShortcut.getStatusDate();
477 }
478
479
484 public void setStatusDate(java.util.Date statusDate) {
485 _dlFileShortcut.setStatusDate(statusDate);
486 }
487
488
491 public boolean getApproved() {
492 return _dlFileShortcut.getApproved();
493 }
494
495
500 public boolean isApproved() {
501 return _dlFileShortcut.isApproved();
502 }
503
504
509 public boolean isDenied() {
510 return _dlFileShortcut.isDenied();
511 }
512
513
518 public boolean isDraft() {
519 return _dlFileShortcut.isDraft();
520 }
521
522
527 public boolean isExpired() {
528 return _dlFileShortcut.isExpired();
529 }
530
531
536 public boolean isInactive() {
537 return _dlFileShortcut.isInactive();
538 }
539
540
545 public boolean isIncomplete() {
546 return _dlFileShortcut.isIncomplete();
547 }
548
549
554 public boolean isPending() {
555 return _dlFileShortcut.isPending();
556 }
557
558
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
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 }