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