1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.blogs.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="BlogsStatsUserSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.blogs.service.http.BlogsStatsUserServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.blogs.service.http.BlogsStatsUserServiceSoap
44   *
45   */
46  public class BlogsStatsUserSoap implements Serializable {
47      public static BlogsStatsUserSoap toSoapModel(BlogsStatsUser model) {
48          BlogsStatsUserSoap soapModel = new BlogsStatsUserSoap();
49  
50          soapModel.setStatsUserId(model.getStatsUserId());
51          soapModel.setGroupId(model.getGroupId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setUserId(model.getUserId());
54          soapModel.setEntryCount(model.getEntryCount());
55          soapModel.setLastPostDate(model.getLastPostDate());
56          soapModel.setRatingsTotalEntries(model.getRatingsTotalEntries());
57          soapModel.setRatingsTotalScore(model.getRatingsTotalScore());
58          soapModel.setRatingsAverageScore(model.getRatingsAverageScore());
59  
60          return soapModel;
61      }
62  
63      public static BlogsStatsUserSoap[] toSoapModels(List<BlogsStatsUser> models) {
64          List<BlogsStatsUserSoap> soapModels = new ArrayList<BlogsStatsUserSoap>(models.size());
65  
66          for (BlogsStatsUser model : models) {
67              soapModels.add(toSoapModel(model));
68          }
69  
70          return soapModels.toArray(new BlogsStatsUserSoap[soapModels.size()]);
71      }
72  
73      public BlogsStatsUserSoap() {
74      }
75  
76      public long getPrimaryKey() {
77          return _statsUserId;
78      }
79  
80      public void setPrimaryKey(long pk) {
81          setStatsUserId(pk);
82      }
83  
84      public long getStatsUserId() {
85          return _statsUserId;
86      }
87  
88      public void setStatsUserId(long statsUserId) {
89          _statsUserId = statsUserId;
90      }
91  
92      public long getGroupId() {
93          return _groupId;
94      }
95  
96      public void setGroupId(long groupId) {
97          _groupId = groupId;
98      }
99  
100     public long getCompanyId() {
101         return _companyId;
102     }
103 
104     public void setCompanyId(long companyId) {
105         _companyId = companyId;
106     }
107 
108     public long getUserId() {
109         return _userId;
110     }
111 
112     public void setUserId(long userId) {
113         _userId = userId;
114     }
115 
116     public int getEntryCount() {
117         return _entryCount;
118     }
119 
120     public void setEntryCount(int entryCount) {
121         _entryCount = entryCount;
122     }
123 
124     public Date getLastPostDate() {
125         return _lastPostDate;
126     }
127 
128     public void setLastPostDate(Date lastPostDate) {
129         _lastPostDate = lastPostDate;
130     }
131 
132     public int getRatingsTotalEntries() {
133         return _ratingsTotalEntries;
134     }
135 
136     public void setRatingsTotalEntries(int ratingsTotalEntries) {
137         _ratingsTotalEntries = ratingsTotalEntries;
138     }
139 
140     public double getRatingsTotalScore() {
141         return _ratingsTotalScore;
142     }
143 
144     public void setRatingsTotalScore(double ratingsTotalScore) {
145         _ratingsTotalScore = ratingsTotalScore;
146     }
147 
148     public double getRatingsAverageScore() {
149         return _ratingsAverageScore;
150     }
151 
152     public void setRatingsAverageScore(double ratingsAverageScore) {
153         _ratingsAverageScore = ratingsAverageScore;
154     }
155 
156     private long _statsUserId;
157     private long _groupId;
158     private long _companyId;
159     private long _userId;
160     private int _entryCount;
161     private Date _lastPostDate;
162     private int _ratingsTotalEntries;
163     private double _ratingsTotalScore;
164     private double _ratingsAverageScore;
165 }