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.blogs.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="BlogsEntrySoap.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.blogs.service.http.BlogsEntryServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
045: *
046: */
047: public class BlogsEntrySoap implements Serializable {
048: public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
049: BlogsEntrySoap soapModel = new BlogsEntrySoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setEntryId(model.getEntryId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setUserName(model.getUserName());
057: soapModel.setCreateDate(model.getCreateDate());
058: soapModel.setModifiedDate(model.getModifiedDate());
059: soapModel.setTitle(model.getTitle());
060: soapModel.setUrlTitle(model.getUrlTitle());
061: soapModel.setContent(model.getContent());
062: soapModel.setDisplayDate(model.getDisplayDate());
063:
064: return soapModel;
065: }
066:
067: public static BlogsEntrySoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: BlogsEntry model = (BlogsEntry) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (BlogsEntrySoap[]) soapModels
077: .toArray(new BlogsEntrySoap[0]);
078: }
079:
080: public BlogsEntrySoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _entryId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setEntryId(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 getEntryId() {
100: return _entryId;
101: }
102:
103: public void setEntryId(long entryId) {
104: _entryId = entryId;
105: }
106:
107: public long getGroupId() {
108: return _groupId;
109: }
110:
111: public void setGroupId(long groupId) {
112: _groupId = groupId;
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 Date getModifiedDate() {
148: return _modifiedDate;
149: }
150:
151: public void setModifiedDate(Date modifiedDate) {
152: _modifiedDate = modifiedDate;
153: }
154:
155: public String getTitle() {
156: return _title;
157: }
158:
159: public void setTitle(String title) {
160: _title = title;
161: }
162:
163: public String getUrlTitle() {
164: return _urlTitle;
165: }
166:
167: public void setUrlTitle(String urlTitle) {
168: _urlTitle = urlTitle;
169: }
170:
171: public String getContent() {
172: return _content;
173: }
174:
175: public void setContent(String content) {
176: _content = content;
177: }
178:
179: public Date getDisplayDate() {
180: return _displayDate;
181: }
182:
183: public void setDisplayDate(Date displayDate) {
184: _displayDate = displayDate;
185: }
186:
187: private String _uuid;
188: private long _entryId;
189: private long _groupId;
190: private long _companyId;
191: private long _userId;
192: private String _userName;
193: private Date _createDate;
194: private Date _modifiedDate;
195: private String _title;
196: private String _urlTitle;
197: private String _content;
198: private Date _displayDate;
199: }
|