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