1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portlet.wiki.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="WikiNodeSoap.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.wiki.service.http.WikiNodeServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.wiki.service.http.WikiNodeServiceSoap
38   * @generated
39   */
40  public class WikiNodeSoap implements Serializable {
41      public static WikiNodeSoap toSoapModel(WikiNode model) {
42          WikiNodeSoap soapModel = new WikiNodeSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setNodeId(model.getNodeId());
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.setName(model.getName());
53          soapModel.setDescription(model.getDescription());
54          soapModel.setLastPostDate(model.getLastPostDate());
55  
56          return soapModel;
57      }
58  
59      public static WikiNodeSoap[] toSoapModels(WikiNode[] models) {
60          WikiNodeSoap[] soapModels = new WikiNodeSoap[models.length];
61  
62          for (int i = 0; i < models.length; i++) {
63              soapModels[i] = toSoapModel(models[i]);
64          }
65  
66          return soapModels;
67      }
68  
69      public static WikiNodeSoap[][] toSoapModels(WikiNode[][] models) {
70          WikiNodeSoap[][] soapModels = null;
71  
72          if (models.length > 0) {
73              soapModels = new WikiNodeSoap[models.length][models[0].length];
74          }
75          else {
76              soapModels = new WikiNodeSoap[0][0];
77          }
78  
79          for (int i = 0; i < models.length; i++) {
80              soapModels[i] = toSoapModels(models[i]);
81          }
82  
83          return soapModels;
84      }
85  
86      public static WikiNodeSoap[] toSoapModels(List<WikiNode> models) {
87          List<WikiNodeSoap> soapModels = new ArrayList<WikiNodeSoap>(models.size());
88  
89          for (WikiNode model : models) {
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return soapModels.toArray(new WikiNodeSoap[soapModels.size()]);
94      }
95  
96      public WikiNodeSoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _nodeId;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setNodeId(pk);
105     }
106 
107     public String getUuid() {
108         return _uuid;
109     }
110 
111     public void setUuid(String uuid) {
112         _uuid = uuid;
113     }
114 
115     public long getNodeId() {
116         return _nodeId;
117     }
118 
119     public void setNodeId(long nodeId) {
120         _nodeId = nodeId;
121     }
122 
123     public long getGroupId() {
124         return _groupId;
125     }
126 
127     public void setGroupId(long groupId) {
128         _groupId = groupId;
129     }
130 
131     public long getCompanyId() {
132         return _companyId;
133     }
134 
135     public void setCompanyId(long companyId) {
136         _companyId = companyId;
137     }
138 
139     public long getUserId() {
140         return _userId;
141     }
142 
143     public void setUserId(long userId) {
144         _userId = userId;
145     }
146 
147     public String getUserName() {
148         return _userName;
149     }
150 
151     public void setUserName(String userName) {
152         _userName = userName;
153     }
154 
155     public Date getCreateDate() {
156         return _createDate;
157     }
158 
159     public void setCreateDate(Date createDate) {
160         _createDate = createDate;
161     }
162 
163     public Date getModifiedDate() {
164         return _modifiedDate;
165     }
166 
167     public void setModifiedDate(Date modifiedDate) {
168         _modifiedDate = modifiedDate;
169     }
170 
171     public String getName() {
172         return _name;
173     }
174 
175     public void setName(String name) {
176         _name = name;
177     }
178 
179     public String getDescription() {
180         return _description;
181     }
182 
183     public void setDescription(String description) {
184         _description = description;
185     }
186 
187     public Date getLastPostDate() {
188         return _lastPostDate;
189     }
190 
191     public void setLastPostDate(Date lastPostDate) {
192         _lastPostDate = lastPostDate;
193     }
194 
195     private String _uuid;
196     private long _nodeId;
197     private long _groupId;
198     private long _companyId;
199     private long _userId;
200     private String _userName;
201     private Date _createDate;
202     private Date _modifiedDate;
203     private String _name;
204     private String _description;
205     private Date _lastPostDate;
206 }