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.blogs.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 BlogsStatsUserSoap implements Serializable {
030            public static BlogsStatsUserSoap toSoapModel(BlogsStatsUser model) {
031                    BlogsStatsUserSoap soapModel = new BlogsStatsUserSoap();
032    
033                    soapModel.setStatsUserId(model.getStatsUserId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setEntryCount(model.getEntryCount());
038                    soapModel.setLastPostDate(model.getLastPostDate());
039                    soapModel.setRatingsTotalEntries(model.getRatingsTotalEntries());
040                    soapModel.setRatingsTotalScore(model.getRatingsTotalScore());
041                    soapModel.setRatingsAverageScore(model.getRatingsAverageScore());
042    
043                    return soapModel;
044            }
045    
046            public static BlogsStatsUserSoap[] toSoapModels(BlogsStatsUser[] models) {
047                    BlogsStatsUserSoap[] soapModels = new BlogsStatsUserSoap[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 BlogsStatsUserSoap[][] toSoapModels(BlogsStatsUser[][] models) {
057                    BlogsStatsUserSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new BlogsStatsUserSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new BlogsStatsUserSoap[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 BlogsStatsUserSoap[] toSoapModels(List<BlogsStatsUser> models) {
074                    List<BlogsStatsUserSoap> soapModels = new ArrayList<BlogsStatsUserSoap>(models.size());
075    
076                    for (BlogsStatsUser model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new BlogsStatsUserSoap[soapModels.size()]);
081            }
082    
083            public BlogsStatsUserSoap() {
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 getEntryCount() {
127                    return _entryCount;
128            }
129    
130            public void setEntryCount(int entryCount) {
131                    _entryCount = entryCount;
132            }
133    
134            public Date getLastPostDate() {
135                    return _lastPostDate;
136            }
137    
138            public void setLastPostDate(Date lastPostDate) {
139                    _lastPostDate = lastPostDate;
140            }
141    
142            public int getRatingsTotalEntries() {
143                    return _ratingsTotalEntries;
144            }
145    
146            public void setRatingsTotalEntries(int ratingsTotalEntries) {
147                    _ratingsTotalEntries = ratingsTotalEntries;
148            }
149    
150            public double getRatingsTotalScore() {
151                    return _ratingsTotalScore;
152            }
153    
154            public void setRatingsTotalScore(double ratingsTotalScore) {
155                    _ratingsTotalScore = ratingsTotalScore;
156            }
157    
158            public double getRatingsAverageScore() {
159                    return _ratingsAverageScore;
160            }
161    
162            public void setRatingsAverageScore(double ratingsAverageScore) {
163                    _ratingsAverageScore = ratingsAverageScore;
164            }
165    
166            private long _statsUserId;
167            private long _groupId;
168            private long _companyId;
169            private long _userId;
170            private int _entryCount;
171            private Date _lastPostDate;
172            private int _ratingsTotalEntries;
173            private double _ratingsTotalScore;
174            private double _ratingsAverageScore;
175    }