1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.documentlibrary.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="DLFileEntrySoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap
47   *
48   */
49  public class DLFileEntrySoap implements Serializable {
50      public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
51          DLFileEntrySoap soapModel = new DLFileEntrySoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setFileEntryId(model.getFileEntryId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setVersionUserId(model.getVersionUserId());
60          soapModel.setVersionUserName(model.getVersionUserName());
61          soapModel.setCreateDate(model.getCreateDate());
62          soapModel.setModifiedDate(model.getModifiedDate());
63          soapModel.setFolderId(model.getFolderId());
64          soapModel.setName(model.getName());
65          soapModel.setTitle(model.getTitle());
66          soapModel.setDescription(model.getDescription());
67          soapModel.setVersion(model.getVersion());
68          soapModel.setSize(model.getSize());
69          soapModel.setReadCount(model.getReadCount());
70          soapModel.setExtraSettings(model.getExtraSettings());
71  
72          return soapModel;
73      }
74  
75      public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
76          DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
77  
78          for (int i = 0; i < models.length; i++) {
79              soapModels[i] = toSoapModel(models[i]);
80          }
81  
82          return soapModels;
83      }
84  
85      public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
86          DLFileEntrySoap[][] soapModels = null;
87  
88          if (models.length > 0) {
89              soapModels = new DLFileEntrySoap[models.length][models[0].length];
90          }
91          else {
92              soapModels = new DLFileEntrySoap[0][0];
93          }
94  
95          for (int i = 0; i < models.length; i++) {
96              soapModels[i] = toSoapModels(models[i]);
97          }
98  
99          return soapModels;
100     }
101 
102     public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
103         List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
104 
105         for (DLFileEntry model : models) {
106             soapModels.add(toSoapModel(model));
107         }
108 
109         return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
110     }
111 
112     public DLFileEntrySoap() {
113     }
114 
115     public long getPrimaryKey() {
116         return _fileEntryId;
117     }
118 
119     public void setPrimaryKey(long pk) {
120         setFileEntryId(pk);
121     }
122 
123     public String getUuid() {
124         return _uuid;
125     }
126 
127     public void setUuid(String uuid) {
128         _uuid = uuid;
129     }
130 
131     public long getFileEntryId() {
132         return _fileEntryId;
133     }
134 
135     public void setFileEntryId(long fileEntryId) {
136         _fileEntryId = fileEntryId;
137     }
138 
139     public long getGroupId() {
140         return _groupId;
141     }
142 
143     public void setGroupId(long groupId) {
144         _groupId = groupId;
145     }
146 
147     public long getCompanyId() {
148         return _companyId;
149     }
150 
151     public void setCompanyId(long companyId) {
152         _companyId = companyId;
153     }
154 
155     public long getUserId() {
156         return _userId;
157     }
158 
159     public void setUserId(long userId) {
160         _userId = userId;
161     }
162 
163     public String getUserName() {
164         return _userName;
165     }
166 
167     public void setUserName(String userName) {
168         _userName = userName;
169     }
170 
171     public long getVersionUserId() {
172         return _versionUserId;
173     }
174 
175     public void setVersionUserId(long versionUserId) {
176         _versionUserId = versionUserId;
177     }
178 
179     public String getVersionUserName() {
180         return _versionUserName;
181     }
182 
183     public void setVersionUserName(String versionUserName) {
184         _versionUserName = versionUserName;
185     }
186 
187     public Date getCreateDate() {
188         return _createDate;
189     }
190 
191     public void setCreateDate(Date createDate) {
192         _createDate = createDate;
193     }
194 
195     public Date getModifiedDate() {
196         return _modifiedDate;
197     }
198 
199     public void setModifiedDate(Date modifiedDate) {
200         _modifiedDate = modifiedDate;
201     }
202 
203     public long getFolderId() {
204         return _folderId;
205     }
206 
207     public void setFolderId(long folderId) {
208         _folderId = folderId;
209     }
210 
211     public String getName() {
212         return _name;
213     }
214 
215     public void setName(String name) {
216         _name = name;
217     }
218 
219     public String getTitle() {
220         return _title;
221     }
222 
223     public void setTitle(String title) {
224         _title = title;
225     }
226 
227     public String getDescription() {
228         return _description;
229     }
230 
231     public void setDescription(String description) {
232         _description = description;
233     }
234 
235     public double getVersion() {
236         return _version;
237     }
238 
239     public void setVersion(double version) {
240         _version = version;
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 double _version;
282     private int _size;
283     private int _readCount;
284     private String _extraSettings;
285 }