001    /**
002     * Copyright (c) 2000-2011 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;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.kernel.util.StringBundler;
019    import com.liferay.portal.util.PortalUtil;
020    
021    import java.io.Serializable;
022    import java.util.Date;
023    
024    /**
025     * @author Brian Wing Shun Chan
026     */
027    public class FileModel implements Serializable {
028    
029            public long[] getAssetCategoryIds() {
030                    return _assetCategoryIds;
031            }
032    
033            public String[] getAssetCategoryNames() {
034                    return _assetCategoryNames;
035            }
036    
037            public String[] getAssetTagNames() {
038                    return _assetTagNames;
039            }
040    
041            public long getCompanyId() {
042                    return _companyId;
043            }
044    
045            public Date getCreateDate() {
046                    return _createDate;
047            }
048    
049            public long getFileEntryId() {
050                    return _fileEntryId;
051            }
052    
053            public String getFileName() {
054                    return _fileName;
055            }
056    
057            public long getGroupId() {
058                    return _groupId;
059            }
060    
061            public Date getModifiedDate() {
062                    return _modifiedDate;
063            }
064    
065            public String getPortletId() {
066                    return _portletId;
067            }
068    
069            public String getProperties() {
070                    return _properties;
071            }
072    
073            public long getRepositoryId() {
074                    return _repositoryId;
075            }
076    
077            public long getUserId() {
078                    return _userId;
079            }
080    
081            public String getUserName() {
082                    return _userName;
083            }
084    
085            public String getUserUuid() throws SystemException {
086                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
087            }
088    
089            public void setAssetCategoryIds(long[] assetCategoryIds) {
090                    _assetCategoryIds = assetCategoryIds;
091            }
092    
093            public void setAssetCategoryNames(String[] assetCategoryNames) {
094                    _assetCategoryNames = assetCategoryNames;
095            }
096    
097            public void setAssetTagNames(String[] assetTagNames) {
098                    _assetTagNames = assetTagNames;
099            }
100    
101            public void setCompanyId(long companyId) {
102                    _companyId = companyId;
103            }
104    
105            public void setCreateDate(Date createDate) {
106                    _createDate = createDate;
107            }
108    
109            public void setFileEntryId(long fileEntryId) {
110                    _fileEntryId = fileEntryId;
111            }
112    
113            public void setFileName(String fileName) {
114                    _fileName = fileName;
115            }
116    
117            public void setGroupId(long groupId) {
118                    _groupId = groupId;
119            }
120    
121            public void setModifiedDate(Date modifiedDate) {
122                    _modifiedDate = modifiedDate;
123            }
124    
125            public void setPortletId(String portletId) {
126                    _portletId = portletId;
127            }
128    
129            public void setProperties(String properties) {
130                    _properties = properties;
131            }
132    
133            public void setRepositoryId(long repositoryId) {
134                    _repositoryId = repositoryId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public void setUserName(String userName) {
142                    _userName = userName;
143            }
144    
145            public void setUserUuid(String userUuid) {
146                    _userUuid = userUuid;
147            }
148    
149            @Override
150            public String toString() {
151                    StringBundler sb = new StringBundler(31);
152    
153                    sb.append("{assetCategoryIds=");
154                    sb.append(_assetCategoryIds);
155                    sb.append(", assetCategoryNames=");
156                    sb.append(_assetCategoryNames);
157                    sb.append(", assetTagNames=");
158                    sb.append(_assetTagNames);
159                    sb.append(", companyId=");
160                    sb.append(_companyId);
161                    sb.append(", createDate=");
162                    sb.append(_createDate);
163                    sb.append(", fileEntryId=");
164                    sb.append(_fileEntryId);
165                    sb.append(", fileName=");
166                    sb.append(_fileName);
167                    sb.append(", groupId=");
168                    sb.append(_groupId);
169                    sb.append(", modifiedDate=");
170                    sb.append(_modifiedDate);
171                    sb.append(", portletId=");
172                    sb.append(_portletId);
173                    sb.append(", properties=");
174                    sb.append(_properties);
175                    sb.append(", repositoryId=");
176                    sb.append(_repositoryId);
177                    sb.append(", userId=");
178                    sb.append(_userId);
179                    sb.append(", userName=");
180                    sb.append(_userName);
181                    sb.append(", userUuid=");
182                    sb.append(_userUuid);
183                    sb.append("}");
184    
185                    return sb.toString();
186            }
187    
188            private long[] _assetCategoryIds;
189            private String[] _assetCategoryNames;
190            private String[] _assetTagNames;
191            private long _companyId;
192            private Date _createDate;
193            private long _fileEntryId;
194            private String _fileName;
195            private long _groupId;
196            private Date _modifiedDate;
197            private String _portletId;
198            private String _properties;
199            private long _repositoryId;
200            private long _userId;
201            private String _userName;
202            private String _userUuid;
203    
204    }