001
014
015 package com.liferay.portlet.documentlibrary.model.impl;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.NoSuchModelException;
020 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
021 import com.liferay.portal.kernel.exception.PortalException;
022 import com.liferay.portal.kernel.json.JSON;
023 import com.liferay.portal.kernel.trash.TrashHandler;
024 import com.liferay.portal.kernel.trash.TrashHandlerRegistryUtil;
025 import com.liferay.portal.kernel.util.GetterUtil;
026 import com.liferay.portal.kernel.util.ProxyUtil;
027 import com.liferay.portal.kernel.util.StringBundler;
028 import com.liferay.portal.kernel.util.StringPool;
029 import com.liferay.portal.kernel.util.Validator;
030 import com.liferay.portal.kernel.workflow.WorkflowConstants;
031 import com.liferay.portal.model.CacheModel;
032 import com.liferay.portal.model.ContainerModel;
033 import com.liferay.portal.model.TrashedModel;
034 import com.liferay.portal.model.User;
035 import com.liferay.portal.model.impl.BaseModelImpl;
036 import com.liferay.portal.service.ServiceContext;
037 import com.liferay.portal.service.UserLocalServiceUtil;
038 import com.liferay.portal.util.PortalUtil;
039
040 import com.liferay.portlet.documentlibrary.model.DLFolder;
041 import com.liferay.portlet.documentlibrary.model.DLFolderModel;
042 import com.liferay.portlet.documentlibrary.model.DLFolderSoap;
043 import com.liferay.portlet.expando.model.ExpandoBridge;
044 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
045 import com.liferay.portlet.exportimport.lar.StagedModelType;
046 import com.liferay.portlet.trash.model.TrashEntry;
047 import com.liferay.portlet.trash.service.TrashEntryLocalServiceUtil;
048
049 import java.io.Serializable;
050
051 import java.sql.Types;
052
053 import java.util.ArrayList;
054 import java.util.Date;
055 import java.util.HashMap;
056 import java.util.List;
057 import java.util.Map;
058
059
072 @JSON(strict = true)
073 @ProviderType
074 public class DLFolderModelImpl extends BaseModelImpl<DLFolder>
075 implements DLFolderModel {
076
081 public static final String TABLE_NAME = "DLFolder";
082 public static final Object[][] TABLE_COLUMNS = {
083 { "uuid_", Types.VARCHAR },
084 { "folderId", Types.BIGINT },
085 { "groupId", Types.BIGINT },
086 { "companyId", Types.BIGINT },
087 { "userId", Types.BIGINT },
088 { "userName", Types.VARCHAR },
089 { "createDate", Types.TIMESTAMP },
090 { "modifiedDate", Types.TIMESTAMP },
091 { "repositoryId", Types.BIGINT },
092 { "mountPoint", Types.BOOLEAN },
093 { "parentFolderId", Types.BIGINT },
094 { "treePath", Types.VARCHAR },
095 { "name", Types.VARCHAR },
096 { "description", Types.VARCHAR },
097 { "lastPostDate", Types.TIMESTAMP },
098 { "defaultFileEntryTypeId", Types.BIGINT },
099 { "hidden_", Types.BOOLEAN },
100 { "restrictionType", Types.INTEGER },
101 { "lastPublishDate", Types.TIMESTAMP },
102 { "status", Types.INTEGER },
103 { "statusByUserId", Types.BIGINT },
104 { "statusByUserName", Types.VARCHAR },
105 { "statusDate", Types.TIMESTAMP }
106 };
107 public static final Map<String, Integer> TABLE_COLUMNS_MAP = new HashMap<String, Integer>();
108
109 static {
110 TABLE_COLUMNS_MAP.put("uuid_", Types.VARCHAR);
111 TABLE_COLUMNS_MAP.put("folderId", Types.BIGINT);
112 TABLE_COLUMNS_MAP.put("groupId", Types.BIGINT);
113 TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
114 TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
115 TABLE_COLUMNS_MAP.put("userName", Types.VARCHAR);
116 TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
117 TABLE_COLUMNS_MAP.put("modifiedDate", Types.TIMESTAMP);
118 TABLE_COLUMNS_MAP.put("repositoryId", Types.BIGINT);
119 TABLE_COLUMNS_MAP.put("mountPoint", Types.BOOLEAN);
120 TABLE_COLUMNS_MAP.put("parentFolderId", Types.BIGINT);
121 TABLE_COLUMNS_MAP.put("treePath", Types.VARCHAR);
122 TABLE_COLUMNS_MAP.put("name", Types.VARCHAR);
123 TABLE_COLUMNS_MAP.put("description", Types.VARCHAR);
124 TABLE_COLUMNS_MAP.put("lastPostDate", Types.TIMESTAMP);
125 TABLE_COLUMNS_MAP.put("defaultFileEntryTypeId", Types.BIGINT);
126 TABLE_COLUMNS_MAP.put("hidden_", Types.BOOLEAN);
127 TABLE_COLUMNS_MAP.put("restrictionType", Types.INTEGER);
128 TABLE_COLUMNS_MAP.put("lastPublishDate", Types.TIMESTAMP);
129 TABLE_COLUMNS_MAP.put("status", Types.INTEGER);
130 TABLE_COLUMNS_MAP.put("statusByUserId", Types.BIGINT);
131 TABLE_COLUMNS_MAP.put("statusByUserName", Types.VARCHAR);
132 TABLE_COLUMNS_MAP.put("statusDate", Types.TIMESTAMP);
133 }
134
135 public static final String TABLE_SQL_CREATE = "create table DLFolder (uuid_ VARCHAR(75) null,folderId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,repositoryId LONG,mountPoint BOOLEAN,parentFolderId LONG,treePath STRING null,name VARCHAR(255) null,description STRING null,lastPostDate DATE null,defaultFileEntryTypeId LONG,hidden_ BOOLEAN,restrictionType INTEGER,lastPublishDate DATE null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
136 public static final String TABLE_SQL_DROP = "drop table DLFolder";
137 public static final String ORDER_BY_JPQL = " ORDER BY dlFolder.parentFolderId ASC, dlFolder.name ASC";
138 public static final String ORDER_BY_SQL = " ORDER BY DLFolder.parentFolderId ASC, DLFolder.name ASC";
139 public static final String DATA_SOURCE = "liferayDataSource";
140 public static final String SESSION_FACTORY = "liferaySessionFactory";
141 public static final String TX_MANAGER = "liferayTransactionManager";
142 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
143 "value.object.entity.cache.enabled.com.liferay.portlet.documentlibrary.model.DLFolder"),
144 true);
145 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
146 "value.object.finder.cache.enabled.com.liferay.portlet.documentlibrary.model.DLFolder"),
147 true);
148 public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
149 "value.object.column.bitmask.enabled.com.liferay.portlet.documentlibrary.model.DLFolder"),
150 true);
151 public static final long COMPANYID_COLUMN_BITMASK = 1L;
152 public static final long FOLDERID_COLUMN_BITMASK = 2L;
153 public static final long GROUPID_COLUMN_BITMASK = 4L;
154 public static final long HIDDEN_COLUMN_BITMASK = 8L;
155 public static final long MOUNTPOINT_COLUMN_BITMASK = 16L;
156 public static final long NAME_COLUMN_BITMASK = 32L;
157 public static final long PARENTFOLDERID_COLUMN_BITMASK = 64L;
158 public static final long REPOSITORYID_COLUMN_BITMASK = 128L;
159 public static final long STATUS_COLUMN_BITMASK = 256L;
160 public static final long TREEPATH_COLUMN_BITMASK = 512L;
161 public static final long UUID_COLUMN_BITMASK = 1024L;
162
163
169 public static DLFolder toModel(DLFolderSoap soapModel) {
170 if (soapModel == null) {
171 return null;
172 }
173
174 DLFolder model = new DLFolderImpl();
175
176 model.setUuid(soapModel.getUuid());
177 model.setFolderId(soapModel.getFolderId());
178 model.setGroupId(soapModel.getGroupId());
179 model.setCompanyId(soapModel.getCompanyId());
180 model.setUserId(soapModel.getUserId());
181 model.setUserName(soapModel.getUserName());
182 model.setCreateDate(soapModel.getCreateDate());
183 model.setModifiedDate(soapModel.getModifiedDate());
184 model.setRepositoryId(soapModel.getRepositoryId());
185 model.setMountPoint(soapModel.getMountPoint());
186 model.setParentFolderId(soapModel.getParentFolderId());
187 model.setTreePath(soapModel.getTreePath());
188 model.setName(soapModel.getName());
189 model.setDescription(soapModel.getDescription());
190 model.setLastPostDate(soapModel.getLastPostDate());
191 model.setDefaultFileEntryTypeId(soapModel.getDefaultFileEntryTypeId());
192 model.setHidden(soapModel.getHidden());
193 model.setRestrictionType(soapModel.getRestrictionType());
194 model.setLastPublishDate(soapModel.getLastPublishDate());
195 model.setStatus(soapModel.getStatus());
196 model.setStatusByUserId(soapModel.getStatusByUserId());
197 model.setStatusByUserName(soapModel.getStatusByUserName());
198 model.setStatusDate(soapModel.getStatusDate());
199
200 return model;
201 }
202
203
209 public static List<DLFolder> toModels(DLFolderSoap[] soapModels) {
210 if (soapModels == null) {
211 return null;
212 }
213
214 List<DLFolder> models = new ArrayList<DLFolder>(soapModels.length);
215
216 for (DLFolderSoap soapModel : soapModels) {
217 models.add(toModel(soapModel));
218 }
219
220 return models;
221 }
222
223 public static final String MAPPING_TABLE_DLFILEENTRYTYPES_DLFOLDERS_NAME = "DLFileEntryTypes_DLFolders";
224 public static final Object[][] MAPPING_TABLE_DLFILEENTRYTYPES_DLFOLDERS_COLUMNS =
225 {
226 { "companyId", Types.BIGINT },
227 { "fileEntryTypeId", Types.BIGINT },
228 { "folderId", Types.BIGINT }
229 };
230 public static final String MAPPING_TABLE_DLFILEENTRYTYPES_DLFOLDERS_SQL_CREATE =
231 "create table DLFileEntryTypes_DLFolders (companyId LONG not null,fileEntryTypeId LONG not null,folderId LONG not null,primary key (companyId, fileEntryTypeId, folderId))";
232 public static final boolean FINDER_CACHE_ENABLED_DLFILEENTRYTYPES_DLFOLDERS = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
233 "value.object.finder.cache.enabled.DLFileEntryTypes_DLFolders"),
234 true);
235 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
236 "lock.expiration.time.com.liferay.portlet.documentlibrary.model.DLFolder"));
237
238 public DLFolderModelImpl() {
239 }
240
241 @Override
242 public long getPrimaryKey() {
243 return _folderId;
244 }
245
246 @Override
247 public void setPrimaryKey(long primaryKey) {
248 setFolderId(primaryKey);
249 }
250
251 @Override
252 public Serializable getPrimaryKeyObj() {
253 return _folderId;
254 }
255
256 @Override
257 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
258 setPrimaryKey(((Long)primaryKeyObj).longValue());
259 }
260
261 @Override
262 public Class<?> getModelClass() {
263 return DLFolder.class;
264 }
265
266 @Override
267 public String getModelClassName() {
268 return DLFolder.class.getName();
269 }
270
271 @Override
272 public Map<String, Object> getModelAttributes() {
273 Map<String, Object> attributes = new HashMap<String, Object>();
274
275 attributes.put("uuid", getUuid());
276 attributes.put("folderId", getFolderId());
277 attributes.put("groupId", getGroupId());
278 attributes.put("companyId", getCompanyId());
279 attributes.put("userId", getUserId());
280 attributes.put("userName", getUserName());
281 attributes.put("createDate", getCreateDate());
282 attributes.put("modifiedDate", getModifiedDate());
283 attributes.put("repositoryId", getRepositoryId());
284 attributes.put("mountPoint", getMountPoint());
285 attributes.put("parentFolderId", getParentFolderId());
286 attributes.put("treePath", getTreePath());
287 attributes.put("name", getName());
288 attributes.put("description", getDescription());
289 attributes.put("lastPostDate", getLastPostDate());
290 attributes.put("defaultFileEntryTypeId", getDefaultFileEntryTypeId());
291 attributes.put("hidden", getHidden());
292 attributes.put("restrictionType", getRestrictionType());
293 attributes.put("lastPublishDate", getLastPublishDate());
294 attributes.put("status", getStatus());
295 attributes.put("statusByUserId", getStatusByUserId());
296 attributes.put("statusByUserName", getStatusByUserName());
297 attributes.put("statusDate", getStatusDate());
298
299 attributes.put("entityCacheEnabled", isEntityCacheEnabled());
300 attributes.put("finderCacheEnabled", isFinderCacheEnabled());
301
302 return attributes;
303 }
304
305 @Override
306 public void setModelAttributes(Map<String, Object> attributes) {
307 String uuid = (String)attributes.get("uuid");
308
309 if (uuid != null) {
310 setUuid(uuid);
311 }
312
313 Long folderId = (Long)attributes.get("folderId");
314
315 if (folderId != null) {
316 setFolderId(folderId);
317 }
318
319 Long groupId = (Long)attributes.get("groupId");
320
321 if (groupId != null) {
322 setGroupId(groupId);
323 }
324
325 Long companyId = (Long)attributes.get("companyId");
326
327 if (companyId != null) {
328 setCompanyId(companyId);
329 }
330
331 Long userId = (Long)attributes.get("userId");
332
333 if (userId != null) {
334 setUserId(userId);
335 }
336
337 String userName = (String)attributes.get("userName");
338
339 if (userName != null) {
340 setUserName(userName);
341 }
342
343 Date createDate = (Date)attributes.get("createDate");
344
345 if (createDate != null) {
346 setCreateDate(createDate);
347 }
348
349 Date modifiedDate = (Date)attributes.get("modifiedDate");
350
351 if (modifiedDate != null) {
352 setModifiedDate(modifiedDate);
353 }
354
355 Long repositoryId = (Long)attributes.get("repositoryId");
356
357 if (repositoryId != null) {
358 setRepositoryId(repositoryId);
359 }
360
361 Boolean mountPoint = (Boolean)attributes.get("mountPoint");
362
363 if (mountPoint != null) {
364 setMountPoint(mountPoint);
365 }
366
367 Long parentFolderId = (Long)attributes.get("parentFolderId");
368
369 if (parentFolderId != null) {
370 setParentFolderId(parentFolderId);
371 }
372
373 String treePath = (String)attributes.get("treePath");
374
375 if (treePath != null) {
376 setTreePath(treePath);
377 }
378
379 String name = (String)attributes.get("name");
380
381 if (name != null) {
382 setName(name);
383 }
384
385 String description = (String)attributes.get("description");
386
387 if (description != null) {
388 setDescription(description);
389 }
390
391 Date lastPostDate = (Date)attributes.get("lastPostDate");
392
393 if (lastPostDate != null) {
394 setLastPostDate(lastPostDate);
395 }
396
397 Long defaultFileEntryTypeId = (Long)attributes.get(
398 "defaultFileEntryTypeId");
399
400 if (defaultFileEntryTypeId != null) {
401 setDefaultFileEntryTypeId(defaultFileEntryTypeId);
402 }
403
404 Boolean hidden = (Boolean)attributes.get("hidden");
405
406 if (hidden != null) {
407 setHidden(hidden);
408 }
409
410 Integer restrictionType = (Integer)attributes.get("restrictionType");
411
412 if (restrictionType != null) {
413 setRestrictionType(restrictionType);
414 }
415
416 Date lastPublishDate = (Date)attributes.get("lastPublishDate");
417
418 if (lastPublishDate != null) {
419 setLastPublishDate(lastPublishDate);
420 }
421
422 Integer status = (Integer)attributes.get("status");
423
424 if (status != null) {
425 setStatus(status);
426 }
427
428 Long statusByUserId = (Long)attributes.get("statusByUserId");
429
430 if (statusByUserId != null) {
431 setStatusByUserId(statusByUserId);
432 }
433
434 String statusByUserName = (String)attributes.get("statusByUserName");
435
436 if (statusByUserName != null) {
437 setStatusByUserName(statusByUserName);
438 }
439
440 Date statusDate = (Date)attributes.get("statusDate");
441
442 if (statusDate != null) {
443 setStatusDate(statusDate);
444 }
445 }
446
447 @JSON
448 @Override
449 public String getUuid() {
450 if (_uuid == null) {
451 return StringPool.BLANK;
452 }
453 else {
454 return _uuid;
455 }
456 }
457
458 @Override
459 public void setUuid(String uuid) {
460 if (_originalUuid == null) {
461 _originalUuid = _uuid;
462 }
463
464 _uuid = uuid;
465 }
466
467 public String getOriginalUuid() {
468 return GetterUtil.getString(_originalUuid);
469 }
470
471 @JSON
472 @Override
473 public long getFolderId() {
474 return _folderId;
475 }
476
477 @Override
478 public void setFolderId(long folderId) {
479 _columnBitmask |= FOLDERID_COLUMN_BITMASK;
480
481 if (!_setOriginalFolderId) {
482 _setOriginalFolderId = true;
483
484 _originalFolderId = _folderId;
485 }
486
487 _folderId = folderId;
488 }
489
490 public long getOriginalFolderId() {
491 return _originalFolderId;
492 }
493
494 @JSON
495 @Override
496 public long getGroupId() {
497 return _groupId;
498 }
499
500 @Override
501 public void setGroupId(long groupId) {
502 _columnBitmask |= GROUPID_COLUMN_BITMASK;
503
504 if (!_setOriginalGroupId) {
505 _setOriginalGroupId = true;
506
507 _originalGroupId = _groupId;
508 }
509
510 _groupId = groupId;
511 }
512
513 public long getOriginalGroupId() {
514 return _originalGroupId;
515 }
516
517 @JSON
518 @Override
519 public long getCompanyId() {
520 return _companyId;
521 }
522
523 @Override
524 public void setCompanyId(long companyId) {
525 _columnBitmask |= COMPANYID_COLUMN_BITMASK;
526
527 if (!_setOriginalCompanyId) {
528 _setOriginalCompanyId = true;
529
530 _originalCompanyId = _companyId;
531 }
532
533 _companyId = companyId;
534 }
535
536 public long getOriginalCompanyId() {
537 return _originalCompanyId;
538 }
539
540 @JSON
541 @Override
542 public long getUserId() {
543 return _userId;
544 }
545
546 @Override
547 public void setUserId(long userId) {
548 _userId = userId;
549 }
550
551 @Override
552 public String getUserUuid() {
553 try {
554 User user = UserLocalServiceUtil.getUserById(getUserId());
555
556 return user.getUuid();
557 }
558 catch (PortalException pe) {
559 return StringPool.BLANK;
560 }
561 }
562
563 @Override
564 public void setUserUuid(String userUuid) {
565 }
566
567 @JSON
568 @Override
569 public String getUserName() {
570 if (_userName == null) {
571 return StringPool.BLANK;
572 }
573 else {
574 return _userName;
575 }
576 }
577
578 @Override
579 public void setUserName(String userName) {
580 _userName = userName;
581 }
582
583 @JSON
584 @Override
585 public Date getCreateDate() {
586 return _createDate;
587 }
588
589 @Override
590 public void setCreateDate(Date createDate) {
591 _createDate = createDate;
592 }
593
594 @JSON
595 @Override
596 public Date getModifiedDate() {
597 return _modifiedDate;
598 }
599
600 public boolean hasSetModifiedDate() {
601 return _setModifiedDate;
602 }
603
604 @Override
605 public void setModifiedDate(Date modifiedDate) {
606 _setModifiedDate = true;
607
608 _modifiedDate = modifiedDate;
609 }
610
611 @JSON
612 @Override
613 public long getRepositoryId() {
614 return _repositoryId;
615 }
616
617 @Override
618 public void setRepositoryId(long repositoryId) {
619 _columnBitmask |= REPOSITORYID_COLUMN_BITMASK;
620
621 if (!_setOriginalRepositoryId) {
622 _setOriginalRepositoryId = true;
623
624 _originalRepositoryId = _repositoryId;
625 }
626
627 _repositoryId = repositoryId;
628 }
629
630 public long getOriginalRepositoryId() {
631 return _originalRepositoryId;
632 }
633
634 @JSON
635 @Override
636 public boolean getMountPoint() {
637 return _mountPoint;
638 }
639
640 @Override
641 public boolean isMountPoint() {
642 return _mountPoint;
643 }
644
645 @Override
646 public void setMountPoint(boolean mountPoint) {
647 _columnBitmask |= MOUNTPOINT_COLUMN_BITMASK;
648
649 if (!_setOriginalMountPoint) {
650 _setOriginalMountPoint = true;
651
652 _originalMountPoint = _mountPoint;
653 }
654
655 _mountPoint = mountPoint;
656 }
657
658 public boolean getOriginalMountPoint() {
659 return _originalMountPoint;
660 }
661
662 @JSON
663 @Override
664 public long getParentFolderId() {
665 return _parentFolderId;
666 }
667
668 @Override
669 public void setParentFolderId(long parentFolderId) {
670 _columnBitmask = -1L;
671
672 if (!_setOriginalParentFolderId) {
673 _setOriginalParentFolderId = true;
674
675 _originalParentFolderId = _parentFolderId;
676 }
677
678 _parentFolderId = parentFolderId;
679 }
680
681 public long getOriginalParentFolderId() {
682 return _originalParentFolderId;
683 }
684
685 @JSON
686 @Override
687 public String getTreePath() {
688 if (_treePath == null) {
689 return StringPool.BLANK;
690 }
691 else {
692 return _treePath;
693 }
694 }
695
696 @Override
697 public void setTreePath(String treePath) {
698 _columnBitmask |= TREEPATH_COLUMN_BITMASK;
699
700 if (_originalTreePath == null) {
701 _originalTreePath = _treePath;
702 }
703
704 _treePath = treePath;
705 }
706
707 public String getOriginalTreePath() {
708 return GetterUtil.getString(_originalTreePath);
709 }
710
711 @JSON
712 @Override
713 public String getName() {
714 if (_name == null) {
715 return StringPool.BLANK;
716 }
717 else {
718 return _name;
719 }
720 }
721
722 @Override
723 public void setName(String name) {
724 _columnBitmask = -1L;
725
726 if (_originalName == null) {
727 _originalName = _name;
728 }
729
730 _name = name;
731 }
732
733 public String getOriginalName() {
734 return GetterUtil.getString(_originalName);
735 }
736
737 @JSON
738 @Override
739 public String getDescription() {
740 if (_description == null) {
741 return StringPool.BLANK;
742 }
743 else {
744 return _description;
745 }
746 }
747
748 @Override
749 public void setDescription(String description) {
750 _description = description;
751 }
752
753 @JSON
754 @Override
755 public Date getLastPostDate() {
756 return _lastPostDate;
757 }
758
759 @Override
760 public void setLastPostDate(Date lastPostDate) {
761 _lastPostDate = lastPostDate;
762 }
763
764 @JSON
765 @Override
766 public long getDefaultFileEntryTypeId() {
767 return _defaultFileEntryTypeId;
768 }
769
770 @Override
771 public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
772 _defaultFileEntryTypeId = defaultFileEntryTypeId;
773 }
774
775 @JSON
776 @Override
777 public boolean getHidden() {
778 return _hidden;
779 }
780
781 @Override
782 public boolean isHidden() {
783 return _hidden;
784 }
785
786 @Override
787 public void setHidden(boolean hidden) {
788 _columnBitmask |= HIDDEN_COLUMN_BITMASK;
789
790 if (!_setOriginalHidden) {
791 _setOriginalHidden = true;
792
793 _originalHidden = _hidden;
794 }
795
796 _hidden = hidden;
797 }
798
799 public boolean getOriginalHidden() {
800 return _originalHidden;
801 }
802
803 @JSON
804 @Override
805 public int getRestrictionType() {
806 return _restrictionType;
807 }
808
809 @Override
810 public void setRestrictionType(int restrictionType) {
811 _restrictionType = restrictionType;
812 }
813
814 @JSON
815 @Override
816 public Date getLastPublishDate() {
817 return _lastPublishDate;
818 }
819
820 @Override
821 public void setLastPublishDate(Date lastPublishDate) {
822 _lastPublishDate = lastPublishDate;
823 }
824
825 @JSON
826 @Override
827 public int getStatus() {
828 return _status;
829 }
830
831 @Override
832 public void setStatus(int status) {
833 _columnBitmask |= STATUS_COLUMN_BITMASK;
834
835 if (!_setOriginalStatus) {
836 _setOriginalStatus = true;
837
838 _originalStatus = _status;
839 }
840
841 _status = status;
842 }
843
844 public int getOriginalStatus() {
845 return _originalStatus;
846 }
847
848 @JSON
849 @Override
850 public long getStatusByUserId() {
851 return _statusByUserId;
852 }
853
854 @Override
855 public void setStatusByUserId(long statusByUserId) {
856 _statusByUserId = statusByUserId;
857 }
858
859 @Override
860 public String getStatusByUserUuid() {
861 try {
862 User user = UserLocalServiceUtil.getUserById(getStatusByUserId());
863
864 return user.getUuid();
865 }
866 catch (PortalException pe) {
867 return StringPool.BLANK;
868 }
869 }
870
871 @Override
872 public void setStatusByUserUuid(String statusByUserUuid) {
873 }
874
875 @JSON
876 @Override
877 public String getStatusByUserName() {
878 if (_statusByUserName == null) {
879 return StringPool.BLANK;
880 }
881 else {
882 return _statusByUserName;
883 }
884 }
885
886 @Override
887 public void setStatusByUserName(String statusByUserName) {
888 _statusByUserName = statusByUserName;
889 }
890
891 @JSON
892 @Override
893 public Date getStatusDate() {
894 return _statusDate;
895 }
896
897 @Override
898 public void setStatusDate(Date statusDate) {
899 _statusDate = statusDate;
900 }
901
902 @Override
903 public long getContainerModelId() {
904 return getFolderId();
905 }
906
907 @Override
908 public void setContainerModelId(long containerModelId) {
909 _folderId = containerModelId;
910 }
911
912 @Override
913 public long getParentContainerModelId() {
914 return getParentFolderId();
915 }
916
917 @Override
918 public void setParentContainerModelId(long parentContainerModelId) {
919 _parentFolderId = parentContainerModelId;
920 }
921
922 @Override
923 public String getContainerModelName() {
924 return String.valueOf(getName());
925 }
926
927 @Override
928 public StagedModelType getStagedModelType() {
929 return new StagedModelType(PortalUtil.getClassNameId(
930 DLFolder.class.getName()));
931 }
932
933 @Override
934 public TrashEntry getTrashEntry() throws PortalException {
935 if (!isInTrash()) {
936 return null;
937 }
938
939 TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
940 getTrashEntryClassPK());
941
942 if (trashEntry != null) {
943 return trashEntry;
944 }
945
946 TrashHandler trashHandler = getTrashHandler();
947
948 if (!Validator.isNull(trashHandler.getContainerModelClassName(
949 getPrimaryKey()))) {
950 ContainerModel containerModel = null;
951
952 try {
953 containerModel = trashHandler.getParentContainerModel(this);
954 }
955 catch (NoSuchModelException nsme) {
956 return null;
957 }
958
959 while (containerModel != null) {
960 if (containerModel instanceof TrashedModel) {
961 TrashedModel trashedModel = (TrashedModel)containerModel;
962
963 return trashedModel.getTrashEntry();
964 }
965
966 trashHandler = TrashHandlerRegistryUtil.getTrashHandler(trashHandler.getContainerModelClassName(
967 containerModel.getContainerModelId()));
968
969 if (trashHandler == null) {
970 return null;
971 }
972
973 containerModel = trashHandler.getContainerModel(containerModel.getParentContainerModelId());
974 }
975 }
976
977 return null;
978 }
979
980 @Override
981 public long getTrashEntryClassPK() {
982 return getPrimaryKey();
983 }
984
985 @Override
986 public TrashHandler getTrashHandler() {
987 return TrashHandlerRegistryUtil.getTrashHandler(getModelClassName());
988 }
989
990 @Override
991 public boolean isInTrash() {
992 if (getStatus() == WorkflowConstants.STATUS_IN_TRASH) {
993 return true;
994 }
995 else {
996 return false;
997 }
998 }
999
1000 @Override
1001 public boolean isInTrashContainer() {
1002 TrashHandler trashHandler = getTrashHandler();
1003
1004 if ((trashHandler == null) ||
1005 Validator.isNull(trashHandler.getContainerModelClassName(
1006 getPrimaryKey()))) {
1007 return false;
1008 }
1009
1010 try {
1011 ContainerModel containerModel = trashHandler.getParentContainerModel(this);
1012
1013 if (containerModel == null) {
1014 return false;
1015 }
1016
1017 if (containerModel instanceof TrashedModel) {
1018 return ((TrashedModel)containerModel).isInTrash();
1019 }
1020 }
1021 catch (Exception e) {
1022 }
1023
1024 return false;
1025 }
1026
1027 @Override
1028 public boolean isInTrashExplicitly() {
1029 if (!isInTrash()) {
1030 return false;
1031 }
1032
1033 TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
1034 getTrashEntryClassPK());
1035
1036 if (trashEntry != null) {
1037 return true;
1038 }
1039
1040 return false;
1041 }
1042
1043 @Override
1044 public boolean isInTrashImplicitly() {
1045 if (!isInTrash()) {
1046 return false;
1047 }
1048
1049 TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
1050 getTrashEntryClassPK());
1051
1052 if (trashEntry != null) {
1053 return false;
1054 }
1055
1056 return true;
1057 }
1058
1059
1062 @Deprecated
1063 @Override
1064 public boolean getApproved() {
1065 return isApproved();
1066 }
1067
1068 @Override
1069 public boolean isApproved() {
1070 if (getStatus() == WorkflowConstants.STATUS_APPROVED) {
1071 return true;
1072 }
1073 else {
1074 return false;
1075 }
1076 }
1077
1078 @Override
1079 public boolean isDenied() {
1080 if (getStatus() == WorkflowConstants.STATUS_DENIED) {
1081 return true;
1082 }
1083 else {
1084 return false;
1085 }
1086 }
1087
1088 @Override
1089 public boolean isDraft() {
1090 if (getStatus() == WorkflowConstants.STATUS_DRAFT) {
1091 return true;
1092 }
1093 else {
1094 return false;
1095 }
1096 }
1097
1098 @Override
1099 public boolean isExpired() {
1100 if (getStatus() == WorkflowConstants.STATUS_EXPIRED) {
1101 return true;
1102 }
1103 else {
1104 return false;
1105 }
1106 }
1107
1108 @Override
1109 public boolean isInactive() {
1110 if (getStatus() == WorkflowConstants.STATUS_INACTIVE) {
1111 return true;
1112 }
1113 else {
1114 return false;
1115 }
1116 }
1117
1118 @Override
1119 public boolean isIncomplete() {
1120 if (getStatus() == WorkflowConstants.STATUS_INCOMPLETE) {
1121 return true;
1122 }
1123 else {
1124 return false;
1125 }
1126 }
1127
1128 @Override
1129 public boolean isPending() {
1130 if (getStatus() == WorkflowConstants.STATUS_PENDING) {
1131 return true;
1132 }
1133 else {
1134 return false;
1135 }
1136 }
1137
1138 @Override
1139 public boolean isScheduled() {
1140 if (getStatus() == WorkflowConstants.STATUS_SCHEDULED) {
1141 return true;
1142 }
1143 else {
1144 return false;
1145 }
1146 }
1147
1148 public long getColumnBitmask() {
1149 return _columnBitmask;
1150 }
1151
1152 @Override
1153 public ExpandoBridge getExpandoBridge() {
1154 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1155 DLFolder.class.getName(), getPrimaryKey());
1156 }
1157
1158 @Override
1159 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1160 ExpandoBridge expandoBridge = getExpandoBridge();
1161
1162 expandoBridge.setAttributes(serviceContext);
1163 }
1164
1165 @Override
1166 public DLFolder toEscapedModel() {
1167 if (_escapedModel == null) {
1168 _escapedModel = (DLFolder)ProxyUtil.newProxyInstance(_classLoader,
1169 _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
1170 }
1171
1172 return _escapedModel;
1173 }
1174
1175 @Override
1176 public Object clone() {
1177 DLFolderImpl dlFolderImpl = new DLFolderImpl();
1178
1179 dlFolderImpl.setUuid(getUuid());
1180 dlFolderImpl.setFolderId(getFolderId());
1181 dlFolderImpl.setGroupId(getGroupId());
1182 dlFolderImpl.setCompanyId(getCompanyId());
1183 dlFolderImpl.setUserId(getUserId());
1184 dlFolderImpl.setUserName(getUserName());
1185 dlFolderImpl.setCreateDate(getCreateDate());
1186 dlFolderImpl.setModifiedDate(getModifiedDate());
1187 dlFolderImpl.setRepositoryId(getRepositoryId());
1188 dlFolderImpl.setMountPoint(getMountPoint());
1189 dlFolderImpl.setParentFolderId(getParentFolderId());
1190 dlFolderImpl.setTreePath(getTreePath());
1191 dlFolderImpl.setName(getName());
1192 dlFolderImpl.setDescription(getDescription());
1193 dlFolderImpl.setLastPostDate(getLastPostDate());
1194 dlFolderImpl.setDefaultFileEntryTypeId(getDefaultFileEntryTypeId());
1195 dlFolderImpl.setHidden(getHidden());
1196 dlFolderImpl.setRestrictionType(getRestrictionType());
1197 dlFolderImpl.setLastPublishDate(getLastPublishDate());
1198 dlFolderImpl.setStatus(getStatus());
1199 dlFolderImpl.setStatusByUserId(getStatusByUserId());
1200 dlFolderImpl.setStatusByUserName(getStatusByUserName());
1201 dlFolderImpl.setStatusDate(getStatusDate());
1202
1203 dlFolderImpl.resetOriginalValues();
1204
1205 return dlFolderImpl;
1206 }
1207
1208 @Override
1209 public int compareTo(DLFolder dlFolder) {
1210 int value = 0;
1211
1212 if (getParentFolderId() < dlFolder.getParentFolderId()) {
1213 value = -1;
1214 }
1215 else if (getParentFolderId() > dlFolder.getParentFolderId()) {
1216 value = 1;
1217 }
1218 else {
1219 value = 0;
1220 }
1221
1222 if (value != 0) {
1223 return value;
1224 }
1225
1226 value = getName().compareToIgnoreCase(dlFolder.getName());
1227
1228 if (value != 0) {
1229 return value;
1230 }
1231
1232 return 0;
1233 }
1234
1235 @Override
1236 public boolean equals(Object obj) {
1237 if (this == obj) {
1238 return true;
1239 }
1240
1241 if (!(obj instanceof DLFolder)) {
1242 return false;
1243 }
1244
1245 DLFolder dlFolder = (DLFolder)obj;
1246
1247 long primaryKey = dlFolder.getPrimaryKey();
1248
1249 if (getPrimaryKey() == primaryKey) {
1250 return true;
1251 }
1252 else {
1253 return false;
1254 }
1255 }
1256
1257 @Override
1258 public int hashCode() {
1259 return (int)getPrimaryKey();
1260 }
1261
1262 @Override
1263 public boolean isEntityCacheEnabled() {
1264 return ENTITY_CACHE_ENABLED;
1265 }
1266
1267 @Override
1268 public boolean isFinderCacheEnabled() {
1269 return FINDER_CACHE_ENABLED;
1270 }
1271
1272 @Override
1273 public void resetOriginalValues() {
1274 DLFolderModelImpl dlFolderModelImpl = this;
1275
1276 dlFolderModelImpl._originalUuid = dlFolderModelImpl._uuid;
1277
1278 dlFolderModelImpl._originalFolderId = dlFolderModelImpl._folderId;
1279
1280 dlFolderModelImpl._setOriginalFolderId = false;
1281
1282 dlFolderModelImpl._originalGroupId = dlFolderModelImpl._groupId;
1283
1284 dlFolderModelImpl._setOriginalGroupId = false;
1285
1286 dlFolderModelImpl._originalCompanyId = dlFolderModelImpl._companyId;
1287
1288 dlFolderModelImpl._setOriginalCompanyId = false;
1289
1290 dlFolderModelImpl._setModifiedDate = false;
1291
1292 dlFolderModelImpl._originalRepositoryId = dlFolderModelImpl._repositoryId;
1293
1294 dlFolderModelImpl._setOriginalRepositoryId = false;
1295
1296 dlFolderModelImpl._originalMountPoint = dlFolderModelImpl._mountPoint;
1297
1298 dlFolderModelImpl._setOriginalMountPoint = false;
1299
1300 dlFolderModelImpl._originalParentFolderId = dlFolderModelImpl._parentFolderId;
1301
1302 dlFolderModelImpl._setOriginalParentFolderId = false;
1303
1304 dlFolderModelImpl._originalTreePath = dlFolderModelImpl._treePath;
1305
1306 dlFolderModelImpl._originalName = dlFolderModelImpl._name;
1307
1308 dlFolderModelImpl._originalHidden = dlFolderModelImpl._hidden;
1309
1310 dlFolderModelImpl._setOriginalHidden = false;
1311
1312 dlFolderModelImpl._originalStatus = dlFolderModelImpl._status;
1313
1314 dlFolderModelImpl._setOriginalStatus = false;
1315
1316 dlFolderModelImpl._columnBitmask = 0;
1317 }
1318
1319 @Override
1320 public CacheModel<DLFolder> toCacheModel() {
1321 DLFolderCacheModel dlFolderCacheModel = new DLFolderCacheModel();
1322
1323 dlFolderCacheModel.uuid = getUuid();
1324
1325 String uuid = dlFolderCacheModel.uuid;
1326
1327 if ((uuid != null) && (uuid.length() == 0)) {
1328 dlFolderCacheModel.uuid = null;
1329 }
1330
1331 dlFolderCacheModel.folderId = getFolderId();
1332
1333 dlFolderCacheModel.groupId = getGroupId();
1334
1335 dlFolderCacheModel.companyId = getCompanyId();
1336
1337 dlFolderCacheModel.userId = getUserId();
1338
1339 dlFolderCacheModel.userName = getUserName();
1340
1341 String userName = dlFolderCacheModel.userName;
1342
1343 if ((userName != null) && (userName.length() == 0)) {
1344 dlFolderCacheModel.userName = null;
1345 }
1346
1347 Date createDate = getCreateDate();
1348
1349 if (createDate != null) {
1350 dlFolderCacheModel.createDate = createDate.getTime();
1351 }
1352 else {
1353 dlFolderCacheModel.createDate = Long.MIN_VALUE;
1354 }
1355
1356 Date modifiedDate = getModifiedDate();
1357
1358 if (modifiedDate != null) {
1359 dlFolderCacheModel.modifiedDate = modifiedDate.getTime();
1360 }
1361 else {
1362 dlFolderCacheModel.modifiedDate = Long.MIN_VALUE;
1363 }
1364
1365 dlFolderCacheModel.repositoryId = getRepositoryId();
1366
1367 dlFolderCacheModel.mountPoint = getMountPoint();
1368
1369 dlFolderCacheModel.parentFolderId = getParentFolderId();
1370
1371 dlFolderCacheModel.treePath = getTreePath();
1372
1373 String treePath = dlFolderCacheModel.treePath;
1374
1375 if ((treePath != null) && (treePath.length() == 0)) {
1376 dlFolderCacheModel.treePath = null;
1377 }
1378
1379 dlFolderCacheModel.name = getName();
1380
1381 String name = dlFolderCacheModel.name;
1382
1383 if ((name != null) && (name.length() == 0)) {
1384 dlFolderCacheModel.name = null;
1385 }
1386
1387 dlFolderCacheModel.description = getDescription();
1388
1389 String description = dlFolderCacheModel.description;
1390
1391 if ((description != null) && (description.length() == 0)) {
1392 dlFolderCacheModel.description = null;
1393 }
1394
1395 Date lastPostDate = getLastPostDate();
1396
1397 if (lastPostDate != null) {
1398 dlFolderCacheModel.lastPostDate = lastPostDate.getTime();
1399 }
1400 else {
1401 dlFolderCacheModel.lastPostDate = Long.MIN_VALUE;
1402 }
1403
1404 dlFolderCacheModel.defaultFileEntryTypeId = getDefaultFileEntryTypeId();
1405
1406 dlFolderCacheModel.hidden = getHidden();
1407
1408 dlFolderCacheModel.restrictionType = getRestrictionType();
1409
1410 Date lastPublishDate = getLastPublishDate();
1411
1412 if (lastPublishDate != null) {
1413 dlFolderCacheModel.lastPublishDate = lastPublishDate.getTime();
1414 }
1415 else {
1416 dlFolderCacheModel.lastPublishDate = Long.MIN_VALUE;
1417 }
1418
1419 dlFolderCacheModel.status = getStatus();
1420
1421 dlFolderCacheModel.statusByUserId = getStatusByUserId();
1422
1423 dlFolderCacheModel.statusByUserName = getStatusByUserName();
1424
1425 String statusByUserName = dlFolderCacheModel.statusByUserName;
1426
1427 if ((statusByUserName != null) && (statusByUserName.length() == 0)) {
1428 dlFolderCacheModel.statusByUserName = null;
1429 }
1430
1431 Date statusDate = getStatusDate();
1432
1433 if (statusDate != null) {
1434 dlFolderCacheModel.statusDate = statusDate.getTime();
1435 }
1436 else {
1437 dlFolderCacheModel.statusDate = Long.MIN_VALUE;
1438 }
1439
1440 return dlFolderCacheModel;
1441 }
1442
1443 @Override
1444 public String toString() {
1445 StringBundler sb = new StringBundler(47);
1446
1447 sb.append("{uuid=");
1448 sb.append(getUuid());
1449 sb.append(", folderId=");
1450 sb.append(getFolderId());
1451 sb.append(", groupId=");
1452 sb.append(getGroupId());
1453 sb.append(", companyId=");
1454 sb.append(getCompanyId());
1455 sb.append(", userId=");
1456 sb.append(getUserId());
1457 sb.append(", userName=");
1458 sb.append(getUserName());
1459 sb.append(", createDate=");
1460 sb.append(getCreateDate());
1461 sb.append(", modifiedDate=");
1462 sb.append(getModifiedDate());
1463 sb.append(", repositoryId=");
1464 sb.append(getRepositoryId());
1465 sb.append(", mountPoint=");
1466 sb.append(getMountPoint());
1467 sb.append(", parentFolderId=");
1468 sb.append(getParentFolderId());
1469 sb.append(", treePath=");
1470 sb.append(getTreePath());
1471 sb.append(", name=");
1472 sb.append(getName());
1473 sb.append(", description=");
1474 sb.append(getDescription());
1475 sb.append(", lastPostDate=");
1476 sb.append(getLastPostDate());
1477 sb.append(", defaultFileEntryTypeId=");
1478 sb.append(getDefaultFileEntryTypeId());
1479 sb.append(", hidden=");
1480 sb.append(getHidden());
1481 sb.append(", restrictionType=");
1482 sb.append(getRestrictionType());
1483 sb.append(", lastPublishDate=");
1484 sb.append(getLastPublishDate());
1485 sb.append(", status=");
1486 sb.append(getStatus());
1487 sb.append(", statusByUserId=");
1488 sb.append(getStatusByUserId());
1489 sb.append(", statusByUserName=");
1490 sb.append(getStatusByUserName());
1491 sb.append(", statusDate=");
1492 sb.append(getStatusDate());
1493 sb.append("}");
1494
1495 return sb.toString();
1496 }
1497
1498 @Override
1499 public String toXmlString() {
1500 StringBundler sb = new StringBundler(73);
1501
1502 sb.append("<model><model-name>");
1503 sb.append("com.liferay.portlet.documentlibrary.model.DLFolder");
1504 sb.append("</model-name>");
1505
1506 sb.append(
1507 "<column><column-name>uuid</column-name><column-value><![CDATA[");
1508 sb.append(getUuid());
1509 sb.append("]]></column-value></column>");
1510 sb.append(
1511 "<column><column-name>folderId</column-name><column-value><![CDATA[");
1512 sb.append(getFolderId());
1513 sb.append("]]></column-value></column>");
1514 sb.append(
1515 "<column><column-name>groupId</column-name><column-value><![CDATA[");
1516 sb.append(getGroupId());
1517 sb.append("]]></column-value></column>");
1518 sb.append(
1519 "<column><column-name>companyId</column-name><column-value><![CDATA[");
1520 sb.append(getCompanyId());
1521 sb.append("]]></column-value></column>");
1522 sb.append(
1523 "<column><column-name>userId</column-name><column-value><![CDATA[");
1524 sb.append(getUserId());
1525 sb.append("]]></column-value></column>");
1526 sb.append(
1527 "<column><column-name>userName</column-name><column-value><![CDATA[");
1528 sb.append(getUserName());
1529 sb.append("]]></column-value></column>");
1530 sb.append(
1531 "<column><column-name>createDate</column-name><column-value><![CDATA[");
1532 sb.append(getCreateDate());
1533 sb.append("]]></column-value></column>");
1534 sb.append(
1535 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1536 sb.append(getModifiedDate());
1537 sb.append("]]></column-value></column>");
1538 sb.append(
1539 "<column><column-name>repositoryId</column-name><column-value><![CDATA[");
1540 sb.append(getRepositoryId());
1541 sb.append("]]></column-value></column>");
1542 sb.append(
1543 "<column><column-name>mountPoint</column-name><column-value><![CDATA[");
1544 sb.append(getMountPoint());
1545 sb.append("]]></column-value></column>");
1546 sb.append(
1547 "<column><column-name>parentFolderId</column-name><column-value><![CDATA[");
1548 sb.append(getParentFolderId());
1549 sb.append("]]></column-value></column>");
1550 sb.append(
1551 "<column><column-name>treePath</column-name><column-value><![CDATA[");
1552 sb.append(getTreePath());
1553 sb.append("]]></column-value></column>");
1554 sb.append(
1555 "<column><column-name>name</column-name><column-value><![CDATA[");
1556 sb.append(getName());
1557 sb.append("]]></column-value></column>");
1558 sb.append(
1559 "<column><column-name>description</column-name><column-value><![CDATA[");
1560 sb.append(getDescription());
1561 sb.append("]]></column-value></column>");
1562 sb.append(
1563 "<column><column-name>lastPostDate</column-name><column-value><![CDATA[");
1564 sb.append(getLastPostDate());
1565 sb.append("]]></column-value></column>");
1566 sb.append(
1567 "<column><column-name>defaultFileEntryTypeId</column-name><column-value><![CDATA[");
1568 sb.append(getDefaultFileEntryTypeId());
1569 sb.append("]]></column-value></column>");
1570 sb.append(
1571 "<column><column-name>hidden</column-name><column-value><![CDATA[");
1572 sb.append(getHidden());
1573 sb.append("]]></column-value></column>");
1574 sb.append(
1575 "<column><column-name>restrictionType</column-name><column-value><![CDATA[");
1576 sb.append(getRestrictionType());
1577 sb.append("]]></column-value></column>");
1578 sb.append(
1579 "<column><column-name>lastPublishDate</column-name><column-value><![CDATA[");
1580 sb.append(getLastPublishDate());
1581 sb.append("]]></column-value></column>");
1582 sb.append(
1583 "<column><column-name>status</column-name><column-value><![CDATA[");
1584 sb.append(getStatus());
1585 sb.append("]]></column-value></column>");
1586 sb.append(
1587 "<column><column-name>statusByUserId</column-name><column-value><![CDATA[");
1588 sb.append(getStatusByUserId());
1589 sb.append("]]></column-value></column>");
1590 sb.append(
1591 "<column><column-name>statusByUserName</column-name><column-value><![CDATA[");
1592 sb.append(getStatusByUserName());
1593 sb.append("]]></column-value></column>");
1594 sb.append(
1595 "<column><column-name>statusDate</column-name><column-value><![CDATA[");
1596 sb.append(getStatusDate());
1597 sb.append("]]></column-value></column>");
1598
1599 sb.append("</model>");
1600
1601 return sb.toString();
1602 }
1603
1604 private static final ClassLoader _classLoader = DLFolder.class.getClassLoader();
1605 private static final Class<?>[] _escapedModelInterfaces = new Class[] {
1606 DLFolder.class
1607 };
1608 private String _uuid;
1609 private String _originalUuid;
1610 private long _folderId;
1611 private long _originalFolderId;
1612 private boolean _setOriginalFolderId;
1613 private long _groupId;
1614 private long _originalGroupId;
1615 private boolean _setOriginalGroupId;
1616 private long _companyId;
1617 private long _originalCompanyId;
1618 private boolean _setOriginalCompanyId;
1619 private long _userId;
1620 private String _userName;
1621 private Date _createDate;
1622 private Date _modifiedDate;
1623 private boolean _setModifiedDate;
1624 private long _repositoryId;
1625 private long _originalRepositoryId;
1626 private boolean _setOriginalRepositoryId;
1627 private boolean _mountPoint;
1628 private boolean _originalMountPoint;
1629 private boolean _setOriginalMountPoint;
1630 private long _parentFolderId;
1631 private long _originalParentFolderId;
1632 private boolean _setOriginalParentFolderId;
1633 private String _treePath;
1634 private String _originalTreePath;
1635 private String _name;
1636 private String _originalName;
1637 private String _description;
1638 private Date _lastPostDate;
1639 private long _defaultFileEntryTypeId;
1640 private boolean _hidden;
1641 private boolean _originalHidden;
1642 private boolean _setOriginalHidden;
1643 private int _restrictionType;
1644 private Date _lastPublishDate;
1645 private int _status;
1646 private int _originalStatus;
1647 private boolean _setOriginalStatus;
1648 private long _statusByUserId;
1649 private String _statusByUserName;
1650 private Date _statusDate;
1651 private long _columnBitmask;
1652 private DLFolder _escapedModel;
1653 }