001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.messageboards.service.http.MBBanServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.messageboards.service.http.MBBanServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class MBBanSoap implements Serializable {
034            public static MBBanSoap toSoapModel(MBBan model) {
035                    MBBanSoap soapModel = new MBBanSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setBanId(model.getBanId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setBanUserId(model.getBanUserId());
046    
047                    return soapModel;
048            }
049    
050            public static MBBanSoap[] toSoapModels(MBBan[] models) {
051                    MBBanSoap[] soapModels = new MBBanSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static MBBanSoap[][] toSoapModels(MBBan[][] models) {
061                    MBBanSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new MBBanSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new MBBanSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static MBBanSoap[] toSoapModels(List<MBBan> models) {
078                    List<MBBanSoap> soapModels = new ArrayList<MBBanSoap>(models.size());
079    
080                    for (MBBan model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new MBBanSoap[soapModels.size()]);
085            }
086    
087            public MBBanSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _banId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setBanId(pk);
096            }
097    
098            public String getUuid() {
099                    return _uuid;
100            }
101    
102            public void setUuid(String uuid) {
103                    _uuid = uuid;
104            }
105    
106            public long getBanId() {
107                    return _banId;
108            }
109    
110            public void setBanId(long banId) {
111                    _banId = banId;
112            }
113    
114            public long getGroupId() {
115                    return _groupId;
116            }
117    
118            public void setGroupId(long groupId) {
119                    _groupId = groupId;
120            }
121    
122            public long getCompanyId() {
123                    return _companyId;
124            }
125    
126            public void setCompanyId(long companyId) {
127                    _companyId = companyId;
128            }
129    
130            public long getUserId() {
131                    return _userId;
132            }
133    
134            public void setUserId(long userId) {
135                    _userId = userId;
136            }
137    
138            public String getUserName() {
139                    return _userName;
140            }
141    
142            public void setUserName(String userName) {
143                    _userName = userName;
144            }
145    
146            public Date getCreateDate() {
147                    return _createDate;
148            }
149    
150            public void setCreateDate(Date createDate) {
151                    _createDate = createDate;
152            }
153    
154            public Date getModifiedDate() {
155                    return _modifiedDate;
156            }
157    
158            public void setModifiedDate(Date modifiedDate) {
159                    _modifiedDate = modifiedDate;
160            }
161    
162            public long getBanUserId() {
163                    return _banUserId;
164            }
165    
166            public void setBanUserId(long banUserId) {
167                    _banUserId = banUserId;
168            }
169    
170            private String _uuid;
171            private long _banId;
172            private long _groupId;
173            private long _companyId;
174            private long _userId;
175            private String _userName;
176            private Date _createDate;
177            private Date _modifiedDate;
178            private long _banUserId;
179    }