001    /**
002     * Copyright (c) 2000-2013 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 SocialActivityCounterSoap implements Serializable {
029            public static SocialActivityCounterSoap toSoapModel(
030                    SocialActivityCounter model) {
031                    SocialActivityCounterSoap soapModel = new SocialActivityCounterSoap();
032    
033                    soapModel.setActivityCounterId(model.getActivityCounterId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setClassNameId(model.getClassNameId());
037                    soapModel.setClassPK(model.getClassPK());
038                    soapModel.setName(model.getName());
039                    soapModel.setOwnerType(model.getOwnerType());
040                    soapModel.setCurrentValue(model.getCurrentValue());
041                    soapModel.setTotalValue(model.getTotalValue());
042                    soapModel.setGraceValue(model.getGraceValue());
043                    soapModel.setStartPeriod(model.getStartPeriod());
044                    soapModel.setEndPeriod(model.getEndPeriod());
045                    soapModel.setActive(model.getActive());
046    
047                    return soapModel;
048            }
049    
050            public static SocialActivityCounterSoap[] toSoapModels(
051                    SocialActivityCounter[] models) {
052                    SocialActivityCounterSoap[] soapModels = new SocialActivityCounterSoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static SocialActivityCounterSoap[][] toSoapModels(
062                    SocialActivityCounter[][] models) {
063                    SocialActivityCounterSoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new SocialActivityCounterSoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new SocialActivityCounterSoap[0][0];
070                    }
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModels(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static SocialActivityCounterSoap[] toSoapModels(
080                    List<SocialActivityCounter> models) {
081                    List<SocialActivityCounterSoap> soapModels = new ArrayList<SocialActivityCounterSoap>(models.size());
082    
083                    for (SocialActivityCounter model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new SocialActivityCounterSoap[soapModels.size()]);
088            }
089    
090            public SocialActivityCounterSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _activityCounterId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setActivityCounterId(pk);
099            }
100    
101            public long getActivityCounterId() {
102                    return _activityCounterId;
103            }
104    
105            public void setActivityCounterId(long activityCounterId) {
106                    _activityCounterId = activityCounterId;
107            }
108    
109            public long getGroupId() {
110                    return _groupId;
111            }
112    
113            public void setGroupId(long groupId) {
114                    _groupId = groupId;
115            }
116    
117            public long getCompanyId() {
118                    return _companyId;
119            }
120    
121            public void setCompanyId(long companyId) {
122                    _companyId = companyId;
123            }
124    
125            public long getClassNameId() {
126                    return _classNameId;
127            }
128    
129            public void setClassNameId(long classNameId) {
130                    _classNameId = classNameId;
131            }
132    
133            public long getClassPK() {
134                    return _classPK;
135            }
136    
137            public void setClassPK(long classPK) {
138                    _classPK = classPK;
139            }
140    
141            public String getName() {
142                    return _name;
143            }
144    
145            public void setName(String name) {
146                    _name = name;
147            }
148    
149            public int getOwnerType() {
150                    return _ownerType;
151            }
152    
153            public void setOwnerType(int ownerType) {
154                    _ownerType = ownerType;
155            }
156    
157            public int getCurrentValue() {
158                    return _currentValue;
159            }
160    
161            public void setCurrentValue(int currentValue) {
162                    _currentValue = currentValue;
163            }
164    
165            public int getTotalValue() {
166                    return _totalValue;
167            }
168    
169            public void setTotalValue(int totalValue) {
170                    _totalValue = totalValue;
171            }
172    
173            public int getGraceValue() {
174                    return _graceValue;
175            }
176    
177            public void setGraceValue(int graceValue) {
178                    _graceValue = graceValue;
179            }
180    
181            public int getStartPeriod() {
182                    return _startPeriod;
183            }
184    
185            public void setStartPeriod(int startPeriod) {
186                    _startPeriod = startPeriod;
187            }
188    
189            public int getEndPeriod() {
190                    return _endPeriod;
191            }
192    
193            public void setEndPeriod(int endPeriod) {
194                    _endPeriod = endPeriod;
195            }
196    
197            public boolean getActive() {
198                    return _active;
199            }
200    
201            public boolean isActive() {
202                    return _active;
203            }
204    
205            public void setActive(boolean active) {
206                    _active = active;
207            }
208    
209            private long _activityCounterId;
210            private long _groupId;
211            private long _companyId;
212            private long _classNameId;
213            private long _classPK;
214            private String _name;
215            private int _ownerType;
216            private int _currentValue;
217            private int _totalValue;
218            private int _graceValue;
219            private int _startPeriod;
220            private int _endPeriod;
221            private boolean _active;
222    }