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.blogs.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="BlogsStatsUserSoap.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.blogs.service.http.BlogsStatsUserServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.blogs.service.http.BlogsStatsUserServiceSoap
045: *
046: */
047: public class BlogsStatsUserSoap implements Serializable {
048: public static BlogsStatsUserSoap toSoapModel(BlogsStatsUser model) {
049: BlogsStatsUserSoap soapModel = new BlogsStatsUserSoap();
050:
051: soapModel.setStatsUserId(model.getStatsUserId());
052: soapModel.setGroupId(model.getGroupId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setEntryCount(model.getEntryCount());
056: soapModel.setLastPostDate(model.getLastPostDate());
057: soapModel
058: .setRatingsTotalEntries(model.getRatingsTotalEntries());
059: soapModel.setRatingsTotalScore(model.getRatingsTotalScore());
060: soapModel
061: .setRatingsAverageScore(model.getRatingsAverageScore());
062:
063: return soapModel;
064: }
065:
066: public static BlogsStatsUserSoap[] toSoapModels(List models) {
067: List soapModels = new ArrayList(models.size());
068:
069: for (int i = 0; i < models.size(); i++) {
070: BlogsStatsUser model = (BlogsStatsUser) models.get(i);
071:
072: soapModels.add(toSoapModel(model));
073: }
074:
075: return (BlogsStatsUserSoap[]) soapModels
076: .toArray(new BlogsStatsUserSoap[0]);
077: }
078:
079: public BlogsStatsUserSoap() {
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 getCompanyId() {
107: return _companyId;
108: }
109:
110: public void setCompanyId(long companyId) {
111: _companyId = companyId;
112: }
113:
114: public long getUserId() {
115: return _userId;
116: }
117:
118: public void setUserId(long userId) {
119: _userId = userId;
120: }
121:
122: public int getEntryCount() {
123: return _entryCount;
124: }
125:
126: public void setEntryCount(int entryCount) {
127: _entryCount = entryCount;
128: }
129:
130: public Date getLastPostDate() {
131: return _lastPostDate;
132: }
133:
134: public void setLastPostDate(Date lastPostDate) {
135: _lastPostDate = lastPostDate;
136: }
137:
138: public int getRatingsTotalEntries() {
139: return _ratingsTotalEntries;
140: }
141:
142: public void setRatingsTotalEntries(int ratingsTotalEntries) {
143: _ratingsTotalEntries = ratingsTotalEntries;
144: }
145:
146: public double getRatingsTotalScore() {
147: return _ratingsTotalScore;
148: }
149:
150: public void setRatingsTotalScore(double ratingsTotalScore) {
151: _ratingsTotalScore = ratingsTotalScore;
152: }
153:
154: public double getRatingsAverageScore() {
155: return _ratingsAverageScore;
156: }
157:
158: public void setRatingsAverageScore(double ratingsAverageScore) {
159: _ratingsAverageScore = ratingsAverageScore;
160: }
161:
162: private long _statsUserId;
163: private long _groupId;
164: private long _companyId;
165: private long _userId;
166: private int _entryCount;
167: private Date _lastPostDate;
168: private int _ratingsTotalEntries;
169: private double _ratingsTotalScore;
170: private double _ratingsAverageScore;
171: }
|