1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.documentlibrary.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="DLFileEntrySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap
38   * @generated
39   */
40  public class DLFileEntrySoap implements Serializable {
41      public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
42          DLFileEntrySoap soapModel = new DLFileEntrySoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setFileEntryId(model.getFileEntryId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setVersionUserId(model.getVersionUserId());
51          soapModel.setVersionUserName(model.getVersionUserName());
52          soapModel.setCreateDate(model.getCreateDate());
53          soapModel.setModifiedDate(model.getModifiedDate());
54          soapModel.setFolderId(model.getFolderId());
55          soapModel.setName(model.getName());
56          soapModel.setTitle(model.getTitle());
57          soapModel.setDescription(model.getDescription());
58          soapModel.setVersion(model.getVersion());
59          soapModel.setPendingVersion(model.getPendingVersion());
60          soapModel.setSize(model.getSize());
61          soapModel.setReadCount(model.getReadCount());
62          soapModel.setExtraSettings(model.getExtraSettings());
63  
64          return soapModel;
65      }
66  
67      public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
68          DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
69  
70          for (int i = 0; i < models.length; i++) {
71              soapModels[i] = toSoapModel(models[i]);
72          }
73  
74          return soapModels;
75      }
76  
77      public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
78          DLFileEntrySoap[][] soapModels = null;
79  
80          if (models.length > 0) {
81              soapModels = new DLFileEntrySoap[models.length][models[0].length];
82          }
83          else {
84              soapModels = new DLFileEntrySoap[0][0];
85          }
86  
87          for (int i = 0; i < models.length; i++) {
88              soapModels[i] = toSoapModels(models[i]);
89          }
90  
91          return soapModels;
92      }
93  
94      public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
95          List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
96  
97          for (DLFileEntry model : models) {
98              soapModels.add(toSoapModel(model));
99          }
100 
101         return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
102     }
103 
104     public DLFileEntrySoap() {
105     }
106 
107     public long getPrimaryKey() {
108         return _fileEntryId;
109     }
110 
111     public void setPrimaryKey(long pk) {
112         setFileEntryId(pk);
113     }
114 
115     public String getUuid() {
116         return _uuid;
117     }
118 
119     public void setUuid(String uuid) {
120         _uuid = uuid;
121     }
122 
123     public long getFileEntryId() {
124         return _fileEntryId;
125     }
126 
127     public void setFileEntryId(long fileEntryId) {
128         _fileEntryId = fileEntryId;
129     }
130 
131     public long getGroupId() {
132         return _groupId;
133     }
134 
135     public void setGroupId(long groupId) {
136         _groupId = groupId;
137     }
138 
139     public long getCompanyId() {
140         return _companyId;
141     }
142 
143     public void setCompanyId(long companyId) {
144         _companyId = companyId;
145     }
146 
147     public long getUserId() {
148         return _userId;
149     }
150 
151     public void setUserId(long userId) {
152         _userId = userId;
153     }
154 
155     public String getUserName() {
156         return _userName;
157     }
158 
159     public void setUserName(String userName) {
160         _userName = userName;
161     }
162 
163     public long getVersionUserId() {
164         return _versionUserId;
165     }
166 
167     public void setVersionUserId(long versionUserId) {
168         _versionUserId = versionUserId;
169     }
170 
171     public String getVersionUserName() {
172         return _versionUserName;
173     }
174 
175     public void setVersionUserName(String versionUserName) {
176         _versionUserName = versionUserName;
177     }
178 
179     public Date getCreateDate() {
180         return _createDate;
181     }
182 
183     public void setCreateDate(Date createDate) {
184         _createDate = createDate;
185     }
186 
187     public Date getModifiedDate() {
188         return _modifiedDate;
189     }
190 
191     public void setModifiedDate(Date modifiedDate) {
192         _modifiedDate = modifiedDate;
193     }
194 
195     public long getFolderId() {
196         return _folderId;
197     }
198 
199     public void setFolderId(long folderId) {
200         _folderId = folderId;
201     }
202 
203     public String getName() {
204         return _name;
205     }
206 
207     public void setName(String name) {
208         _name = name;
209     }
210 
211     public String getTitle() {
212         return _title;
213     }
214 
215     public void setTitle(String title) {
216         _title = title;
217     }
218 
219     public String getDescription() {
220         return _description;
221     }
222 
223     public void setDescription(String description) {
224         _description = description;
225     }
226 
227     public String getVersion() {
228         return _version;
229     }
230 
231     public void setVersion(String version) {
232         _version = version;
233     }
234 
235     public String getPendingVersion() {
236         return _pendingVersion;
237     }
238 
239     public void setPendingVersion(String pendingVersion) {
240         _pendingVersion = pendingVersion;
241     }
242 
243     public int getSize() {
244         return _size;
245     }
246 
247     public void setSize(int size) {
248         _size = size;
249     }
250 
251     public int getReadCount() {
252         return _readCount;
253     }
254 
255     public void setReadCount(int readCount) {
256         _readCount = readCount;
257     }
258 
259     public String getExtraSettings() {
260         return _extraSettings;
261     }
262 
263     public void setExtraSettings(String extraSettings) {
264         _extraSettings = extraSettings;
265     }
266 
267     private String _uuid;
268     private long _fileEntryId;
269     private long _groupId;
270     private long _companyId;
271     private long _userId;
272     private String _userName;
273     private long _versionUserId;
274     private String _versionUserName;
275     private Date _createDate;
276     private Date _modifiedDate;
277     private long _folderId;
278     private String _name;
279     private String _title;
280     private String _description;
281     private String _version;
282     private String _pendingVersion;
283     private int _size;
284     private int _readCount;
285     private String _extraSettings;
286 }