001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.wiki.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="WikiPageSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.wiki.service.http.WikiPageServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.wiki.service.http.WikiPageServiceSoap
045: *
046: */
047: public class WikiPageSoap implements Serializable {
048: public static WikiPageSoap toSoapModel(WikiPage model) {
049: WikiPageSoap soapModel = new WikiPageSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setPageId(model.getPageId());
053: soapModel.setResourcePrimKey(model.getResourcePrimKey());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setUserName(model.getUserName());
057: soapModel.setCreateDate(model.getCreateDate());
058: soapModel.setNodeId(model.getNodeId());
059: soapModel.setTitle(model.getTitle());
060: soapModel.setVersion(model.getVersion());
061: soapModel.setContent(model.getContent());
062: soapModel.setFormat(model.getFormat());
063: soapModel.setHead(model.getHead());
064:
065: return soapModel;
066: }
067:
068: public static WikiPageSoap[] toSoapModels(List models) {
069: List soapModels = new ArrayList(models.size());
070:
071: for (int i = 0; i < models.size(); i++) {
072: WikiPage model = (WikiPage) models.get(i);
073:
074: soapModels.add(toSoapModel(model));
075: }
076:
077: return (WikiPageSoap[]) soapModels.toArray(new WikiPageSoap[0]);
078: }
079:
080: public WikiPageSoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _pageId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setPageId(pk);
089: }
090:
091: public String getUuid() {
092: return _uuid;
093: }
094:
095: public void setUuid(String uuid) {
096: _uuid = uuid;
097: }
098:
099: public long getPageId() {
100: return _pageId;
101: }
102:
103: public void setPageId(long pageId) {
104: _pageId = pageId;
105: }
106:
107: public long getResourcePrimKey() {
108: return _resourcePrimKey;
109: }
110:
111: public void setResourcePrimKey(long resourcePrimKey) {
112: _resourcePrimKey = resourcePrimKey;
113: }
114:
115: public long getCompanyId() {
116: return _companyId;
117: }
118:
119: public void setCompanyId(long companyId) {
120: _companyId = companyId;
121: }
122:
123: public long getUserId() {
124: return _userId;
125: }
126:
127: public void setUserId(long userId) {
128: _userId = userId;
129: }
130:
131: public String getUserName() {
132: return _userName;
133: }
134:
135: public void setUserName(String userName) {
136: _userName = userName;
137: }
138:
139: public Date getCreateDate() {
140: return _createDate;
141: }
142:
143: public void setCreateDate(Date createDate) {
144: _createDate = createDate;
145: }
146:
147: public long getNodeId() {
148: return _nodeId;
149: }
150:
151: public void setNodeId(long nodeId) {
152: _nodeId = nodeId;
153: }
154:
155: public String getTitle() {
156: return _title;
157: }
158:
159: public void setTitle(String title) {
160: _title = title;
161: }
162:
163: public double getVersion() {
164: return _version;
165: }
166:
167: public void setVersion(double version) {
168: _version = version;
169: }
170:
171: public String getContent() {
172: return _content;
173: }
174:
175: public void setContent(String content) {
176: _content = content;
177: }
178:
179: public String getFormat() {
180: return _format;
181: }
182:
183: public void setFormat(String format) {
184: _format = format;
185: }
186:
187: public boolean getHead() {
188: return _head;
189: }
190:
191: public boolean isHead() {
192: return _head;
193: }
194:
195: public void setHead(boolean head) {
196: _head = head;
197: }
198:
199: private String _uuid;
200: private long _pageId;
201: private long _resourcePrimKey;
202: private long _companyId;
203: private long _userId;
204: private String _userName;
205: private Date _createDate;
206: private long _nodeId;
207: private String _title;
208: private double _version;
209: private String _content;
210: private String _format;
211: private boolean _head;
212: }
|