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.messageboards.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="MBBanSoap.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.messageboards.service.http.MBBanServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.messageboards.service.http.MBBanServiceSoap
045: *
046: */
047: public class MBBanSoap implements Serializable {
048: public static MBBanSoap toSoapModel(MBBan model) {
049: MBBanSoap soapModel = new MBBanSoap();
050:
051: soapModel.setBanId(model.getBanId());
052: soapModel.setGroupId(model.getGroupId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setUserName(model.getUserName());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setModifiedDate(model.getModifiedDate());
058: soapModel.setBanUserId(model.getBanUserId());
059:
060: return soapModel;
061: }
062:
063: public static MBBanSoap[] toSoapModels(List models) {
064: List soapModels = new ArrayList(models.size());
065:
066: for (int i = 0; i < models.size(); i++) {
067: MBBan model = (MBBan) models.get(i);
068:
069: soapModels.add(toSoapModel(model));
070: }
071:
072: return (MBBanSoap[]) soapModels.toArray(new MBBanSoap[0]);
073: }
074:
075: public MBBanSoap() {
076: }
077:
078: public long getPrimaryKey() {
079: return _banId;
080: }
081:
082: public void setPrimaryKey(long pk) {
083: setBanId(pk);
084: }
085:
086: public long getBanId() {
087: return _banId;
088: }
089:
090: public void setBanId(long banId) {
091: _banId = banId;
092: }
093:
094: public long getGroupId() {
095: return _groupId;
096: }
097:
098: public void setGroupId(long groupId) {
099: _groupId = groupId;
100: }
101:
102: public long getCompanyId() {
103: return _companyId;
104: }
105:
106: public void setCompanyId(long companyId) {
107: _companyId = companyId;
108: }
109:
110: public long getUserId() {
111: return _userId;
112: }
113:
114: public void setUserId(long userId) {
115: _userId = userId;
116: }
117:
118: public String getUserName() {
119: return _userName;
120: }
121:
122: public void setUserName(String userName) {
123: _userName = userName;
124: }
125:
126: public Date getCreateDate() {
127: return _createDate;
128: }
129:
130: public void setCreateDate(Date createDate) {
131: _createDate = createDate;
132: }
133:
134: public Date getModifiedDate() {
135: return _modifiedDate;
136: }
137:
138: public void setModifiedDate(Date modifiedDate) {
139: _modifiedDate = modifiedDate;
140: }
141:
142: public long getBanUserId() {
143: return _banUserId;
144: }
145:
146: public void setBanUserId(long banUserId) {
147: _banUserId = banUserId;
148: }
149:
150: private long _banId;
151: private long _groupId;
152: private long _companyId;
153: private long _userId;
154: private String _userName;
155: private Date _createDate;
156: private Date _modifiedDate;
157: private long _banUserId;
158: }
|