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 SocialActivityAchievementSoap implements Serializable {
029            public static SocialActivityAchievementSoap toSoapModel(
030                    SocialActivityAchievement model) {
031                    SocialActivityAchievementSoap soapModel = new SocialActivityAchievementSoap();
032    
033                    soapModel.setActivityAchievementId(model.getActivityAchievementId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setName(model.getName());
039                    soapModel.setFirstInGroup(model.getFirstInGroup());
040    
041                    return soapModel;
042            }
043    
044            public static SocialActivityAchievementSoap[] toSoapModels(
045                    SocialActivityAchievement[] models) {
046                    SocialActivityAchievementSoap[] soapModels = new SocialActivityAchievementSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static SocialActivityAchievementSoap[][] toSoapModels(
056                    SocialActivityAchievement[][] models) {
057                    SocialActivityAchievementSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new SocialActivityAchievementSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new SocialActivityAchievementSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static SocialActivityAchievementSoap[] toSoapModels(
074                    List<SocialActivityAchievement> models) {
075                    List<SocialActivityAchievementSoap> soapModels = new ArrayList<SocialActivityAchievementSoap>(models.size());
076    
077                    for (SocialActivityAchievement model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new SocialActivityAchievementSoap[soapModels.size()]);
082            }
083    
084            public SocialActivityAchievementSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _activityAchievementId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setActivityAchievementId(pk);
093            }
094    
095            public long getActivityAchievementId() {
096                    return _activityAchievementId;
097            }
098    
099            public void setActivityAchievementId(long activityAchievementId) {
100                    _activityAchievementId = activityAchievementId;
101            }
102    
103            public long getGroupId() {
104                    return _groupId;
105            }
106    
107            public void setGroupId(long groupId) {
108                    _groupId = groupId;
109            }
110    
111            public long getCompanyId() {
112                    return _companyId;
113            }
114    
115            public void setCompanyId(long companyId) {
116                    _companyId = companyId;
117            }
118    
119            public long getUserId() {
120                    return _userId;
121            }
122    
123            public void setUserId(long userId) {
124                    _userId = userId;
125            }
126    
127            public long getCreateDate() {
128                    return _createDate;
129            }
130    
131            public void setCreateDate(long createDate) {
132                    _createDate = createDate;
133            }
134    
135            public String getName() {
136                    return _name;
137            }
138    
139            public void setName(String name) {
140                    _name = name;
141            }
142    
143            public boolean getFirstInGroup() {
144                    return _firstInGroup;
145            }
146    
147            public boolean isFirstInGroup() {
148                    return _firstInGroup;
149            }
150    
151            public void setFirstInGroup(boolean firstInGroup) {
152                    _firstInGroup = firstInGroup;
153            }
154    
155            private long _activityAchievementId;
156            private long _groupId;
157            private long _companyId;
158            private long _userId;
159            private long _createDate;
160            private String _name;
161            private boolean _firstInGroup;
162    }