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