001    /**
002     * Copyright (c) 2000-2011 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.social.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author    Brian Wing Shun Chan
026     * @generated
027     */
028    public class SocialEquityUserSoap implements Serializable {
029            public static SocialEquityUserSoap toSoapModel(SocialEquityUser model) {
030                    SocialEquityUserSoap soapModel = new SocialEquityUserSoap();
031    
032                    soapModel.setEquityUserId(model.getEquityUserId());
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setContributionK(model.getContributionK());
037                    soapModel.setContributionB(model.getContributionB());
038                    soapModel.setParticipationK(model.getParticipationK());
039                    soapModel.setParticipationB(model.getParticipationB());
040                    soapModel.setRank(model.getRank());
041    
042                    return soapModel;
043            }
044    
045            public static SocialEquityUserSoap[] toSoapModels(SocialEquityUser[] models) {
046                    SocialEquityUserSoap[] soapModels = new SocialEquityUserSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static SocialEquityUserSoap[][] toSoapModels(
056                    SocialEquityUser[][] models) {
057                    SocialEquityUserSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new SocialEquityUserSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new SocialEquityUserSoap[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 SocialEquityUserSoap[] toSoapModels(
074                    List<SocialEquityUser> models) {
075                    List<SocialEquityUserSoap> soapModels = new ArrayList<SocialEquityUserSoap>(models.size());
076    
077                    for (SocialEquityUser model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new SocialEquityUserSoap[soapModels.size()]);
082            }
083    
084            public SocialEquityUserSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _equityUserId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setEquityUserId(pk);
093            }
094    
095            public long getEquityUserId() {
096                    return _equityUserId;
097            }
098    
099            public void setEquityUserId(long equityUserId) {
100                    _equityUserId = equityUserId;
101            }
102    
103            public long getGroupId() {
104                    return _groupId;
105            }
106    
107            public void setGroupId(long groupId) {
108                    _groupId = groupId;
109            }
110    
111            public long getCompanyId() {
112                    return _companyId;
113            }
114    
115            public void setCompanyId(long companyId) {
116                    _companyId = companyId;
117            }
118    
119            public long getUserId() {
120                    return _userId;
121            }
122    
123            public void setUserId(long userId) {
124                    _userId = userId;
125            }
126    
127            public double getContributionK() {
128                    return _contributionK;
129            }
130    
131            public void setContributionK(double contributionK) {
132                    _contributionK = contributionK;
133            }
134    
135            public double getContributionB() {
136                    return _contributionB;
137            }
138    
139            public void setContributionB(double contributionB) {
140                    _contributionB = contributionB;
141            }
142    
143            public double getParticipationK() {
144                    return _participationK;
145            }
146    
147            public void setParticipationK(double participationK) {
148                    _participationK = participationK;
149            }
150    
151            public double getParticipationB() {
152                    return _participationB;
153            }
154    
155            public void setParticipationB(double participationB) {
156                    _participationB = participationB;
157            }
158    
159            public int getRank() {
160                    return _rank;
161            }
162    
163            public void setRank(int rank) {
164                    _rank = rank;
165            }
166    
167            private long _equityUserId;
168            private long _groupId;
169            private long _companyId;
170            private long _userId;
171            private double _contributionK;
172            private double _contributionB;
173            private double _participationK;
174            private double _participationB;
175            private int _rank;
176    }