1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.documentlibrary.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="DLFolderSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.documentlibrary.service.http.DLFolderServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.documentlibrary.service.http.DLFolderServiceSoap
44   *
45   */
46  public class DLFolderSoap implements Serializable {
47      public static DLFolderSoap toSoapModel(DLFolder model) {
48          DLFolderSoap soapModel = new DLFolderSoap();
49  
50          soapModel.setUuid(model.getUuid());
51          soapModel.setFolderId(model.getFolderId());
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setParentFolderId(model.getParentFolderId());
59          soapModel.setName(model.getName());
60          soapModel.setDescription(model.getDescription());
61          soapModel.setLastPostDate(model.getLastPostDate());
62  
63          return soapModel;
64      }
65  
66      public static DLFolderSoap[] toSoapModels(List<DLFolder> models) {
67          List<DLFolderSoap> soapModels = new ArrayList<DLFolderSoap>(models.size());
68  
69          for (DLFolder model : models) {
70              soapModels.add(toSoapModel(model));
71          }
72  
73          return soapModels.toArray(new DLFolderSoap[soapModels.size()]);
74      }
75  
76      public DLFolderSoap() {
77      }
78  
79      public long getPrimaryKey() {
80          return _folderId;
81      }
82  
83      public void setPrimaryKey(long pk) {
84          setFolderId(pk);
85      }
86  
87      public String getUuid() {
88          return _uuid;
89      }
90  
91      public void setUuid(String uuid) {
92          _uuid = uuid;
93      }
94  
95      public long getFolderId() {
96          return _folderId;
97      }
98  
99      public void setFolderId(long folderId) {
100         _folderId = folderId;
101     }
102 
103     public long getGroupId() {
104         return _groupId;
105     }
106 
107     public void setGroupId(long groupId) {
108         _groupId = groupId;
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 Date getCreateDate() {
136         return _createDate;
137     }
138 
139     public void setCreateDate(Date createDate) {
140         _createDate = createDate;
141     }
142 
143     public Date getModifiedDate() {
144         return _modifiedDate;
145     }
146 
147     public void setModifiedDate(Date modifiedDate) {
148         _modifiedDate = modifiedDate;
149     }
150 
151     public long getParentFolderId() {
152         return _parentFolderId;
153     }
154 
155     public void setParentFolderId(long parentFolderId) {
156         _parentFolderId = parentFolderId;
157     }
158 
159     public String getName() {
160         return _name;
161     }
162 
163     public void setName(String name) {
164         _name = name;
165     }
166 
167     public String getDescription() {
168         return _description;
169     }
170 
171     public void setDescription(String description) {
172         _description = description;
173     }
174 
175     public Date getLastPostDate() {
176         return _lastPostDate;
177     }
178 
179     public void setLastPostDate(Date lastPostDate) {
180         _lastPostDate = lastPostDate;
181     }
182 
183     private String _uuid;
184     private long _folderId;
185     private long _groupId;
186     private long _companyId;
187     private long _userId;
188     private String _userName;
189     private Date _createDate;
190     private Date _modifiedDate;
191     private long _parentFolderId;
192     private String _name;
193     private String _description;
194     private Date _lastPostDate;
195 }