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.lar.StagedModelType;
024    import com.liferay.portal.kernel.trash.TrashHandler;
025    import com.liferay.portal.kernel.trash.TrashHandlerRegistryUtil;
026    import com.liferay.portal.kernel.util.GetterUtil;
027    import com.liferay.portal.kernel.util.ProxyUtil;
028    import com.liferay.portal.kernel.util.StringBundler;
029    import com.liferay.portal.kernel.util.StringPool;
030    import com.liferay.portal.kernel.util.Validator;
031    import com.liferay.portal.kernel.workflow.WorkflowConstants;
032    import com.liferay.portal.model.CacheModel;
033    import com.liferay.portal.model.ContainerModel;
034    import com.liferay.portal.model.TrashedModel;
035    import com.liferay.portal.model.User;
036    import com.liferay.portal.model.impl.BaseModelImpl;
037    import com.liferay.portal.service.ServiceContext;
038    import com.liferay.portal.service.UserLocalServiceUtil;
039    import com.liferay.portal.util.PortalUtil;
040    
041    import com.liferay.portlet.documentlibrary.model.DLFolder;
042    import com.liferay.portlet.documentlibrary.model.DLFolderModel;
043    import com.liferay.portlet.documentlibrary.model.DLFolderSoap;
044    import com.liferay.portlet.expando.model.ExpandoBridge;
045    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
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 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}.
064     * </p>
065     *
066     * @author Brian Wing Shun Chan
067     * @see DLFolderImpl
068     * @see com.liferay.portlet.documentlibrary.model.DLFolder
069     * @see com.liferay.portlet.documentlibrary.model.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 com.liferay.portlet.documentlibrary.model.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            @Override
562            public void setModifiedDate(Date modifiedDate) {
563                    _modifiedDate = modifiedDate;
564            }
565    
566            @JSON
567            @Override
568            public long getRepositoryId() {
569                    return _repositoryId;
570            }
571    
572            @Override
573            public void setRepositoryId(long repositoryId) {
574                    _columnBitmask |= REPOSITORYID_COLUMN_BITMASK;
575    
576                    if (!_setOriginalRepositoryId) {
577                            _setOriginalRepositoryId = true;
578    
579                            _originalRepositoryId = _repositoryId;
580                    }
581    
582                    _repositoryId = repositoryId;
583            }
584    
585            public long getOriginalRepositoryId() {
586                    return _originalRepositoryId;
587            }
588    
589            @JSON
590            @Override
591            public boolean getMountPoint() {
592                    return _mountPoint;
593            }
594    
595            @Override
596            public boolean isMountPoint() {
597                    return _mountPoint;
598            }
599    
600            @Override
601            public void setMountPoint(boolean mountPoint) {
602                    _columnBitmask |= MOUNTPOINT_COLUMN_BITMASK;
603    
604                    if (!_setOriginalMountPoint) {
605                            _setOriginalMountPoint = true;
606    
607                            _originalMountPoint = _mountPoint;
608                    }
609    
610                    _mountPoint = mountPoint;
611            }
612    
613            public boolean getOriginalMountPoint() {
614                    return _originalMountPoint;
615            }
616    
617            @JSON
618            @Override
619            public long getParentFolderId() {
620                    return _parentFolderId;
621            }
622    
623            @Override
624            public void setParentFolderId(long parentFolderId) {
625                    _columnBitmask = -1L;
626    
627                    if (!_setOriginalParentFolderId) {
628                            _setOriginalParentFolderId = true;
629    
630                            _originalParentFolderId = _parentFolderId;
631                    }
632    
633                    _parentFolderId = parentFolderId;
634            }
635    
636            public long getOriginalParentFolderId() {
637                    return _originalParentFolderId;
638            }
639    
640            @JSON
641            @Override
642            public String getTreePath() {
643                    if (_treePath == null) {
644                            return StringPool.BLANK;
645                    }
646                    else {
647                            return _treePath;
648                    }
649            }
650    
651            @Override
652            public void setTreePath(String treePath) {
653                    _treePath = treePath;
654            }
655    
656            @JSON
657            @Override
658            public String getName() {
659                    if (_name == null) {
660                            return StringPool.BLANK;
661                    }
662                    else {
663                            return _name;
664                    }
665            }
666    
667            @Override
668            public void setName(String name) {
669                    _columnBitmask = -1L;
670    
671                    if (_originalName == null) {
672                            _originalName = _name;
673                    }
674    
675                    _name = name;
676            }
677    
678            public String getOriginalName() {
679                    return GetterUtil.getString(_originalName);
680            }
681    
682            @JSON
683            @Override
684            public String getDescription() {
685                    if (_description == null) {
686                            return StringPool.BLANK;
687                    }
688                    else {
689                            return _description;
690                    }
691            }
692    
693            @Override
694            public void setDescription(String description) {
695                    _description = description;
696            }
697    
698            @JSON
699            @Override
700            public Date getLastPostDate() {
701                    return _lastPostDate;
702            }
703    
704            @Override
705            public void setLastPostDate(Date lastPostDate) {
706                    _lastPostDate = lastPostDate;
707            }
708    
709            @JSON
710            @Override
711            public long getDefaultFileEntryTypeId() {
712                    return _defaultFileEntryTypeId;
713            }
714    
715            @Override
716            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
717                    _defaultFileEntryTypeId = defaultFileEntryTypeId;
718            }
719    
720            @JSON
721            @Override
722            public boolean getHidden() {
723                    return _hidden;
724            }
725    
726            @Override
727            public boolean isHidden() {
728                    return _hidden;
729            }
730    
731            @Override
732            public void setHidden(boolean hidden) {
733                    _columnBitmask |= HIDDEN_COLUMN_BITMASK;
734    
735                    if (!_setOriginalHidden) {
736                            _setOriginalHidden = true;
737    
738                            _originalHidden = _hidden;
739                    }
740    
741                    _hidden = hidden;
742            }
743    
744            public boolean getOriginalHidden() {
745                    return _originalHidden;
746            }
747    
748            @JSON
749            @Override
750            public int getRestrictionType() {
751                    return _restrictionType;
752            }
753    
754            @Override
755            public void setRestrictionType(int restrictionType) {
756                    _restrictionType = restrictionType;
757            }
758    
759            @JSON
760            @Override
761            public int getStatus() {
762                    return _status;
763            }
764    
765            @Override
766            public void setStatus(int status) {
767                    _columnBitmask |= STATUS_COLUMN_BITMASK;
768    
769                    if (!_setOriginalStatus) {
770                            _setOriginalStatus = true;
771    
772                            _originalStatus = _status;
773                    }
774    
775                    _status = status;
776            }
777    
778            public int getOriginalStatus() {
779                    return _originalStatus;
780            }
781    
782            @JSON
783            @Override
784            public long getStatusByUserId() {
785                    return _statusByUserId;
786            }
787    
788            @Override
789            public void setStatusByUserId(long statusByUserId) {
790                    _statusByUserId = statusByUserId;
791            }
792    
793            @Override
794            public String getStatusByUserUuid() {
795                    try {
796                            User user = UserLocalServiceUtil.getUserById(getStatusByUserId());
797    
798                            return user.getUuid();
799                    }
800                    catch (PortalException pe) {
801                            return StringPool.BLANK;
802                    }
803            }
804    
805            @Override
806            public void setStatusByUserUuid(String statusByUserUuid) {
807            }
808    
809            @JSON
810            @Override
811            public String getStatusByUserName() {
812                    if (_statusByUserName == null) {
813                            return StringPool.BLANK;
814                    }
815                    else {
816                            return _statusByUserName;
817                    }
818            }
819    
820            @Override
821            public void setStatusByUserName(String statusByUserName) {
822                    _statusByUserName = statusByUserName;
823            }
824    
825            @JSON
826            @Override
827            public Date getStatusDate() {
828                    return _statusDate;
829            }
830    
831            @Override
832            public void setStatusDate(Date statusDate) {
833                    _statusDate = statusDate;
834            }
835    
836            @Override
837            public long getContainerModelId() {
838                    return getFolderId();
839            }
840    
841            @Override
842            public void setContainerModelId(long containerModelId) {
843                    _folderId = containerModelId;
844            }
845    
846            @Override
847            public long getParentContainerModelId() {
848                    return getParentFolderId();
849            }
850    
851            @Override
852            public void setParentContainerModelId(long parentContainerModelId) {
853                    _parentFolderId = parentContainerModelId;
854            }
855    
856            @Override
857            public String getContainerModelName() {
858                    return String.valueOf(getName());
859            }
860    
861            @Override
862            public StagedModelType getStagedModelType() {
863                    return new StagedModelType(PortalUtil.getClassNameId(
864                                    DLFolder.class.getName()));
865            }
866    
867            @Override
868            public TrashEntry getTrashEntry() throws PortalException {
869                    if (!isInTrash()) {
870                            return null;
871                    }
872    
873                    TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
874                                    getTrashEntryClassPK());
875    
876                    if (trashEntry != null) {
877                            return trashEntry;
878                    }
879    
880                    TrashHandler trashHandler = getTrashHandler();
881    
882                    if (!Validator.isNull(trashHandler.getContainerModelClassName(
883                                                    getPrimaryKey()))) {
884                            ContainerModel containerModel = null;
885    
886                            try {
887                                    containerModel = trashHandler.getParentContainerModel(this);
888                            }
889                            catch (NoSuchModelException nsme) {
890                                    return null;
891                            }
892    
893                            while (containerModel != null) {
894                                    if (containerModel instanceof TrashedModel) {
895                                            TrashedModel trashedModel = (TrashedModel)containerModel;
896    
897                                            return trashedModel.getTrashEntry();
898                                    }
899    
900                                    trashHandler = TrashHandlerRegistryUtil.getTrashHandler(trashHandler.getContainerModelClassName(
901                                                            containerModel.getContainerModelId()));
902    
903                                    if (trashHandler == null) {
904                                            return null;
905                                    }
906    
907                                    containerModel = trashHandler.getContainerModel(containerModel.getParentContainerModelId());
908                            }
909                    }
910    
911                    return null;
912            }
913    
914            @Override
915            public long getTrashEntryClassPK() {
916                    return getPrimaryKey();
917            }
918    
919            @Override
920            public TrashHandler getTrashHandler() {
921                    return TrashHandlerRegistryUtil.getTrashHandler(getModelClassName());
922            }
923    
924            @Override
925            public boolean isInTrash() {
926                    if (getStatus() == WorkflowConstants.STATUS_IN_TRASH) {
927                            return true;
928                    }
929                    else {
930                            return false;
931                    }
932            }
933    
934            @Override
935            public boolean isInTrashContainer() {
936                    TrashHandler trashHandler = getTrashHandler();
937    
938                    if ((trashHandler == null) ||
939                                    Validator.isNull(trashHandler.getContainerModelClassName(
940                                                    getPrimaryKey()))) {
941                            return false;
942                    }
943    
944                    try {
945                            ContainerModel containerModel = trashHandler.getParentContainerModel(this);
946    
947                            if (containerModel == null) {
948                                    return false;
949                            }
950    
951                            if (containerModel instanceof TrashedModel) {
952                                    return ((TrashedModel)containerModel).isInTrash();
953                            }
954                    }
955                    catch (Exception e) {
956                    }
957    
958                    return false;
959            }
960    
961            @Override
962            public boolean isInTrashExplicitly() {
963                    if (!isInTrash()) {
964                            return false;
965                    }
966    
967                    TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
968                                    getTrashEntryClassPK());
969    
970                    if (trashEntry != null) {
971                            return true;
972                    }
973    
974                    return false;
975            }
976    
977            @Override
978            public boolean isInTrashImplicitly() {
979                    if (!isInTrash()) {
980                            return false;
981                    }
982    
983                    TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
984                                    getTrashEntryClassPK());
985    
986                    if (trashEntry != null) {
987                            return false;
988                    }
989    
990                    return true;
991            }
992    
993            /**
994             * @deprecated As of 6.1.0, replaced by {@link #isApproved}
995             */
996            @Deprecated
997            @Override
998            public boolean getApproved() {
999                    return isApproved();
1000            }
1001    
1002            @Override
1003            public boolean isApproved() {
1004                    if (getStatus() == WorkflowConstants.STATUS_APPROVED) {
1005                            return true;
1006                    }
1007                    else {
1008                            return false;
1009                    }
1010            }
1011    
1012            @Override
1013            public boolean isDenied() {
1014                    if (getStatus() == WorkflowConstants.STATUS_DENIED) {
1015                            return true;
1016                    }
1017                    else {
1018                            return false;
1019                    }
1020            }
1021    
1022            @Override
1023            public boolean isDraft() {
1024                    if (getStatus() == WorkflowConstants.STATUS_DRAFT) {
1025                            return true;
1026                    }
1027                    else {
1028                            return false;
1029                    }
1030            }
1031    
1032            @Override
1033            public boolean isExpired() {
1034                    if (getStatus() == WorkflowConstants.STATUS_EXPIRED) {
1035                            return true;
1036                    }
1037                    else {
1038                            return false;
1039                    }
1040            }
1041    
1042            @Override
1043            public boolean isInactive() {
1044                    if (getStatus() == WorkflowConstants.STATUS_INACTIVE) {
1045                            return true;
1046                    }
1047                    else {
1048                            return false;
1049                    }
1050            }
1051    
1052            @Override
1053            public boolean isIncomplete() {
1054                    if (getStatus() == WorkflowConstants.STATUS_INCOMPLETE) {
1055                            return true;
1056                    }
1057                    else {
1058                            return false;
1059                    }
1060            }
1061    
1062            @Override
1063            public boolean isPending() {
1064                    if (getStatus() == WorkflowConstants.STATUS_PENDING) {
1065                            return true;
1066                    }
1067                    else {
1068                            return false;
1069                    }
1070            }
1071    
1072            @Override
1073            public boolean isScheduled() {
1074                    if (getStatus() == WorkflowConstants.STATUS_SCHEDULED) {
1075                            return true;
1076                    }
1077                    else {
1078                            return false;
1079                    }
1080            }
1081    
1082            public long getColumnBitmask() {
1083                    return _columnBitmask;
1084            }
1085    
1086            @Override
1087            public ExpandoBridge getExpandoBridge() {
1088                    return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1089                            DLFolder.class.getName(), getPrimaryKey());
1090            }
1091    
1092            @Override
1093            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1094                    ExpandoBridge expandoBridge = getExpandoBridge();
1095    
1096                    expandoBridge.setAttributes(serviceContext);
1097            }
1098    
1099            @Override
1100            public DLFolder toEscapedModel() {
1101                    if (_escapedModel == null) {
1102                            _escapedModel = (DLFolder)ProxyUtil.newProxyInstance(_classLoader,
1103                                            _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
1104                    }
1105    
1106                    return _escapedModel;
1107            }
1108    
1109            @Override
1110            public Object clone() {
1111                    DLFolderImpl dlFolderImpl = new DLFolderImpl();
1112    
1113                    dlFolderImpl.setUuid(getUuid());
1114                    dlFolderImpl.setFolderId(getFolderId());
1115                    dlFolderImpl.setGroupId(getGroupId());
1116                    dlFolderImpl.setCompanyId(getCompanyId());
1117                    dlFolderImpl.setUserId(getUserId());
1118                    dlFolderImpl.setUserName(getUserName());
1119                    dlFolderImpl.setCreateDate(getCreateDate());
1120                    dlFolderImpl.setModifiedDate(getModifiedDate());
1121                    dlFolderImpl.setRepositoryId(getRepositoryId());
1122                    dlFolderImpl.setMountPoint(getMountPoint());
1123                    dlFolderImpl.setParentFolderId(getParentFolderId());
1124                    dlFolderImpl.setTreePath(getTreePath());
1125                    dlFolderImpl.setName(getName());
1126                    dlFolderImpl.setDescription(getDescription());
1127                    dlFolderImpl.setLastPostDate(getLastPostDate());
1128                    dlFolderImpl.setDefaultFileEntryTypeId(getDefaultFileEntryTypeId());
1129                    dlFolderImpl.setHidden(getHidden());
1130                    dlFolderImpl.setRestrictionType(getRestrictionType());
1131                    dlFolderImpl.setStatus(getStatus());
1132                    dlFolderImpl.setStatusByUserId(getStatusByUserId());
1133                    dlFolderImpl.setStatusByUserName(getStatusByUserName());
1134                    dlFolderImpl.setStatusDate(getStatusDate());
1135    
1136                    dlFolderImpl.resetOriginalValues();
1137    
1138                    return dlFolderImpl;
1139            }
1140    
1141            @Override
1142            public int compareTo(DLFolder dlFolder) {
1143                    int value = 0;
1144    
1145                    if (getParentFolderId() < dlFolder.getParentFolderId()) {
1146                            value = -1;
1147                    }
1148                    else if (getParentFolderId() > dlFolder.getParentFolderId()) {
1149                            value = 1;
1150                    }
1151                    else {
1152                            value = 0;
1153                    }
1154    
1155                    if (value != 0) {
1156                            return value;
1157                    }
1158    
1159                    value = getName().compareToIgnoreCase(dlFolder.getName());
1160    
1161                    if (value != 0) {
1162                            return value;
1163                    }
1164    
1165                    return 0;
1166            }
1167    
1168            @Override
1169            public boolean equals(Object obj) {
1170                    if (this == obj) {
1171                            return true;
1172                    }
1173    
1174                    if (!(obj instanceof DLFolder)) {
1175                            return false;
1176                    }
1177    
1178                    DLFolder dlFolder = (DLFolder)obj;
1179    
1180                    long primaryKey = dlFolder.getPrimaryKey();
1181    
1182                    if (getPrimaryKey() == primaryKey) {
1183                            return true;
1184                    }
1185                    else {
1186                            return false;
1187                    }
1188            }
1189    
1190            @Override
1191            public int hashCode() {
1192                    return (int)getPrimaryKey();
1193            }
1194    
1195            @Override
1196            public boolean isEntityCacheEnabled() {
1197                    return ENTITY_CACHE_ENABLED;
1198            }
1199    
1200            @Override
1201            public boolean isFinderCacheEnabled() {
1202                    return FINDER_CACHE_ENABLED;
1203            }
1204    
1205            @Override
1206            public void resetOriginalValues() {
1207                    DLFolderModelImpl dlFolderModelImpl = this;
1208    
1209                    dlFolderModelImpl._originalUuid = dlFolderModelImpl._uuid;
1210    
1211                    dlFolderModelImpl._originalFolderId = dlFolderModelImpl._folderId;
1212    
1213                    dlFolderModelImpl._setOriginalFolderId = false;
1214    
1215                    dlFolderModelImpl._originalGroupId = dlFolderModelImpl._groupId;
1216    
1217                    dlFolderModelImpl._setOriginalGroupId = false;
1218    
1219                    dlFolderModelImpl._originalCompanyId = dlFolderModelImpl._companyId;
1220    
1221                    dlFolderModelImpl._setOriginalCompanyId = false;
1222    
1223                    dlFolderModelImpl._originalRepositoryId = dlFolderModelImpl._repositoryId;
1224    
1225                    dlFolderModelImpl._setOriginalRepositoryId = false;
1226    
1227                    dlFolderModelImpl._originalMountPoint = dlFolderModelImpl._mountPoint;
1228    
1229                    dlFolderModelImpl._setOriginalMountPoint = false;
1230    
1231                    dlFolderModelImpl._originalParentFolderId = dlFolderModelImpl._parentFolderId;
1232    
1233                    dlFolderModelImpl._setOriginalParentFolderId = false;
1234    
1235                    dlFolderModelImpl._originalName = dlFolderModelImpl._name;
1236    
1237                    dlFolderModelImpl._originalHidden = dlFolderModelImpl._hidden;
1238    
1239                    dlFolderModelImpl._setOriginalHidden = false;
1240    
1241                    dlFolderModelImpl._originalStatus = dlFolderModelImpl._status;
1242    
1243                    dlFolderModelImpl._setOriginalStatus = false;
1244    
1245                    dlFolderModelImpl._columnBitmask = 0;
1246            }
1247    
1248            @Override
1249            public CacheModel<DLFolder> toCacheModel() {
1250                    DLFolderCacheModel dlFolderCacheModel = new DLFolderCacheModel();
1251    
1252                    dlFolderCacheModel.uuid = getUuid();
1253    
1254                    String uuid = dlFolderCacheModel.uuid;
1255    
1256                    if ((uuid != null) && (uuid.length() == 0)) {
1257                            dlFolderCacheModel.uuid = null;
1258                    }
1259    
1260                    dlFolderCacheModel.folderId = getFolderId();
1261    
1262                    dlFolderCacheModel.groupId = getGroupId();
1263    
1264                    dlFolderCacheModel.companyId = getCompanyId();
1265    
1266                    dlFolderCacheModel.userId = getUserId();
1267    
1268                    dlFolderCacheModel.userName = getUserName();
1269    
1270                    String userName = dlFolderCacheModel.userName;
1271    
1272                    if ((userName != null) && (userName.length() == 0)) {
1273                            dlFolderCacheModel.userName = null;
1274                    }
1275    
1276                    Date createDate = getCreateDate();
1277    
1278                    if (createDate != null) {
1279                            dlFolderCacheModel.createDate = createDate.getTime();
1280                    }
1281                    else {
1282                            dlFolderCacheModel.createDate = Long.MIN_VALUE;
1283                    }
1284    
1285                    Date modifiedDate = getModifiedDate();
1286    
1287                    if (modifiedDate != null) {
1288                            dlFolderCacheModel.modifiedDate = modifiedDate.getTime();
1289                    }
1290                    else {
1291                            dlFolderCacheModel.modifiedDate = Long.MIN_VALUE;
1292                    }
1293    
1294                    dlFolderCacheModel.repositoryId = getRepositoryId();
1295    
1296                    dlFolderCacheModel.mountPoint = getMountPoint();
1297    
1298                    dlFolderCacheModel.parentFolderId = getParentFolderId();
1299    
1300                    dlFolderCacheModel.treePath = getTreePath();
1301    
1302                    String treePath = dlFolderCacheModel.treePath;
1303    
1304                    if ((treePath != null) && (treePath.length() == 0)) {
1305                            dlFolderCacheModel.treePath = null;
1306                    }
1307    
1308                    dlFolderCacheModel.name = getName();
1309    
1310                    String name = dlFolderCacheModel.name;
1311    
1312                    if ((name != null) && (name.length() == 0)) {
1313                            dlFolderCacheModel.name = null;
1314                    }
1315    
1316                    dlFolderCacheModel.description = getDescription();
1317    
1318                    String description = dlFolderCacheModel.description;
1319    
1320                    if ((description != null) && (description.length() == 0)) {
1321                            dlFolderCacheModel.description = null;
1322                    }
1323    
1324                    Date lastPostDate = getLastPostDate();
1325    
1326                    if (lastPostDate != null) {
1327                            dlFolderCacheModel.lastPostDate = lastPostDate.getTime();
1328                    }
1329                    else {
1330                            dlFolderCacheModel.lastPostDate = Long.MIN_VALUE;
1331                    }
1332    
1333                    dlFolderCacheModel.defaultFileEntryTypeId = getDefaultFileEntryTypeId();
1334    
1335                    dlFolderCacheModel.hidden = getHidden();
1336    
1337                    dlFolderCacheModel.restrictionType = getRestrictionType();
1338    
1339                    dlFolderCacheModel.status = getStatus();
1340    
1341                    dlFolderCacheModel.statusByUserId = getStatusByUserId();
1342    
1343                    dlFolderCacheModel.statusByUserName = getStatusByUserName();
1344    
1345                    String statusByUserName = dlFolderCacheModel.statusByUserName;
1346    
1347                    if ((statusByUserName != null) && (statusByUserName.length() == 0)) {
1348                            dlFolderCacheModel.statusByUserName = null;
1349                    }
1350    
1351                    Date statusDate = getStatusDate();
1352    
1353                    if (statusDate != null) {
1354                            dlFolderCacheModel.statusDate = statusDate.getTime();
1355                    }
1356                    else {
1357                            dlFolderCacheModel.statusDate = Long.MIN_VALUE;
1358                    }
1359    
1360                    return dlFolderCacheModel;
1361            }
1362    
1363            @Override
1364            public String toString() {
1365                    StringBundler sb = new StringBundler(45);
1366    
1367                    sb.append("{uuid=");
1368                    sb.append(getUuid());
1369                    sb.append(", folderId=");
1370                    sb.append(getFolderId());
1371                    sb.append(", groupId=");
1372                    sb.append(getGroupId());
1373                    sb.append(", companyId=");
1374                    sb.append(getCompanyId());
1375                    sb.append(", userId=");
1376                    sb.append(getUserId());
1377                    sb.append(", userName=");
1378                    sb.append(getUserName());
1379                    sb.append(", createDate=");
1380                    sb.append(getCreateDate());
1381                    sb.append(", modifiedDate=");
1382                    sb.append(getModifiedDate());
1383                    sb.append(", repositoryId=");
1384                    sb.append(getRepositoryId());
1385                    sb.append(", mountPoint=");
1386                    sb.append(getMountPoint());
1387                    sb.append(", parentFolderId=");
1388                    sb.append(getParentFolderId());
1389                    sb.append(", treePath=");
1390                    sb.append(getTreePath());
1391                    sb.append(", name=");
1392                    sb.append(getName());
1393                    sb.append(", description=");
1394                    sb.append(getDescription());
1395                    sb.append(", lastPostDate=");
1396                    sb.append(getLastPostDate());
1397                    sb.append(", defaultFileEntryTypeId=");
1398                    sb.append(getDefaultFileEntryTypeId());
1399                    sb.append(", hidden=");
1400                    sb.append(getHidden());
1401                    sb.append(", restrictionType=");
1402                    sb.append(getRestrictionType());
1403                    sb.append(", status=");
1404                    sb.append(getStatus());
1405                    sb.append(", statusByUserId=");
1406                    sb.append(getStatusByUserId());
1407                    sb.append(", statusByUserName=");
1408                    sb.append(getStatusByUserName());
1409                    sb.append(", statusDate=");
1410                    sb.append(getStatusDate());
1411                    sb.append("}");
1412    
1413                    return sb.toString();
1414            }
1415    
1416            @Override
1417            public String toXmlString() {
1418                    StringBundler sb = new StringBundler(70);
1419    
1420                    sb.append("<model><model-name>");
1421                    sb.append("com.liferay.portlet.documentlibrary.model.DLFolder");
1422                    sb.append("</model-name>");
1423    
1424                    sb.append(
1425                            "<column><column-name>uuid</column-name><column-value><![CDATA[");
1426                    sb.append(getUuid());
1427                    sb.append("]]></column-value></column>");
1428                    sb.append(
1429                            "<column><column-name>folderId</column-name><column-value><![CDATA[");
1430                    sb.append(getFolderId());
1431                    sb.append("]]></column-value></column>");
1432                    sb.append(
1433                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
1434                    sb.append(getGroupId());
1435                    sb.append("]]></column-value></column>");
1436                    sb.append(
1437                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
1438                    sb.append(getCompanyId());
1439                    sb.append("]]></column-value></column>");
1440                    sb.append(
1441                            "<column><column-name>userId</column-name><column-value><![CDATA[");
1442                    sb.append(getUserId());
1443                    sb.append("]]></column-value></column>");
1444                    sb.append(
1445                            "<column><column-name>userName</column-name><column-value><![CDATA[");
1446                    sb.append(getUserName());
1447                    sb.append("]]></column-value></column>");
1448                    sb.append(
1449                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
1450                    sb.append(getCreateDate());
1451                    sb.append("]]></column-value></column>");
1452                    sb.append(
1453                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1454                    sb.append(getModifiedDate());
1455                    sb.append("]]></column-value></column>");
1456                    sb.append(
1457                            "<column><column-name>repositoryId</column-name><column-value><![CDATA[");
1458                    sb.append(getRepositoryId());
1459                    sb.append("]]></column-value></column>");
1460                    sb.append(
1461                            "<column><column-name>mountPoint</column-name><column-value><![CDATA[");
1462                    sb.append(getMountPoint());
1463                    sb.append("]]></column-value></column>");
1464                    sb.append(
1465                            "<column><column-name>parentFolderId</column-name><column-value><![CDATA[");
1466                    sb.append(getParentFolderId());
1467                    sb.append("]]></column-value></column>");
1468                    sb.append(
1469                            "<column><column-name>treePath</column-name><column-value><![CDATA[");
1470                    sb.append(getTreePath());
1471                    sb.append("]]></column-value></column>");
1472                    sb.append(
1473                            "<column><column-name>name</column-name><column-value><![CDATA[");
1474                    sb.append(getName());
1475                    sb.append("]]></column-value></column>");
1476                    sb.append(
1477                            "<column><column-name>description</column-name><column-value><![CDATA[");
1478                    sb.append(getDescription());
1479                    sb.append("]]></column-value></column>");
1480                    sb.append(
1481                            "<column><column-name>lastPostDate</column-name><column-value><![CDATA[");
1482                    sb.append(getLastPostDate());
1483                    sb.append("]]></column-value></column>");
1484                    sb.append(
1485                            "<column><column-name>defaultFileEntryTypeId</column-name><column-value><![CDATA[");
1486                    sb.append(getDefaultFileEntryTypeId());
1487                    sb.append("]]></column-value></column>");
1488                    sb.append(
1489                            "<column><column-name>hidden</column-name><column-value><![CDATA[");
1490                    sb.append(getHidden());
1491                    sb.append("]]></column-value></column>");
1492                    sb.append(
1493                            "<column><column-name>restrictionType</column-name><column-value><![CDATA[");
1494                    sb.append(getRestrictionType());
1495                    sb.append("]]></column-value></column>");
1496                    sb.append(
1497                            "<column><column-name>status</column-name><column-value><![CDATA[");
1498                    sb.append(getStatus());
1499                    sb.append("]]></column-value></column>");
1500                    sb.append(
1501                            "<column><column-name>statusByUserId</column-name><column-value><![CDATA[");
1502                    sb.append(getStatusByUserId());
1503                    sb.append("]]></column-value></column>");
1504                    sb.append(
1505                            "<column><column-name>statusByUserName</column-name><column-value><![CDATA[");
1506                    sb.append(getStatusByUserName());
1507                    sb.append("]]></column-value></column>");
1508                    sb.append(
1509                            "<column><column-name>statusDate</column-name><column-value><![CDATA[");
1510                    sb.append(getStatusDate());
1511                    sb.append("]]></column-value></column>");
1512    
1513                    sb.append("</model>");
1514    
1515                    return sb.toString();
1516            }
1517    
1518            private static final ClassLoader _classLoader = DLFolder.class.getClassLoader();
1519            private static final Class<?>[] _escapedModelInterfaces = new Class[] {
1520                            DLFolder.class
1521                    };
1522            private String _uuid;
1523            private String _originalUuid;
1524            private long _folderId;
1525            private long _originalFolderId;
1526            private boolean _setOriginalFolderId;
1527            private long _groupId;
1528            private long _originalGroupId;
1529            private boolean _setOriginalGroupId;
1530            private long _companyId;
1531            private long _originalCompanyId;
1532            private boolean _setOriginalCompanyId;
1533            private long _userId;
1534            private String _userName;
1535            private Date _createDate;
1536            private Date _modifiedDate;
1537            private long _repositoryId;
1538            private long _originalRepositoryId;
1539            private boolean _setOriginalRepositoryId;
1540            private boolean _mountPoint;
1541            private boolean _originalMountPoint;
1542            private boolean _setOriginalMountPoint;
1543            private long _parentFolderId;
1544            private long _originalParentFolderId;
1545            private boolean _setOriginalParentFolderId;
1546            private String _treePath;
1547            private String _name;
1548            private String _originalName;
1549            private String _description;
1550            private Date _lastPostDate;
1551            private long _defaultFileEntryTypeId;
1552            private boolean _hidden;
1553            private boolean _originalHidden;
1554            private boolean _setOriginalHidden;
1555            private int _restrictionType;
1556            private int _status;
1557            private int _originalStatus;
1558            private boolean _setOriginalStatus;
1559            private long _statusByUserId;
1560            private String _statusByUserName;
1561            private Date _statusDate;
1562            private long _columnBitmask;
1563            private DLFolder _escapedModel;
1564    }