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.wiki.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="WikiNodeSoap.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.wiki.service.http.WikiNodeServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.wiki.service.http.WikiNodeServiceSoap
44   *
45   */
46  public class WikiNodeSoap implements Serializable {
47      public static WikiNodeSoap toSoapModel(WikiNode model) {
48          WikiNodeSoap soapModel = new WikiNodeSoap();
49  
50          soapModel.setUuid(model.getUuid());
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<WikiNode> models) {
66          List<WikiNodeSoap> soapModels = new ArrayList<WikiNodeSoap>(models.size());
67  
68          for (WikiNode model : models) {
69              soapModels.add(toSoapModel(model));
70          }
71  
72          return soapModels.toArray(new WikiNodeSoap[soapModels.size()]);
73      }
74  
75      public WikiNodeSoap() {
76      }
77  
78      public long getPrimaryKey() {
79          return _nodeId;
80      }
81  
82      public void setPrimaryKey(long pk) {
83          setNodeId(pk);
84      }
85  
86      public String getUuid() {
87          return _uuid;
88      }
89  
90      public void setUuid(String uuid) {
91          _uuid = uuid;
92      }
93  
94      public long getNodeId() {
95          return _nodeId;
96      }
97  
98      public void setNodeId(long nodeId) {
99          _nodeId = nodeId;
100     }
101 
102     public long getGroupId() {
103         return _groupId;
104     }
105 
106     public void setGroupId(long groupId) {
107         _groupId = groupId;
108     }
109 
110     public long getCompanyId() {
111         return _companyId;
112     }
113 
114     public void setCompanyId(long companyId) {
115         _companyId = companyId;
116     }
117 
118     public long getUserId() {
119         return _userId;
120     }
121 
122     public void setUserId(long userId) {
123         _userId = userId;
124     }
125 
126     public String getUserName() {
127         return _userName;
128     }
129 
130     public void setUserName(String userName) {
131         _userName = userName;
132     }
133 
134     public Date getCreateDate() {
135         return _createDate;
136     }
137 
138     public void setCreateDate(Date createDate) {
139         _createDate = createDate;
140     }
141 
142     public Date getModifiedDate() {
143         return _modifiedDate;
144     }
145 
146     public void setModifiedDate(Date modifiedDate) {
147         _modifiedDate = modifiedDate;
148     }
149 
150     public String getName() {
151         return _name;
152     }
153 
154     public void setName(String name) {
155         _name = name;
156     }
157 
158     public String getDescription() {
159         return _description;
160     }
161 
162     public void setDescription(String description) {
163         _description = description;
164     }
165 
166     public Date getLastPostDate() {
167         return _lastPostDate;
168     }
169 
170     public void setLastPostDate(Date lastPostDate) {
171         _lastPostDate = lastPostDate;
172     }
173 
174     private String _uuid;
175     private long _nodeId;
176     private long _groupId;
177     private long _companyId;
178     private long _userId;
179     private String _userName;
180     private Date _createDate;
181     private Date _modifiedDate;
182     private String _name;
183     private String _description;
184     private Date _lastPostDate;
185 }