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.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class MBStatsUserSoap implements Serializable {
033            public static MBStatsUserSoap toSoapModel(MBStatsUser model) {
034                    MBStatsUserSoap soapModel = new MBStatsUserSoap();
035    
036                    soapModel.setStatsUserId(model.getStatsUserId());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setMessageCount(model.getMessageCount());
041                    soapModel.setLastPostDate(model.getLastPostDate());
042    
043                    return soapModel;
044            }
045    
046            public static MBStatsUserSoap[] toSoapModels(MBStatsUser[] models) {
047                    MBStatsUserSoap[] soapModels = new MBStatsUserSoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static MBStatsUserSoap[][] toSoapModels(MBStatsUser[][] models) {
057                    MBStatsUserSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new MBStatsUserSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new MBStatsUserSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static MBStatsUserSoap[] toSoapModels(List<MBStatsUser> models) {
074                    List<MBStatsUserSoap> soapModels = new ArrayList<MBStatsUserSoap>(models.size());
075    
076                    for (MBStatsUser model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new MBStatsUserSoap[soapModels.size()]);
081            }
082    
083            public MBStatsUserSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _statsUserId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setStatsUserId(pk);
092            }
093    
094            public long getStatsUserId() {
095                    return _statsUserId;
096            }
097    
098            public void setStatsUserId(long statsUserId) {
099                    _statsUserId = statsUserId;
100            }
101    
102            public long getGroupId() {
103                    return _groupId;
104            }
105    
106            public void setGroupId(long groupId) {
107                    _groupId = groupId;
108            }
109    
110            public long getCompanyId() {
111                    return _companyId;
112            }
113    
114            public void setCompanyId(long companyId) {
115                    _companyId = companyId;
116            }
117    
118            public long getUserId() {
119                    return _userId;
120            }
121    
122            public void setUserId(long userId) {
123                    _userId = userId;
124            }
125    
126            public int getMessageCount() {
127                    return _messageCount;
128            }
129    
130            public void setMessageCount(int messageCount) {
131                    _messageCount = messageCount;
132            }
133    
134            public Date getLastPostDate() {
135                    return _lastPostDate;
136            }
137    
138            public void setLastPostDate(Date lastPostDate) {
139                    _lastPostDate = lastPostDate;
140            }
141    
142            private long _statsUserId;
143            private long _groupId;
144            private long _companyId;
145            private long _userId;
146            private int _messageCount;
147            private Date _lastPostDate;
148    }