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, specifically {@link com.liferay.portlet.social.service.http.SocialActivitySettingServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portlet.social.service.http.SocialActivitySettingServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class SocialActivitySettingSoap implements Serializable {
033            public static SocialActivitySettingSoap toSoapModel(
034                    SocialActivitySetting model) {
035                    SocialActivitySettingSoap soapModel = new SocialActivitySettingSoap();
036    
037                    soapModel.setActivitySettingId(model.getActivitySettingId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setClassNameId(model.getClassNameId());
041                    soapModel.setActivityType(model.getActivityType());
042                    soapModel.setName(model.getName());
043                    soapModel.setValue(model.getValue());
044    
045                    return soapModel;
046            }
047    
048            public static SocialActivitySettingSoap[] toSoapModels(
049                    SocialActivitySetting[] models) {
050                    SocialActivitySettingSoap[] soapModels = new SocialActivitySettingSoap[models.length];
051    
052                    for (int i = 0; i < models.length; i++) {
053                            soapModels[i] = toSoapModel(models[i]);
054                    }
055    
056                    return soapModels;
057            }
058    
059            public static SocialActivitySettingSoap[][] toSoapModels(
060                    SocialActivitySetting[][] models) {
061                    SocialActivitySettingSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new SocialActivitySettingSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new SocialActivitySettingSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static SocialActivitySettingSoap[] toSoapModels(
078                    List<SocialActivitySetting> models) {
079                    List<SocialActivitySettingSoap> soapModels = new ArrayList<SocialActivitySettingSoap>(models.size());
080    
081                    for (SocialActivitySetting model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new SocialActivitySettingSoap[soapModels.size()]);
086            }
087    
088            public SocialActivitySettingSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _activitySettingId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setActivitySettingId(pk);
097            }
098    
099            public long getActivitySettingId() {
100                    return _activitySettingId;
101            }
102    
103            public void setActivitySettingId(long activitySettingId) {
104                    _activitySettingId = activitySettingId;
105            }
106    
107            public long getGroupId() {
108                    return _groupId;
109            }
110    
111            public void setGroupId(long groupId) {
112                    _groupId = groupId;
113            }
114    
115            public long getCompanyId() {
116                    return _companyId;
117            }
118    
119            public void setCompanyId(long companyId) {
120                    _companyId = companyId;
121            }
122    
123            public long getClassNameId() {
124                    return _classNameId;
125            }
126    
127            public void setClassNameId(long classNameId) {
128                    _classNameId = classNameId;
129            }
130    
131            public int getActivityType() {
132                    return _activityType;
133            }
134    
135            public void setActivityType(int activityType) {
136                    _activityType = activityType;
137            }
138    
139            public String getName() {
140                    return _name;
141            }
142    
143            public void setName(String name) {
144                    _name = name;
145            }
146    
147            public String getValue() {
148                    return _value;
149            }
150    
151            public void setValue(String value) {
152                    _value = value;
153            }
154    
155            private long _activitySettingId;
156            private long _groupId;
157            private long _companyId;
158            private long _classNameId;
159            private int _activityType;
160            private String _name;
161            private String _value;
162    }