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 SocialEquitySettingSoap implements Serializable {
029            public static SocialEquitySettingSoap toSoapModel(SocialEquitySetting model) {
030                    SocialEquitySettingSoap soapModel = new SocialEquitySettingSoap();
031    
032                    soapModel.setEquitySettingId(model.getEquitySettingId());
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setClassNameId(model.getClassNameId());
036                    soapModel.setActionId(model.getActionId());
037                    soapModel.setDailyLimit(model.getDailyLimit());
038                    soapModel.setLifespan(model.getLifespan());
039                    soapModel.setType(model.getType());
040                    soapModel.setUniqueEntry(model.getUniqueEntry());
041                    soapModel.setValue(model.getValue());
042    
043                    return soapModel;
044            }
045    
046            public static SocialEquitySettingSoap[] toSoapModels(
047                    SocialEquitySetting[] models) {
048                    SocialEquitySettingSoap[] soapModels = new SocialEquitySettingSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static SocialEquitySettingSoap[][] toSoapModels(
058                    SocialEquitySetting[][] models) {
059                    SocialEquitySettingSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new SocialEquitySettingSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new SocialEquitySettingSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static SocialEquitySettingSoap[] toSoapModels(
076                    List<SocialEquitySetting> models) {
077                    List<SocialEquitySettingSoap> soapModels = new ArrayList<SocialEquitySettingSoap>(models.size());
078    
079                    for (SocialEquitySetting model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new SocialEquitySettingSoap[soapModels.size()]);
084            }
085    
086            public SocialEquitySettingSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _equitySettingId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setEquitySettingId(pk);
095            }
096    
097            public long getEquitySettingId() {
098                    return _equitySettingId;
099            }
100    
101            public void setEquitySettingId(long equitySettingId) {
102                    _equitySettingId = equitySettingId;
103            }
104    
105            public long getGroupId() {
106                    return _groupId;
107            }
108    
109            public void setGroupId(long groupId) {
110                    _groupId = groupId;
111            }
112    
113            public long getCompanyId() {
114                    return _companyId;
115            }
116    
117            public void setCompanyId(long companyId) {
118                    _companyId = companyId;
119            }
120    
121            public long getClassNameId() {
122                    return _classNameId;
123            }
124    
125            public void setClassNameId(long classNameId) {
126                    _classNameId = classNameId;
127            }
128    
129            public String getActionId() {
130                    return _actionId;
131            }
132    
133            public void setActionId(String actionId) {
134                    _actionId = actionId;
135            }
136    
137            public int getDailyLimit() {
138                    return _dailyLimit;
139            }
140    
141            public void setDailyLimit(int dailyLimit) {
142                    _dailyLimit = dailyLimit;
143            }
144    
145            public int getLifespan() {
146                    return _lifespan;
147            }
148    
149            public void setLifespan(int lifespan) {
150                    _lifespan = lifespan;
151            }
152    
153            public int getType() {
154                    return _type;
155            }
156    
157            public void setType(int type) {
158                    _type = type;
159            }
160    
161            public boolean getUniqueEntry() {
162                    return _uniqueEntry;
163            }
164    
165            public boolean isUniqueEntry() {
166                    return _uniqueEntry;
167            }
168    
169            public void setUniqueEntry(boolean uniqueEntry) {
170                    _uniqueEntry = uniqueEntry;
171            }
172    
173            public int getValue() {
174                    return _value;
175            }
176    
177            public void setValue(int value) {
178                    _value = value;
179            }
180    
181            private long _equitySettingId;
182            private long _groupId;
183            private long _companyId;
184            private long _classNameId;
185            private String _actionId;
186            private int _dailyLimit;
187            private int _lifespan;
188            private int _type;
189            private boolean _uniqueEntry;
190            private int _value;
191    }