001
014
015 package com.liferay.portlet.documentlibrary.model.impl;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.exception.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 (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 @Override
1060 public boolean isApproved() {
1061 if (getStatus() == WorkflowConstants.STATUS_APPROVED) {
1062 return true;
1063 }
1064 else {
1065 return false;
1066 }
1067 }
1068
1069 @Override
1070 public boolean isDenied() {
1071 if (getStatus() == WorkflowConstants.STATUS_DENIED) {
1072 return true;
1073 }
1074 else {
1075 return false;
1076 }
1077 }
1078
1079 @Override
1080 public boolean isDraft() {
1081 if (getStatus() == WorkflowConstants.STATUS_DRAFT) {
1082 return true;
1083 }
1084 else {
1085 return false;
1086 }
1087 }
1088
1089 @Override
1090 public boolean isExpired() {
1091 if (getStatus() == WorkflowConstants.STATUS_EXPIRED) {
1092 return true;
1093 }
1094 else {
1095 return false;
1096 }
1097 }
1098
1099 @Override
1100 public boolean isInactive() {
1101 if (getStatus() == WorkflowConstants.STATUS_INACTIVE) {
1102 return true;
1103 }
1104 else {
1105 return false;
1106 }
1107 }
1108
1109 @Override
1110 public boolean isIncomplete() {
1111 if (getStatus() == WorkflowConstants.STATUS_INCOMPLETE) {
1112 return true;
1113 }
1114 else {
1115 return false;
1116 }
1117 }
1118
1119 @Override
1120 public boolean isPending() {
1121 if (getStatus() == WorkflowConstants.STATUS_PENDING) {
1122 return true;
1123 }
1124 else {
1125 return false;
1126 }
1127 }
1128
1129 @Override
1130 public boolean isScheduled() {
1131 if (getStatus() == WorkflowConstants.STATUS_SCHEDULED) {
1132 return true;
1133 }
1134 else {
1135 return false;
1136 }
1137 }
1138
1139 public long getColumnBitmask() {
1140 return _columnBitmask;
1141 }
1142
1143 @Override
1144 public ExpandoBridge getExpandoBridge() {
1145 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1146 DLFolder.class.getName(), getPrimaryKey());
1147 }
1148
1149 @Override
1150 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1151 ExpandoBridge expandoBridge = getExpandoBridge();
1152
1153 expandoBridge.setAttributes(serviceContext);
1154 }
1155
1156 @Override
1157 public DLFolder toEscapedModel() {
1158 if (_escapedModel == null) {
1159 _escapedModel = (DLFolder)ProxyUtil.newProxyInstance(_classLoader,
1160 _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
1161 }
1162
1163 return _escapedModel;
1164 }
1165
1166 @Override
1167 public Object clone() {
1168 DLFolderImpl dlFolderImpl = new DLFolderImpl();
1169
1170 dlFolderImpl.setUuid(getUuid());
1171 dlFolderImpl.setFolderId(getFolderId());
1172 dlFolderImpl.setGroupId(getGroupId());
1173 dlFolderImpl.setCompanyId(getCompanyId());
1174 dlFolderImpl.setUserId(getUserId());
1175 dlFolderImpl.setUserName(getUserName());
1176 dlFolderImpl.setCreateDate(getCreateDate());
1177 dlFolderImpl.setModifiedDate(getModifiedDate());
1178 dlFolderImpl.setRepositoryId(getRepositoryId());
1179 dlFolderImpl.setMountPoint(getMountPoint());
1180 dlFolderImpl.setParentFolderId(getParentFolderId());
1181 dlFolderImpl.setTreePath(getTreePath());
1182 dlFolderImpl.setName(getName());
1183 dlFolderImpl.setDescription(getDescription());
1184 dlFolderImpl.setLastPostDate(getLastPostDate());
1185 dlFolderImpl.setDefaultFileEntryTypeId(getDefaultFileEntryTypeId());
1186 dlFolderImpl.setHidden(getHidden());
1187 dlFolderImpl.setRestrictionType(getRestrictionType());
1188 dlFolderImpl.setLastPublishDate(getLastPublishDate());
1189 dlFolderImpl.setStatus(getStatus());
1190 dlFolderImpl.setStatusByUserId(getStatusByUserId());
1191 dlFolderImpl.setStatusByUserName(getStatusByUserName());
1192 dlFolderImpl.setStatusDate(getStatusDate());
1193
1194 dlFolderImpl.resetOriginalValues();
1195
1196 return dlFolderImpl;
1197 }
1198
1199 @Override
1200 public int compareTo(DLFolder dlFolder) {
1201 int value = 0;
1202
1203 if (getParentFolderId() < dlFolder.getParentFolderId()) {
1204 value = -1;
1205 }
1206 else if (getParentFolderId() > dlFolder.getParentFolderId()) {
1207 value = 1;
1208 }
1209 else {
1210 value = 0;
1211 }
1212
1213 if (value != 0) {
1214 return value;
1215 }
1216
1217 value = getName().compareToIgnoreCase(dlFolder.getName());
1218
1219 if (value != 0) {
1220 return value;
1221 }
1222
1223 return 0;
1224 }
1225
1226 @Override
1227 public boolean equals(Object obj) {
1228 if (this == obj) {
1229 return true;
1230 }
1231
1232 if (!(obj instanceof DLFolder)) {
1233 return false;
1234 }
1235
1236 DLFolder dlFolder = (DLFolder)obj;
1237
1238 long primaryKey = dlFolder.getPrimaryKey();
1239
1240 if (getPrimaryKey() == primaryKey) {
1241 return true;
1242 }
1243 else {
1244 return false;
1245 }
1246 }
1247
1248 @Override
1249 public int hashCode() {
1250 return (int)getPrimaryKey();
1251 }
1252
1253 @Override
1254 public boolean isEntityCacheEnabled() {
1255 return ENTITY_CACHE_ENABLED;
1256 }
1257
1258 @Override
1259 public boolean isFinderCacheEnabled() {
1260 return FINDER_CACHE_ENABLED;
1261 }
1262
1263 @Override
1264 public void resetOriginalValues() {
1265 DLFolderModelImpl dlFolderModelImpl = this;
1266
1267 dlFolderModelImpl._originalUuid = dlFolderModelImpl._uuid;
1268
1269 dlFolderModelImpl._originalFolderId = dlFolderModelImpl._folderId;
1270
1271 dlFolderModelImpl._setOriginalFolderId = false;
1272
1273 dlFolderModelImpl._originalGroupId = dlFolderModelImpl._groupId;
1274
1275 dlFolderModelImpl._setOriginalGroupId = false;
1276
1277 dlFolderModelImpl._originalCompanyId = dlFolderModelImpl._companyId;
1278
1279 dlFolderModelImpl._setOriginalCompanyId = false;
1280
1281 dlFolderModelImpl._setModifiedDate = false;
1282
1283 dlFolderModelImpl._originalRepositoryId = dlFolderModelImpl._repositoryId;
1284
1285 dlFolderModelImpl._setOriginalRepositoryId = false;
1286
1287 dlFolderModelImpl._originalMountPoint = dlFolderModelImpl._mountPoint;
1288
1289 dlFolderModelImpl._setOriginalMountPoint = false;
1290
1291 dlFolderModelImpl._originalParentFolderId = dlFolderModelImpl._parentFolderId;
1292
1293 dlFolderModelImpl._setOriginalParentFolderId = false;
1294
1295 dlFolderModelImpl._originalTreePath = dlFolderModelImpl._treePath;
1296
1297 dlFolderModelImpl._originalName = dlFolderModelImpl._name;
1298
1299 dlFolderModelImpl._originalHidden = dlFolderModelImpl._hidden;
1300
1301 dlFolderModelImpl._setOriginalHidden = false;
1302
1303 dlFolderModelImpl._originalStatus = dlFolderModelImpl._status;
1304
1305 dlFolderModelImpl._setOriginalStatus = false;
1306
1307 dlFolderModelImpl._columnBitmask = 0;
1308 }
1309
1310 @Override
1311 public CacheModel<DLFolder> toCacheModel() {
1312 DLFolderCacheModel dlFolderCacheModel = new DLFolderCacheModel();
1313
1314 dlFolderCacheModel.uuid = getUuid();
1315
1316 String uuid = dlFolderCacheModel.uuid;
1317
1318 if ((uuid != null) && (uuid.length() == 0)) {
1319 dlFolderCacheModel.uuid = null;
1320 }
1321
1322 dlFolderCacheModel.folderId = getFolderId();
1323
1324 dlFolderCacheModel.groupId = getGroupId();
1325
1326 dlFolderCacheModel.companyId = getCompanyId();
1327
1328 dlFolderCacheModel.userId = getUserId();
1329
1330 dlFolderCacheModel.userName = getUserName();
1331
1332 String userName = dlFolderCacheModel.userName;
1333
1334 if ((userName != null) && (userName.length() == 0)) {
1335 dlFolderCacheModel.userName = null;
1336 }
1337
1338 Date createDate = getCreateDate();
1339
1340 if (createDate != null) {
1341 dlFolderCacheModel.createDate = createDate.getTime();
1342 }
1343 else {
1344 dlFolderCacheModel.createDate = Long.MIN_VALUE;
1345 }
1346
1347 Date modifiedDate = getModifiedDate();
1348
1349 if (modifiedDate != null) {
1350 dlFolderCacheModel.modifiedDate = modifiedDate.getTime();
1351 }
1352 else {
1353 dlFolderCacheModel.modifiedDate = Long.MIN_VALUE;
1354 }
1355
1356 dlFolderCacheModel.repositoryId = getRepositoryId();
1357
1358 dlFolderCacheModel.mountPoint = getMountPoint();
1359
1360 dlFolderCacheModel.parentFolderId = getParentFolderId();
1361
1362 dlFolderCacheModel.treePath = getTreePath();
1363
1364 String treePath = dlFolderCacheModel.treePath;
1365
1366 if ((treePath != null) && (treePath.length() == 0)) {
1367 dlFolderCacheModel.treePath = null;
1368 }
1369
1370 dlFolderCacheModel.name = getName();
1371
1372 String name = dlFolderCacheModel.name;
1373
1374 if ((name != null) && (name.length() == 0)) {
1375 dlFolderCacheModel.name = null;
1376 }
1377
1378 dlFolderCacheModel.description = getDescription();
1379
1380 String description = dlFolderCacheModel.description;
1381
1382 if ((description != null) && (description.length() == 0)) {
1383 dlFolderCacheModel.description = null;
1384 }
1385
1386 Date lastPostDate = getLastPostDate();
1387
1388 if (lastPostDate != null) {
1389 dlFolderCacheModel.lastPostDate = lastPostDate.getTime();
1390 }
1391 else {
1392 dlFolderCacheModel.lastPostDate = Long.MIN_VALUE;
1393 }
1394
1395 dlFolderCacheModel.defaultFileEntryTypeId = getDefaultFileEntryTypeId();
1396
1397 dlFolderCacheModel.hidden = getHidden();
1398
1399 dlFolderCacheModel.restrictionType = getRestrictionType();
1400
1401 Date lastPublishDate = getLastPublishDate();
1402
1403 if (lastPublishDate != null) {
1404 dlFolderCacheModel.lastPublishDate = lastPublishDate.getTime();
1405 }
1406 else {
1407 dlFolderCacheModel.lastPublishDate = Long.MIN_VALUE;
1408 }
1409
1410 dlFolderCacheModel.status = getStatus();
1411
1412 dlFolderCacheModel.statusByUserId = getStatusByUserId();
1413
1414 dlFolderCacheModel.statusByUserName = getStatusByUserName();
1415
1416 String statusByUserName = dlFolderCacheModel.statusByUserName;
1417
1418 if ((statusByUserName != null) && (statusByUserName.length() == 0)) {
1419 dlFolderCacheModel.statusByUserName = null;
1420 }
1421
1422 Date statusDate = getStatusDate();
1423
1424 if (statusDate != null) {
1425 dlFolderCacheModel.statusDate = statusDate.getTime();
1426 }
1427 else {
1428 dlFolderCacheModel.statusDate = Long.MIN_VALUE;
1429 }
1430
1431 return dlFolderCacheModel;
1432 }
1433
1434 @Override
1435 public String toString() {
1436 StringBundler sb = new StringBundler(47);
1437
1438 sb.append("{uuid=");
1439 sb.append(getUuid());
1440 sb.append(", folderId=");
1441 sb.append(getFolderId());
1442 sb.append(", groupId=");
1443 sb.append(getGroupId());
1444 sb.append(", companyId=");
1445 sb.append(getCompanyId());
1446 sb.append(", userId=");
1447 sb.append(getUserId());
1448 sb.append(", userName=");
1449 sb.append(getUserName());
1450 sb.append(", createDate=");
1451 sb.append(getCreateDate());
1452 sb.append(", modifiedDate=");
1453 sb.append(getModifiedDate());
1454 sb.append(", repositoryId=");
1455 sb.append(getRepositoryId());
1456 sb.append(", mountPoint=");
1457 sb.append(getMountPoint());
1458 sb.append(", parentFolderId=");
1459 sb.append(getParentFolderId());
1460 sb.append(", treePath=");
1461 sb.append(getTreePath());
1462 sb.append(", name=");
1463 sb.append(getName());
1464 sb.append(", description=");
1465 sb.append(getDescription());
1466 sb.append(", lastPostDate=");
1467 sb.append(getLastPostDate());
1468 sb.append(", defaultFileEntryTypeId=");
1469 sb.append(getDefaultFileEntryTypeId());
1470 sb.append(", hidden=");
1471 sb.append(getHidden());
1472 sb.append(", restrictionType=");
1473 sb.append(getRestrictionType());
1474 sb.append(", lastPublishDate=");
1475 sb.append(getLastPublishDate());
1476 sb.append(", status=");
1477 sb.append(getStatus());
1478 sb.append(", statusByUserId=");
1479 sb.append(getStatusByUserId());
1480 sb.append(", statusByUserName=");
1481 sb.append(getStatusByUserName());
1482 sb.append(", statusDate=");
1483 sb.append(getStatusDate());
1484 sb.append("}");
1485
1486 return sb.toString();
1487 }
1488
1489 @Override
1490 public String toXmlString() {
1491 StringBundler sb = new StringBundler(73);
1492
1493 sb.append("<model><model-name>");
1494 sb.append("com.liferay.portlet.documentlibrary.model.DLFolder");
1495 sb.append("</model-name>");
1496
1497 sb.append(
1498 "<column><column-name>uuid</column-name><column-value><![CDATA[");
1499 sb.append(getUuid());
1500 sb.append("]]></column-value></column>");
1501 sb.append(
1502 "<column><column-name>folderId</column-name><column-value><![CDATA[");
1503 sb.append(getFolderId());
1504 sb.append("]]></column-value></column>");
1505 sb.append(
1506 "<column><column-name>groupId</column-name><column-value><![CDATA[");
1507 sb.append(getGroupId());
1508 sb.append("]]></column-value></column>");
1509 sb.append(
1510 "<column><column-name>companyId</column-name><column-value><![CDATA[");
1511 sb.append(getCompanyId());
1512 sb.append("]]></column-value></column>");
1513 sb.append(
1514 "<column><column-name>userId</column-name><column-value><![CDATA[");
1515 sb.append(getUserId());
1516 sb.append("]]></column-value></column>");
1517 sb.append(
1518 "<column><column-name>userName</column-name><column-value><![CDATA[");
1519 sb.append(getUserName());
1520 sb.append("]]></column-value></column>");
1521 sb.append(
1522 "<column><column-name>createDate</column-name><column-value><![CDATA[");
1523 sb.append(getCreateDate());
1524 sb.append("]]></column-value></column>");
1525 sb.append(
1526 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1527 sb.append(getModifiedDate());
1528 sb.append("]]></column-value></column>");
1529 sb.append(
1530 "<column><column-name>repositoryId</column-name><column-value><![CDATA[");
1531 sb.append(getRepositoryId());
1532 sb.append("]]></column-value></column>");
1533 sb.append(
1534 "<column><column-name>mountPoint</column-name><column-value><![CDATA[");
1535 sb.append(getMountPoint());
1536 sb.append("]]></column-value></column>");
1537 sb.append(
1538 "<column><column-name>parentFolderId</column-name><column-value><![CDATA[");
1539 sb.append(getParentFolderId());
1540 sb.append("]]></column-value></column>");
1541 sb.append(
1542 "<column><column-name>treePath</column-name><column-value><![CDATA[");
1543 sb.append(getTreePath());
1544 sb.append("]]></column-value></column>");
1545 sb.append(
1546 "<column><column-name>name</column-name><column-value><![CDATA[");
1547 sb.append(getName());
1548 sb.append("]]></column-value></column>");
1549 sb.append(
1550 "<column><column-name>description</column-name><column-value><![CDATA[");
1551 sb.append(getDescription());
1552 sb.append("]]></column-value></column>");
1553 sb.append(
1554 "<column><column-name>lastPostDate</column-name><column-value><![CDATA[");
1555 sb.append(getLastPostDate());
1556 sb.append("]]></column-value></column>");
1557 sb.append(
1558 "<column><column-name>defaultFileEntryTypeId</column-name><column-value><![CDATA[");
1559 sb.append(getDefaultFileEntryTypeId());
1560 sb.append("]]></column-value></column>");
1561 sb.append(
1562 "<column><column-name>hidden</column-name><column-value><![CDATA[");
1563 sb.append(getHidden());
1564 sb.append("]]></column-value></column>");
1565 sb.append(
1566 "<column><column-name>restrictionType</column-name><column-value><![CDATA[");
1567 sb.append(getRestrictionType());
1568 sb.append("]]></column-value></column>");
1569 sb.append(
1570 "<column><column-name>lastPublishDate</column-name><column-value><![CDATA[");
1571 sb.append(getLastPublishDate());
1572 sb.append("]]></column-value></column>");
1573 sb.append(
1574 "<column><column-name>status</column-name><column-value><![CDATA[");
1575 sb.append(getStatus());
1576 sb.append("]]></column-value></column>");
1577 sb.append(
1578 "<column><column-name>statusByUserId</column-name><column-value><![CDATA[");
1579 sb.append(getStatusByUserId());
1580 sb.append("]]></column-value></column>");
1581 sb.append(
1582 "<column><column-name>statusByUserName</column-name><column-value><![CDATA[");
1583 sb.append(getStatusByUserName());
1584 sb.append("]]></column-value></column>");
1585 sb.append(
1586 "<column><column-name>statusDate</column-name><column-value><![CDATA[");
1587 sb.append(getStatusDate());
1588 sb.append("]]></column-value></column>");
1589
1590 sb.append("</model>");
1591
1592 return sb.toString();
1593 }
1594
1595 private static final ClassLoader _classLoader = DLFolder.class.getClassLoader();
1596 private static final Class<?>[] _escapedModelInterfaces = new Class[] {
1597 DLFolder.class
1598 };
1599 private String _uuid;
1600 private String _originalUuid;
1601 private long _folderId;
1602 private long _originalFolderId;
1603 private boolean _setOriginalFolderId;
1604 private long _groupId;
1605 private long _originalGroupId;
1606 private boolean _setOriginalGroupId;
1607 private long _companyId;
1608 private long _originalCompanyId;
1609 private boolean _setOriginalCompanyId;
1610 private long _userId;
1611 private String _userName;
1612 private Date _createDate;
1613 private Date _modifiedDate;
1614 private boolean _setModifiedDate;
1615 private long _repositoryId;
1616 private long _originalRepositoryId;
1617 private boolean _setOriginalRepositoryId;
1618 private boolean _mountPoint;
1619 private boolean _originalMountPoint;
1620 private boolean _setOriginalMountPoint;
1621 private long _parentFolderId;
1622 private long _originalParentFolderId;
1623 private boolean _setOriginalParentFolderId;
1624 private String _treePath;
1625 private String _originalTreePath;
1626 private String _name;
1627 private String _originalName;
1628 private String _description;
1629 private Date _lastPostDate;
1630 private long _defaultFileEntryTypeId;
1631 private boolean _hidden;
1632 private boolean _originalHidden;
1633 private boolean _setOriginalHidden;
1634 private int _restrictionType;
1635 private Date _lastPublishDate;
1636 private int _status;
1637 private int _originalStatus;
1638 private boolean _setOriginalStatus;
1639 private long _statusByUserId;
1640 private String _statusByUserName;
1641 private Date _statusDate;
1642 private long _columnBitmask;
1643 private DLFolder _escapedModel;
1644 }