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