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.portal.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="MembershipRequestSoap.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.portal.service.http.MembershipRequestServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.MembershipRequestServiceSoap
045: *
046: */
047: public class MembershipRequestSoap implements Serializable {
048: public static MembershipRequestSoap toSoapModel(
049: MembershipRequest model) {
050: MembershipRequestSoap soapModel = new MembershipRequestSoap();
051:
052: soapModel
053: .setMembershipRequestId(model.getMembershipRequestId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setGroupId(model.getGroupId());
058: soapModel.setComments(model.getComments());
059: soapModel.setReplyComments(model.getReplyComments());
060: soapModel.setReplyDate(model.getReplyDate());
061: soapModel.setReplierUserId(model.getReplierUserId());
062: soapModel.setStatusId(model.getStatusId());
063:
064: return soapModel;
065: }
066:
067: public static MembershipRequestSoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: MembershipRequest model = (MembershipRequest) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (MembershipRequestSoap[]) soapModels
077: .toArray(new MembershipRequestSoap[0]);
078: }
079:
080: public MembershipRequestSoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _membershipRequestId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setMembershipRequestId(pk);
089: }
090:
091: public long getMembershipRequestId() {
092: return _membershipRequestId;
093: }
094:
095: public void setMembershipRequestId(long membershipRequestId) {
096: _membershipRequestId = membershipRequestId;
097: }
098:
099: public long getCompanyId() {
100: return _companyId;
101: }
102:
103: public void setCompanyId(long companyId) {
104: _companyId = companyId;
105: }
106:
107: public long getUserId() {
108: return _userId;
109: }
110:
111: public void setUserId(long userId) {
112: _userId = userId;
113: }
114:
115: public Date getCreateDate() {
116: return _createDate;
117: }
118:
119: public void setCreateDate(Date createDate) {
120: _createDate = createDate;
121: }
122:
123: public long getGroupId() {
124: return _groupId;
125: }
126:
127: public void setGroupId(long groupId) {
128: _groupId = groupId;
129: }
130:
131: public String getComments() {
132: return _comments;
133: }
134:
135: public void setComments(String comments) {
136: _comments = comments;
137: }
138:
139: public String getReplyComments() {
140: return _replyComments;
141: }
142:
143: public void setReplyComments(String replyComments) {
144: _replyComments = replyComments;
145: }
146:
147: public Date getReplyDate() {
148: return _replyDate;
149: }
150:
151: public void setReplyDate(Date replyDate) {
152: _replyDate = replyDate;
153: }
154:
155: public long getReplierUserId() {
156: return _replierUserId;
157: }
158:
159: public void setReplierUserId(long replierUserId) {
160: _replierUserId = replierUserId;
161: }
162:
163: public int getStatusId() {
164: return _statusId;
165: }
166:
167: public void setStatusId(int statusId) {
168: _statusId = statusId;
169: }
170:
171: private long _membershipRequestId;
172: private long _companyId;
173: private long _userId;
174: private Date _createDate;
175: private long _groupId;
176: private String _comments;
177: private String _replyComments;
178: private Date _replyDate;
179: private long _replierUserId;
180: private int _statusId;
181: }
|