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