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 DLFolderWrapper implements DLFolder, ModelWrapper<DLFolder> {
033 public DLFolderWrapper(DLFolder dlFolder) {
034 _dlFolder = dlFolder;
035 }
036
037 public Class<?> getModelClass() {
038 return DLFolder.class;
039 }
040
041 public String getModelClassName() {
042 return DLFolder.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("folderId", getFolderId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("repositoryId", getRepositoryId());
057 attributes.put("mountPoint", getMountPoint());
058 attributes.put("parentFolderId", getParentFolderId());
059 attributes.put("name", getName());
060 attributes.put("description", getDescription());
061 attributes.put("lastPostDate", getLastPostDate());
062 attributes.put("defaultFileEntryTypeId", getDefaultFileEntryTypeId());
063 attributes.put("overrideFileEntryTypes", getOverrideFileEntryTypes());
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 folderId = (Long)attributes.get("folderId");
076
077 if (folderId != null) {
078 setFolderId(folderId);
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 Boolean mountPoint = (Boolean)attributes.get("mountPoint");
124
125 if (mountPoint != null) {
126 setMountPoint(mountPoint);
127 }
128
129 Long parentFolderId = (Long)attributes.get("parentFolderId");
130
131 if (parentFolderId != null) {
132 setParentFolderId(parentFolderId);
133 }
134
135 String name = (String)attributes.get("name");
136
137 if (name != null) {
138 setName(name);
139 }
140
141 String description = (String)attributes.get("description");
142
143 if (description != null) {
144 setDescription(description);
145 }
146
147 Date lastPostDate = (Date)attributes.get("lastPostDate");
148
149 if (lastPostDate != null) {
150 setLastPostDate(lastPostDate);
151 }
152
153 Long defaultFileEntryTypeId = (Long)attributes.get(
154 "defaultFileEntryTypeId");
155
156 if (defaultFileEntryTypeId != null) {
157 setDefaultFileEntryTypeId(defaultFileEntryTypeId);
158 }
159
160 Boolean overrideFileEntryTypes = (Boolean)attributes.get(
161 "overrideFileEntryTypes");
162
163 if (overrideFileEntryTypes != null) {
164 setOverrideFileEntryTypes(overrideFileEntryTypes);
165 }
166 }
167
168
173 public long getPrimaryKey() {
174 return _dlFolder.getPrimaryKey();
175 }
176
177
182 public void setPrimaryKey(long primaryKey) {
183 _dlFolder.setPrimaryKey(primaryKey);
184 }
185
186
191 public java.lang.String getUuid() {
192 return _dlFolder.getUuid();
193 }
194
195
200 public void setUuid(java.lang.String uuid) {
201 _dlFolder.setUuid(uuid);
202 }
203
204
209 public long getFolderId() {
210 return _dlFolder.getFolderId();
211 }
212
213
218 public void setFolderId(long folderId) {
219 _dlFolder.setFolderId(folderId);
220 }
221
222
227 public long getGroupId() {
228 return _dlFolder.getGroupId();
229 }
230
231
236 public void setGroupId(long groupId) {
237 _dlFolder.setGroupId(groupId);
238 }
239
240
245 public long getCompanyId() {
246 return _dlFolder.getCompanyId();
247 }
248
249
254 public void setCompanyId(long companyId) {
255 _dlFolder.setCompanyId(companyId);
256 }
257
258
263 public long getUserId() {
264 return _dlFolder.getUserId();
265 }
266
267
272 public void setUserId(long userId) {
273 _dlFolder.setUserId(userId);
274 }
275
276
282 public java.lang.String getUserUuid()
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return _dlFolder.getUserUuid();
285 }
286
287
292 public void setUserUuid(java.lang.String userUuid) {
293 _dlFolder.setUserUuid(userUuid);
294 }
295
296
301 public java.lang.String getUserName() {
302 return _dlFolder.getUserName();
303 }
304
305
310 public void setUserName(java.lang.String userName) {
311 _dlFolder.setUserName(userName);
312 }
313
314
319 public java.util.Date getCreateDate() {
320 return _dlFolder.getCreateDate();
321 }
322
323
328 public void setCreateDate(java.util.Date createDate) {
329 _dlFolder.setCreateDate(createDate);
330 }
331
332
337 public java.util.Date getModifiedDate() {
338 return _dlFolder.getModifiedDate();
339 }
340
341
346 public void setModifiedDate(java.util.Date modifiedDate) {
347 _dlFolder.setModifiedDate(modifiedDate);
348 }
349
350
355 public long getRepositoryId() {
356 return _dlFolder.getRepositoryId();
357 }
358
359
364 public void setRepositoryId(long repositoryId) {
365 _dlFolder.setRepositoryId(repositoryId);
366 }
367
368
373 public boolean getMountPoint() {
374 return _dlFolder.getMountPoint();
375 }
376
377
382 public boolean isMountPoint() {
383 return _dlFolder.isMountPoint();
384 }
385
386
391 public void setMountPoint(boolean mountPoint) {
392 _dlFolder.setMountPoint(mountPoint);
393 }
394
395
400 public long getParentFolderId() {
401 return _dlFolder.getParentFolderId();
402 }
403
404
409 public void setParentFolderId(long parentFolderId) {
410 _dlFolder.setParentFolderId(parentFolderId);
411 }
412
413
418 public java.lang.String getName() {
419 return _dlFolder.getName();
420 }
421
422
427 public void setName(java.lang.String name) {
428 _dlFolder.setName(name);
429 }
430
431
436 public java.lang.String getDescription() {
437 return _dlFolder.getDescription();
438 }
439
440
445 public void setDescription(java.lang.String description) {
446 _dlFolder.setDescription(description);
447 }
448
449
454 public java.util.Date getLastPostDate() {
455 return _dlFolder.getLastPostDate();
456 }
457
458
463 public void setLastPostDate(java.util.Date lastPostDate) {
464 _dlFolder.setLastPostDate(lastPostDate);
465 }
466
467
472 public long getDefaultFileEntryTypeId() {
473 return _dlFolder.getDefaultFileEntryTypeId();
474 }
475
476
481 public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
482 _dlFolder.setDefaultFileEntryTypeId(defaultFileEntryTypeId);
483 }
484
485
490 public boolean getOverrideFileEntryTypes() {
491 return _dlFolder.getOverrideFileEntryTypes();
492 }
493
494
499 public boolean isOverrideFileEntryTypes() {
500 return _dlFolder.isOverrideFileEntryTypes();
501 }
502
503
508 public void setOverrideFileEntryTypes(boolean overrideFileEntryTypes) {
509 _dlFolder.setOverrideFileEntryTypes(overrideFileEntryTypes);
510 }
511
512 public boolean isNew() {
513 return _dlFolder.isNew();
514 }
515
516 public void setNew(boolean n) {
517 _dlFolder.setNew(n);
518 }
519
520 public boolean isCachedModel() {
521 return _dlFolder.isCachedModel();
522 }
523
524 public void setCachedModel(boolean cachedModel) {
525 _dlFolder.setCachedModel(cachedModel);
526 }
527
528 public boolean isEscapedModel() {
529 return _dlFolder.isEscapedModel();
530 }
531
532 public java.io.Serializable getPrimaryKeyObj() {
533 return _dlFolder.getPrimaryKeyObj();
534 }
535
536 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
537 _dlFolder.setPrimaryKeyObj(primaryKeyObj);
538 }
539
540 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
541 return _dlFolder.getExpandoBridge();
542 }
543
544 public void setExpandoBridgeAttributes(
545 com.liferay.portal.service.ServiceContext serviceContext) {
546 _dlFolder.setExpandoBridgeAttributes(serviceContext);
547 }
548
549 @Override
550 public java.lang.Object clone() {
551 return new DLFolderWrapper((DLFolder)_dlFolder.clone());
552 }
553
554 public int compareTo(
555 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
556 return _dlFolder.compareTo(dlFolder);
557 }
558
559 @Override
560 public int hashCode() {
561 return _dlFolder.hashCode();
562 }
563
564 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFolder> toCacheModel() {
565 return _dlFolder.toCacheModel();
566 }
567
568 public com.liferay.portlet.documentlibrary.model.DLFolder toEscapedModel() {
569 return new DLFolderWrapper(_dlFolder.toEscapedModel());
570 }
571
572 @Override
573 public java.lang.String toString() {
574 return _dlFolder.toString();
575 }
576
577 public java.lang.String toXmlString() {
578 return _dlFolder.toXmlString();
579 }
580
581 public void persist()
582 throws com.liferay.portal.kernel.exception.SystemException {
583 _dlFolder.persist();
584 }
585
586 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getAncestors()
587 throws com.liferay.portal.kernel.exception.PortalException,
588 com.liferay.portal.kernel.exception.SystemException {
589 return _dlFolder.getAncestors();
590 }
591
592 public com.liferay.portlet.documentlibrary.model.DLFolder getParentFolder()
593 throws com.liferay.portal.kernel.exception.PortalException,
594 com.liferay.portal.kernel.exception.SystemException {
595 return _dlFolder.getParentFolder();
596 }
597
598 public java.lang.String getPath()
599 throws com.liferay.portal.kernel.exception.PortalException,
600 com.liferay.portal.kernel.exception.SystemException {
601 return _dlFolder.getPath();
602 }
603
604 public java.lang.String[] getPathArray()
605 throws com.liferay.portal.kernel.exception.PortalException,
606 com.liferay.portal.kernel.exception.SystemException {
607 return _dlFolder.getPathArray();
608 }
609
610 public boolean hasInheritableLock() {
611 return _dlFolder.hasInheritableLock();
612 }
613
614 public boolean hasLock() {
615 return _dlFolder.hasLock();
616 }
617
618 public boolean isLocked() {
619 return _dlFolder.isLocked();
620 }
621
622 public boolean isRoot() {
623 return _dlFolder.isRoot();
624 }
625
626
629 public DLFolder getWrappedDLFolder() {
630 return _dlFolder;
631 }
632
633 public DLFolder getWrappedModel() {
634 return _dlFolder;
635 }
636
637 public void resetOriginalValues() {
638 _dlFolder.resetOriginalValues();
639 }
640
641 private DLFolder _dlFolder;
642 }