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