1   /**
2    * Copyright (c) 2000-2008 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.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setVersionUserId(model.getVersionUserId());
59          soapModel.setVersionUserName(model.getVersionUserName());
60          soapModel.setCreateDate(model.getCreateDate());
61          soapModel.setModifiedDate(model.getModifiedDate());
62          soapModel.setFolderId(model.getFolderId());
63          soapModel.setName(model.getName());
64          soapModel.setTitle(model.getTitle());
65          soapModel.setDescription(model.getDescription());
66          soapModel.setVersion(model.getVersion());
67          soapModel.setSize(model.getSize());
68          soapModel.setReadCount(model.getReadCount());
69          soapModel.setExtraSettings(model.getExtraSettings());
70  
71          return soapModel;
72      }
73  
74      public static DLFileEntrySoap[] toSoapModels(List models) {
75          List soapModels = new ArrayList(models.size());
76  
77          for (int i = 0; i < models.size(); i++) {
78              DLFileEntry model = (DLFileEntry)models.get(i);
79  
80              soapModels.add(toSoapModel(model));
81          }
82  
83          return (DLFileEntrySoap[])soapModels.toArray(new DLFileEntrySoap[0]);
84      }
85  
86      public DLFileEntrySoap() {
87      }
88  
89      public long getPrimaryKey() {
90          return _fileEntryId;
91      }
92  
93      public void setPrimaryKey(long pk) {
94          setFileEntryId(pk);
95      }
96  
97      public String getUuid() {
98          return _uuid;
99      }
100 
101     public void setUuid(String uuid) {
102         _uuid = uuid;
103     }
104 
105     public long getFileEntryId() {
106         return _fileEntryId;
107     }
108 
109     public void setFileEntryId(long fileEntryId) {
110         _fileEntryId = fileEntryId;
111     }
112 
113     public long getCompanyId() {
114         return _companyId;
115     }
116 
117     public void setCompanyId(long companyId) {
118         _companyId = companyId;
119     }
120 
121     public long getUserId() {
122         return _userId;
123     }
124 
125     public void setUserId(long userId) {
126         _userId = userId;
127     }
128 
129     public String getUserName() {
130         return _userName;
131     }
132 
133     public void setUserName(String userName) {
134         _userName = userName;
135     }
136 
137     public long getVersionUserId() {
138         return _versionUserId;
139     }
140 
141     public void setVersionUserId(long versionUserId) {
142         _versionUserId = versionUserId;
143     }
144 
145     public String getVersionUserName() {
146         return _versionUserName;
147     }
148 
149     public void setVersionUserName(String versionUserName) {
150         _versionUserName = versionUserName;
151     }
152 
153     public Date getCreateDate() {
154         return _createDate;
155     }
156 
157     public void setCreateDate(Date createDate) {
158         _createDate = createDate;
159     }
160 
161     public Date getModifiedDate() {
162         return _modifiedDate;
163     }
164 
165     public void setModifiedDate(Date modifiedDate) {
166         _modifiedDate = modifiedDate;
167     }
168 
169     public long getFolderId() {
170         return _folderId;
171     }
172 
173     public void setFolderId(long folderId) {
174         _folderId = folderId;
175     }
176 
177     public String getName() {
178         return _name;
179     }
180 
181     public void setName(String name) {
182         _name = name;
183     }
184 
185     public String getTitle() {
186         return _title;
187     }
188 
189     public void setTitle(String title) {
190         _title = title;
191     }
192 
193     public String getDescription() {
194         return _description;
195     }
196 
197     public void setDescription(String description) {
198         _description = description;
199     }
200 
201     public double getVersion() {
202         return _version;
203     }
204 
205     public void setVersion(double version) {
206         _version = version;
207     }
208 
209     public int getSize() {
210         return _size;
211     }
212 
213     public void setSize(int size) {
214         _size = size;
215     }
216 
217     public int getReadCount() {
218         return _readCount;
219     }
220 
221     public void setReadCount(int readCount) {
222         _readCount = readCount;
223     }
224 
225     public String getExtraSettings() {
226         return _extraSettings;
227     }
228 
229     public void setExtraSettings(String extraSettings) {
230         _extraSettings = extraSettings;
231     }
232 
233     private String _uuid;
234     private long _fileEntryId;
235     private long _companyId;
236     private long _userId;
237     private String _userName;
238     private long _versionUserId;
239     private String _versionUserName;
240     private Date _createDate;
241     private Date _modifiedDate;
242     private long _folderId;
243     private String _name;
244     private String _title;
245     private String _description;
246     private double _version;
247     private int _size;
248     private int _readCount;
249     private String _extraSettings;
250 }