001    /**
002     * Copyright (c) 2000-2012 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 SocialActivitySetSoap implements Serializable {
029            public static SocialActivitySetSoap toSoapModel(SocialActivitySet model) {
030                    SocialActivitySetSoap soapModel = new SocialActivitySetSoap();
031    
032                    soapModel.setActivitySetId(model.getActivitySetId());
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setCreateDate(model.getCreateDate());
037                    soapModel.setModifiedDate(model.getModifiedDate());
038                    soapModel.setClassNameId(model.getClassNameId());
039                    soapModel.setClassPK(model.getClassPK());
040                    soapModel.setType(model.getType());
041                    soapModel.setActivityCount(model.getActivityCount());
042    
043                    return soapModel;
044            }
045    
046            public static SocialActivitySetSoap[] toSoapModels(
047                    SocialActivitySet[] models) {
048                    SocialActivitySetSoap[] soapModels = new SocialActivitySetSoap[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 SocialActivitySetSoap[][] toSoapModels(
058                    SocialActivitySet[][] models) {
059                    SocialActivitySetSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new SocialActivitySetSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new SocialActivitySetSoap[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 SocialActivitySetSoap[] toSoapModels(
076                    List<SocialActivitySet> models) {
077                    List<SocialActivitySetSoap> soapModels = new ArrayList<SocialActivitySetSoap>(models.size());
078    
079                    for (SocialActivitySet model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new SocialActivitySetSoap[soapModels.size()]);
084            }
085    
086            public SocialActivitySetSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _activitySetId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setActivitySetId(pk);
095            }
096    
097            public long getActivitySetId() {
098                    return _activitySetId;
099            }
100    
101            public void setActivitySetId(long activitySetId) {
102                    _activitySetId = activitySetId;
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 getUserId() {
122                    return _userId;
123            }
124    
125            public void setUserId(long userId) {
126                    _userId = userId;
127            }
128    
129            public long getCreateDate() {
130                    return _createDate;
131            }
132    
133            public void setCreateDate(long createDate) {
134                    _createDate = createDate;
135            }
136    
137            public long getModifiedDate() {
138                    return _modifiedDate;
139            }
140    
141            public void setModifiedDate(long modifiedDate) {
142                    _modifiedDate = modifiedDate;
143            }
144    
145            public long getClassNameId() {
146                    return _classNameId;
147            }
148    
149            public void setClassNameId(long classNameId) {
150                    _classNameId = classNameId;
151            }
152    
153            public long getClassPK() {
154                    return _classPK;
155            }
156    
157            public void setClassPK(long classPK) {
158                    _classPK = classPK;
159            }
160    
161            public int getType() {
162                    return _type;
163            }
164    
165            public void setType(int type) {
166                    _type = type;
167            }
168    
169            public int getActivityCount() {
170                    return _activityCount;
171            }
172    
173            public void setActivityCount(int activityCount) {
174                    _activityCount = activityCount;
175            }
176    
177            private long _activitySetId;
178            private long _groupId;
179            private long _companyId;
180            private long _userId;
181            private long _createDate;
182            private long _modifiedDate;
183            private long _classNameId;
184            private long _classPK;
185            private int _type;
186            private int _activityCount;
187    }