1   /**
2    * Copyright (c) 2000-2007 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.wiki.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="WikiNodeSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be overwritten
36   * the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by <code>com.liferay.portlet.wiki.service.http.WikiNodeServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portlet.wiki.service.http.WikiNodeServiceSoap
46   *
47   */
48  public class WikiNodeSoap implements Serializable {
49      public static WikiNodeSoap toSoapModel(WikiNode model) {
50          WikiNodeSoap soapModel = new WikiNodeSoap();
51          soapModel.setNodeId(model.getNodeId());
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.setName(model.getName());
59          soapModel.setDescription(model.getDescription());
60          soapModel.setLastPostDate(model.getLastPostDate());
61  
62          return soapModel;
63      }
64  
65      public static WikiNodeSoap[] toSoapModels(List models) {
66          List soapModels = new ArrayList(models.size());
67  
68          for (int i = 0; i < models.size(); i++) {
69              WikiNode model = (WikiNode)models.get(i);
70              soapModels.add(toSoapModel(model));
71          }
72  
73          return (WikiNodeSoap[])soapModels.toArray(new WikiNodeSoap[0]);
74      }
75  
76      public WikiNodeSoap() {
77      }
78  
79      public long getPrimaryKey() {
80          return _nodeId;
81      }
82  
83      public void setPrimaryKey(long pk) {
84          setNodeId(pk);
85      }
86  
87      public long getNodeId() {
88          return _nodeId;
89      }
90  
91      public void setNodeId(long nodeId) {
92          _nodeId = nodeId;
93      }
94  
95      public long getGroupId() {
96          return _groupId;
97      }
98  
99      public void setGroupId(long groupId) {
100         _groupId = groupId;
101     }
102 
103     public long getCompanyId() {
104         return _companyId;
105     }
106 
107     public void setCompanyId(long companyId) {
108         _companyId = companyId;
109     }
110 
111     public long getUserId() {
112         return _userId;
113     }
114 
115     public void setUserId(long userId) {
116         _userId = userId;
117     }
118 
119     public String getUserName() {
120         return _userName;
121     }
122 
123     public void setUserName(String userName) {
124         _userName = userName;
125     }
126 
127     public Date getCreateDate() {
128         return _createDate;
129     }
130 
131     public void setCreateDate(Date createDate) {
132         _createDate = createDate;
133     }
134 
135     public Date getModifiedDate() {
136         return _modifiedDate;
137     }
138 
139     public void setModifiedDate(Date modifiedDate) {
140         _modifiedDate = modifiedDate;
141     }
142 
143     public String getName() {
144         return _name;
145     }
146 
147     public void setName(String name) {
148         _name = name;
149     }
150 
151     public String getDescription() {
152         return _description;
153     }
154 
155     public void setDescription(String description) {
156         _description = description;
157     }
158 
159     public Date getLastPostDate() {
160         return _lastPostDate;
161     }
162 
163     public void setLastPostDate(Date lastPostDate) {
164         _lastPostDate = lastPostDate;
165     }
166 
167     private long _nodeId;
168     private long _groupId;
169     private long _companyId;
170     private long _userId;
171     private String _userName;
172     private Date _createDate;
173     private Date _modifiedDate;
174     private String _name;
175     private String _description;
176     private Date _lastPostDate;
177 }