1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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="DLFolderSoap.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.DLFolderServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.documentlibrary.service.http.DLFolderServiceSoap
38   * @generated
39   */
40  public class DLFolderSoap implements Serializable {
41      public static DLFolderSoap toSoapModel(DLFolder model) {
42          DLFolderSoap soapModel = new DLFolderSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setFolderId(model.getFolderId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setParentFolderId(model.getParentFolderId());
53          soapModel.setName(model.getName());
54          soapModel.setDescription(model.getDescription());
55          soapModel.setLastPostDate(model.getLastPostDate());
56  
57          return soapModel;
58      }
59  
60      public static DLFolderSoap[] toSoapModels(DLFolder[] models) {
61          DLFolderSoap[] soapModels = new DLFolderSoap[models.length];
62  
63          for (int i = 0; i < models.length; i++) {
64              soapModels[i] = toSoapModel(models[i]);
65          }
66  
67          return soapModels;
68      }
69  
70      public static DLFolderSoap[][] toSoapModels(DLFolder[][] models) {
71          DLFolderSoap[][] soapModels = null;
72  
73          if (models.length > 0) {
74              soapModels = new DLFolderSoap[models.length][models[0].length];
75          }
76          else {
77              soapModels = new DLFolderSoap[0][0];
78          }
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModels(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static DLFolderSoap[] toSoapModels(List<DLFolder> models) {
88          List<DLFolderSoap> soapModels = new ArrayList<DLFolderSoap>(models.size());
89  
90          for (DLFolder model : models) {
91              soapModels.add(toSoapModel(model));
92          }
93  
94          return soapModels.toArray(new DLFolderSoap[soapModels.size()]);
95      }
96  
97      public DLFolderSoap() {
98      }
99  
100     public long getPrimaryKey() {
101         return _folderId;
102     }
103 
104     public void setPrimaryKey(long pk) {
105         setFolderId(pk);
106     }
107 
108     public String getUuid() {
109         return _uuid;
110     }
111 
112     public void setUuid(String uuid) {
113         _uuid = uuid;
114     }
115 
116     public long getFolderId() {
117         return _folderId;
118     }
119 
120     public void setFolderId(long folderId) {
121         _folderId = folderId;
122     }
123 
124     public long getGroupId() {
125         return _groupId;
126     }
127 
128     public void setGroupId(long groupId) {
129         _groupId = groupId;
130     }
131 
132     public long getCompanyId() {
133         return _companyId;
134     }
135 
136     public void setCompanyId(long companyId) {
137         _companyId = companyId;
138     }
139 
140     public long getUserId() {
141         return _userId;
142     }
143 
144     public void setUserId(long userId) {
145         _userId = userId;
146     }
147 
148     public String getUserName() {
149         return _userName;
150     }
151 
152     public void setUserName(String userName) {
153         _userName = userName;
154     }
155 
156     public Date getCreateDate() {
157         return _createDate;
158     }
159 
160     public void setCreateDate(Date createDate) {
161         _createDate = createDate;
162     }
163 
164     public Date getModifiedDate() {
165         return _modifiedDate;
166     }
167 
168     public void setModifiedDate(Date modifiedDate) {
169         _modifiedDate = modifiedDate;
170     }
171 
172     public long getParentFolderId() {
173         return _parentFolderId;
174     }
175 
176     public void setParentFolderId(long parentFolderId) {
177         _parentFolderId = parentFolderId;
178     }
179 
180     public String getName() {
181         return _name;
182     }
183 
184     public void setName(String name) {
185         _name = name;
186     }
187 
188     public String getDescription() {
189         return _description;
190     }
191 
192     public void setDescription(String description) {
193         _description = description;
194     }
195 
196     public Date getLastPostDate() {
197         return _lastPostDate;
198     }
199 
200     public void setLastPostDate(Date lastPostDate) {
201         _lastPostDate = lastPostDate;
202     }
203 
204     private String _uuid;
205     private long _folderId;
206     private long _groupId;
207     private long _companyId;
208     private long _userId;
209     private String _userName;
210     private Date _createDate;
211     private Date _modifiedDate;
212     private long _parentFolderId;
213     private String _name;
214     private String _description;
215     private Date _lastPostDate;
216 }