001    /**
002     * Copyright (c) 2000-2011 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 SocialEquityGroupSettingSoap implements Serializable {
029            public static SocialEquityGroupSettingSoap toSoapModel(
030                    SocialEquityGroupSetting model) {
031                    SocialEquityGroupSettingSoap soapModel = new SocialEquityGroupSettingSoap();
032    
033                    soapModel.setEquityGroupSettingId(model.getEquityGroupSettingId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setClassNameId(model.getClassNameId());
037                    soapModel.setType(model.getType());
038                    soapModel.setEnabled(model.getEnabled());
039    
040                    return soapModel;
041            }
042    
043            public static SocialEquityGroupSettingSoap[] toSoapModels(
044                    SocialEquityGroupSetting[] models) {
045                    SocialEquityGroupSettingSoap[] soapModels = new SocialEquityGroupSettingSoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static SocialEquityGroupSettingSoap[][] toSoapModels(
055                    SocialEquityGroupSetting[][] models) {
056                    SocialEquityGroupSettingSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new SocialEquityGroupSettingSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new SocialEquityGroupSettingSoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static SocialEquityGroupSettingSoap[] toSoapModels(
073                    List<SocialEquityGroupSetting> models) {
074                    List<SocialEquityGroupSettingSoap> soapModels = new ArrayList<SocialEquityGroupSettingSoap>(models.size());
075    
076                    for (SocialEquityGroupSetting model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new SocialEquityGroupSettingSoap[soapModels.size()]);
081            }
082    
083            public SocialEquityGroupSettingSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _equityGroupSettingId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setEquityGroupSettingId(pk);
092            }
093    
094            public long getEquityGroupSettingId() {
095                    return _equityGroupSettingId;
096            }
097    
098            public void setEquityGroupSettingId(long equityGroupSettingId) {
099                    _equityGroupSettingId = equityGroupSettingId;
100            }
101    
102            public long getGroupId() {
103                    return _groupId;
104            }
105    
106            public void setGroupId(long groupId) {
107                    _groupId = groupId;
108            }
109    
110            public long getCompanyId() {
111                    return _companyId;
112            }
113    
114            public void setCompanyId(long companyId) {
115                    _companyId = companyId;
116            }
117    
118            public long getClassNameId() {
119                    return _classNameId;
120            }
121    
122            public void setClassNameId(long classNameId) {
123                    _classNameId = classNameId;
124            }
125    
126            public int getType() {
127                    return _type;
128            }
129    
130            public void setType(int type) {
131                    _type = type;
132            }
133    
134            public boolean getEnabled() {
135                    return _enabled;
136            }
137    
138            public boolean isEnabled() {
139                    return _enabled;
140            }
141    
142            public void setEnabled(boolean enabled) {
143                    _enabled = enabled;
144            }
145    
146            private long _equityGroupSettingId;
147            private long _groupId;
148            private long _companyId;
149            private long _classNameId;
150            private int _type;
151            private boolean _enabled;
152    }