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