1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.setSize(model.getSize());
60          soapModel.setReadCount(model.getReadCount());
61          soapModel.setExtraSettings(model.getExtraSettings());
62  
63          return soapModel;
64      }
65  
66      public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
67          DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
68  
69          for (int i = 0; i < models.length; i++) {
70              soapModels[i] = toSoapModel(models[i]);
71          }
72  
73          return soapModels;
74      }
75  
76      public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
77          DLFileEntrySoap[][] soapModels = null;
78  
79          if (models.length > 0) {
80              soapModels = new DLFileEntrySoap[models.length][models[0].length];
81          }
82          else {
83              soapModels = new DLFileEntrySoap[0][0];
84          }
85  
86          for (int i = 0; i < models.length; i++) {
87              soapModels[i] = toSoapModels(models[i]);
88          }
89  
90          return soapModels;
91      }
92  
93      public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
94          List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
95  
96          for (DLFileEntry model : models) {
97              soapModels.add(toSoapModel(model));
98          }
99  
100         return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
101     }
102 
103     public DLFileEntrySoap() {
104     }
105 
106     public long getPrimaryKey() {
107         return _fileEntryId;
108     }
109 
110     public void setPrimaryKey(long pk) {
111         setFileEntryId(pk);
112     }
113 
114     public String getUuid() {
115         return _uuid;
116     }
117 
118     public void setUuid(String uuid) {
119         _uuid = uuid;
120     }
121 
122     public long getFileEntryId() {
123         return _fileEntryId;
124     }
125 
126     public void setFileEntryId(long fileEntryId) {
127         _fileEntryId = fileEntryId;
128     }
129 
130     public long getGroupId() {
131         return _groupId;
132     }
133 
134     public void setGroupId(long groupId) {
135         _groupId = groupId;
136     }
137 
138     public long getCompanyId() {
139         return _companyId;
140     }
141 
142     public void setCompanyId(long companyId) {
143         _companyId = companyId;
144     }
145 
146     public long getUserId() {
147         return _userId;
148     }
149 
150     public void setUserId(long userId) {
151         _userId = userId;
152     }
153 
154     public String getUserName() {
155         return _userName;
156     }
157 
158     public void setUserName(String userName) {
159         _userName = userName;
160     }
161 
162     public long getVersionUserId() {
163         return _versionUserId;
164     }
165 
166     public void setVersionUserId(long versionUserId) {
167         _versionUserId = versionUserId;
168     }
169 
170     public String getVersionUserName() {
171         return _versionUserName;
172     }
173 
174     public void setVersionUserName(String versionUserName) {
175         _versionUserName = versionUserName;
176     }
177 
178     public Date getCreateDate() {
179         return _createDate;
180     }
181 
182     public void setCreateDate(Date createDate) {
183         _createDate = createDate;
184     }
185 
186     public Date getModifiedDate() {
187         return _modifiedDate;
188     }
189 
190     public void setModifiedDate(Date modifiedDate) {
191         _modifiedDate = modifiedDate;
192     }
193 
194     public long getFolderId() {
195         return _folderId;
196     }
197 
198     public void setFolderId(long folderId) {
199         _folderId = folderId;
200     }
201 
202     public String getName() {
203         return _name;
204     }
205 
206     public void setName(String name) {
207         _name = name;
208     }
209 
210     public String getTitle() {
211         return _title;
212     }
213 
214     public void setTitle(String title) {
215         _title = title;
216     }
217 
218     public String getDescription() {
219         return _description;
220     }
221 
222     public void setDescription(String description) {
223         _description = description;
224     }
225 
226     public double getVersion() {
227         return _version;
228     }
229 
230     public void setVersion(double version) {
231         _version = version;
232     }
233 
234     public int getSize() {
235         return _size;
236     }
237 
238     public void setSize(int size) {
239         _size = size;
240     }
241 
242     public int getReadCount() {
243         return _readCount;
244     }
245 
246     public void setReadCount(int readCount) {
247         _readCount = readCount;
248     }
249 
250     public String getExtraSettings() {
251         return _extraSettings;
252     }
253 
254     public void setExtraSettings(String extraSettings) {
255         _extraSettings = extraSettings;
256     }
257 
258     private String _uuid;
259     private long _fileEntryId;
260     private long _groupId;
261     private long _companyId;
262     private long _userId;
263     private String _userName;
264     private long _versionUserId;
265     private String _versionUserName;
266     private Date _createDate;
267     private Date _modifiedDate;
268     private long _folderId;
269     private String _name;
270     private String _title;
271     private String _description;
272     private double _version;
273     private int _size;
274     private int _readCount;
275     private String _extraSettings;
276 }