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 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.setExtraData(model.getExtraData());
042                    soapModel.setActivityCount(model.getActivityCount());
043    
044                    return soapModel;
045            }
046    
047            public static SocialActivitySetSoap[] toSoapModels(
048                    SocialActivitySet[] models) {
049                    SocialActivitySetSoap[] soapModels = new SocialActivitySetSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static SocialActivitySetSoap[][] toSoapModels(
059                    SocialActivitySet[][] models) {
060                    SocialActivitySetSoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new SocialActivitySetSoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new SocialActivitySetSoap[0][0];
067                    }
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModels(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static SocialActivitySetSoap[] toSoapModels(
077                    List<SocialActivitySet> models) {
078                    List<SocialActivitySetSoap> soapModels = new ArrayList<SocialActivitySetSoap>(models.size());
079    
080                    for (SocialActivitySet model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new SocialActivitySetSoap[soapModels.size()]);
085            }
086    
087            public SocialActivitySetSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _activitySetId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setActivitySetId(pk);
096            }
097    
098            public long getActivitySetId() {
099                    return _activitySetId;
100            }
101    
102            public void setActivitySetId(long activitySetId) {
103                    _activitySetId = activitySetId;
104            }
105    
106            public long getGroupId() {
107                    return _groupId;
108            }
109    
110            public void setGroupId(long groupId) {
111                    _groupId = groupId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public long getUserId() {
123                    return _userId;
124            }
125    
126            public void setUserId(long userId) {
127                    _userId = userId;
128            }
129    
130            public long getCreateDate() {
131                    return _createDate;
132            }
133    
134            public void setCreateDate(long createDate) {
135                    _createDate = createDate;
136            }
137    
138            public long getModifiedDate() {
139                    return _modifiedDate;
140            }
141    
142            public void setModifiedDate(long modifiedDate) {
143                    _modifiedDate = modifiedDate;
144            }
145    
146            public long getClassNameId() {
147                    return _classNameId;
148            }
149    
150            public void setClassNameId(long classNameId) {
151                    _classNameId = classNameId;
152            }
153    
154            public long getClassPK() {
155                    return _classPK;
156            }
157    
158            public void setClassPK(long classPK) {
159                    _classPK = classPK;
160            }
161    
162            public int getType() {
163                    return _type;
164            }
165    
166            public void setType(int type) {
167                    _type = type;
168            }
169    
170            public String getExtraData() {
171                    return _extraData;
172            }
173    
174            public void setExtraData(String extraData) {
175                    _extraData = extraData;
176            }
177    
178            public int getActivityCount() {
179                    return _activityCount;
180            }
181    
182            public void setActivityCount(int activityCount) {
183                    _activityCount = activityCount;
184            }
185    
186            private long _activitySetId;
187            private long _groupId;
188            private long _companyId;
189            private long _userId;
190            private long _createDate;
191            private long _modifiedDate;
192            private long _classNameId;
193            private long _classPK;
194            private int _type;
195            private String _extraData;
196            private int _activityCount;
197    }