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