001
014
015 package com.liferay.portlet.documentlibrary.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
030 public class DLFileVersionSoap implements Serializable {
031 public static DLFileVersionSoap toSoapModel(DLFileVersion model) {
032 DLFileVersionSoap soapModel = new DLFileVersionSoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setFileVersionId(model.getFileVersionId());
036 soapModel.setGroupId(model.getGroupId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setModifiedDate(model.getModifiedDate());
042 soapModel.setRepositoryId(model.getRepositoryId());
043 soapModel.setFolderId(model.getFolderId());
044 soapModel.setFileEntryId(model.getFileEntryId());
045 soapModel.setExtension(model.getExtension());
046 soapModel.setMimeType(model.getMimeType());
047 soapModel.setTitle(model.getTitle());
048 soapModel.setDescription(model.getDescription());
049 soapModel.setChangeLog(model.getChangeLog());
050 soapModel.setExtraSettings(model.getExtraSettings());
051 soapModel.setFileEntryTypeId(model.getFileEntryTypeId());
052 soapModel.setVersion(model.getVersion());
053 soapModel.setSize(model.getSize());
054 soapModel.setStatus(model.getStatus());
055 soapModel.setStatusByUserId(model.getStatusByUserId());
056 soapModel.setStatusByUserName(model.getStatusByUserName());
057 soapModel.setStatusDate(model.getStatusDate());
058
059 return soapModel;
060 }
061
062 public static DLFileVersionSoap[] toSoapModels(DLFileVersion[] models) {
063 DLFileVersionSoap[] soapModels = new DLFileVersionSoap[models.length];
064
065 for (int i = 0; i < models.length; i++) {
066 soapModels[i] = toSoapModel(models[i]);
067 }
068
069 return soapModels;
070 }
071
072 public static DLFileVersionSoap[][] toSoapModels(DLFileVersion[][] models) {
073 DLFileVersionSoap[][] soapModels = null;
074
075 if (models.length > 0) {
076 soapModels = new DLFileVersionSoap[models.length][models[0].length];
077 }
078 else {
079 soapModels = new DLFileVersionSoap[0][0];
080 }
081
082 for (int i = 0; i < models.length; i++) {
083 soapModels[i] = toSoapModels(models[i]);
084 }
085
086 return soapModels;
087 }
088
089 public static DLFileVersionSoap[] toSoapModels(List<DLFileVersion> models) {
090 List<DLFileVersionSoap> soapModels = new ArrayList<DLFileVersionSoap>(models.size());
091
092 for (DLFileVersion model : models) {
093 soapModels.add(toSoapModel(model));
094 }
095
096 return soapModels.toArray(new DLFileVersionSoap[soapModels.size()]);
097 }
098
099 public DLFileVersionSoap() {
100 }
101
102 public long getPrimaryKey() {
103 return _fileVersionId;
104 }
105
106 public void setPrimaryKey(long pk) {
107 setFileVersionId(pk);
108 }
109
110 public String getUuid() {
111 return _uuid;
112 }
113
114 public void setUuid(String uuid) {
115 _uuid = uuid;
116 }
117
118 public long getFileVersionId() {
119 return _fileVersionId;
120 }
121
122 public void setFileVersionId(long fileVersionId) {
123 _fileVersionId = fileVersionId;
124 }
125
126 public long getGroupId() {
127 return _groupId;
128 }
129
130 public void setGroupId(long groupId) {
131 _groupId = groupId;
132 }
133
134 public long getCompanyId() {
135 return _companyId;
136 }
137
138 public void setCompanyId(long companyId) {
139 _companyId = companyId;
140 }
141
142 public long getUserId() {
143 return _userId;
144 }
145
146 public void setUserId(long userId) {
147 _userId = userId;
148 }
149
150 public String getUserName() {
151 return _userName;
152 }
153
154 public void setUserName(String userName) {
155 _userName = userName;
156 }
157
158 public Date getCreateDate() {
159 return _createDate;
160 }
161
162 public void setCreateDate(Date createDate) {
163 _createDate = createDate;
164 }
165
166 public Date getModifiedDate() {
167 return _modifiedDate;
168 }
169
170 public void setModifiedDate(Date modifiedDate) {
171 _modifiedDate = modifiedDate;
172 }
173
174 public long getRepositoryId() {
175 return _repositoryId;
176 }
177
178 public void setRepositoryId(long repositoryId) {
179 _repositoryId = repositoryId;
180 }
181
182 public long getFolderId() {
183 return _folderId;
184 }
185
186 public void setFolderId(long folderId) {
187 _folderId = folderId;
188 }
189
190 public long getFileEntryId() {
191 return _fileEntryId;
192 }
193
194 public void setFileEntryId(long fileEntryId) {
195 _fileEntryId = fileEntryId;
196 }
197
198 public String getExtension() {
199 return _extension;
200 }
201
202 public void setExtension(String extension) {
203 _extension = extension;
204 }
205
206 public String getMimeType() {
207 return _mimeType;
208 }
209
210 public void setMimeType(String mimeType) {
211 _mimeType = mimeType;
212 }
213
214 public String getTitle() {
215 return _title;
216 }
217
218 public void setTitle(String title) {
219 _title = title;
220 }
221
222 public String getDescription() {
223 return _description;
224 }
225
226 public void setDescription(String description) {
227 _description = description;
228 }
229
230 public String getChangeLog() {
231 return _changeLog;
232 }
233
234 public void setChangeLog(String changeLog) {
235 _changeLog = changeLog;
236 }
237
238 public String getExtraSettings() {
239 return _extraSettings;
240 }
241
242 public void setExtraSettings(String extraSettings) {
243 _extraSettings = extraSettings;
244 }
245
246 public long getFileEntryTypeId() {
247 return _fileEntryTypeId;
248 }
249
250 public void setFileEntryTypeId(long fileEntryTypeId) {
251 _fileEntryTypeId = fileEntryTypeId;
252 }
253
254 public String getVersion() {
255 return _version;
256 }
257
258 public void setVersion(String version) {
259 _version = version;
260 }
261
262 public long getSize() {
263 return _size;
264 }
265
266 public void setSize(long size) {
267 _size = size;
268 }
269
270 public int getStatus() {
271 return _status;
272 }
273
274 public void setStatus(int status) {
275 _status = status;
276 }
277
278 public long getStatusByUserId() {
279 return _statusByUserId;
280 }
281
282 public void setStatusByUserId(long statusByUserId) {
283 _statusByUserId = statusByUserId;
284 }
285
286 public String getStatusByUserName() {
287 return _statusByUserName;
288 }
289
290 public void setStatusByUserName(String statusByUserName) {
291 _statusByUserName = statusByUserName;
292 }
293
294 public Date getStatusDate() {
295 return _statusDate;
296 }
297
298 public void setStatusDate(Date statusDate) {
299 _statusDate = statusDate;
300 }
301
302 private String _uuid;
303 private long _fileVersionId;
304 private long _groupId;
305 private long _companyId;
306 private long _userId;
307 private String _userName;
308 private Date _createDate;
309 private Date _modifiedDate;
310 private long _repositoryId;
311 private long _folderId;
312 private long _fileEntryId;
313 private String _extension;
314 private String _mimeType;
315 private String _title;
316 private String _description;
317 private String _changeLog;
318 private String _extraSettings;
319 private long _fileEntryTypeId;
320 private String _version;
321 private long _size;
322 private int _status;
323 private long _statusByUserId;
324 private String _statusByUserName;
325 private Date _statusDate;
326 }