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.portal.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, specifically {@link com.liferay.portal.service.http.GroupServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portal.service.http.GroupServiceSoap
027     * @generated
028     */
029    public class GroupSoap implements Serializable {
030            public static GroupSoap toSoapModel(Group model) {
031                    GroupSoap soapModel = new GroupSoap();
032    
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setCreatorUserId(model.getCreatorUserId());
036                    soapModel.setClassNameId(model.getClassNameId());
037                    soapModel.setClassPK(model.getClassPK());
038                    soapModel.setParentGroupId(model.getParentGroupId());
039                    soapModel.setLiveGroupId(model.getLiveGroupId());
040                    soapModel.setName(model.getName());
041                    soapModel.setDescription(model.getDescription());
042                    soapModel.setType(model.getType());
043                    soapModel.setTypeSettings(model.getTypeSettings());
044                    soapModel.setFriendlyURL(model.getFriendlyURL());
045                    soapModel.setSite(model.getSite());
046                    soapModel.setActive(model.getActive());
047    
048                    return soapModel;
049            }
050    
051            public static GroupSoap[] toSoapModels(Group[] models) {
052                    GroupSoap[] soapModels = new GroupSoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static GroupSoap[][] toSoapModels(Group[][] models) {
062                    GroupSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new GroupSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new GroupSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static GroupSoap[] toSoapModels(List<Group> models) {
079                    List<GroupSoap> soapModels = new ArrayList<GroupSoap>(models.size());
080    
081                    for (Group model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new GroupSoap[soapModels.size()]);
086            }
087    
088            public GroupSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _groupId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setGroupId(pk);
097            }
098    
099            public long getGroupId() {
100                    return _groupId;
101            }
102    
103            public void setGroupId(long groupId) {
104                    _groupId = groupId;
105            }
106    
107            public long getCompanyId() {
108                    return _companyId;
109            }
110    
111            public void setCompanyId(long companyId) {
112                    _companyId = companyId;
113            }
114    
115            public long getCreatorUserId() {
116                    return _creatorUserId;
117            }
118    
119            public void setCreatorUserId(long creatorUserId) {
120                    _creatorUserId = creatorUserId;
121            }
122    
123            public long getClassNameId() {
124                    return _classNameId;
125            }
126    
127            public void setClassNameId(long classNameId) {
128                    _classNameId = classNameId;
129            }
130    
131            public long getClassPK() {
132                    return _classPK;
133            }
134    
135            public void setClassPK(long classPK) {
136                    _classPK = classPK;
137            }
138    
139            public long getParentGroupId() {
140                    return _parentGroupId;
141            }
142    
143            public void setParentGroupId(long parentGroupId) {
144                    _parentGroupId = parentGroupId;
145            }
146    
147            public long getLiveGroupId() {
148                    return _liveGroupId;
149            }
150    
151            public void setLiveGroupId(long liveGroupId) {
152                    _liveGroupId = liveGroupId;
153            }
154    
155            public String getName() {
156                    return _name;
157            }
158    
159            public void setName(String name) {
160                    _name = name;
161            }
162    
163            public String getDescription() {
164                    return _description;
165            }
166    
167            public void setDescription(String description) {
168                    _description = description;
169            }
170    
171            public int getType() {
172                    return _type;
173            }
174    
175            public void setType(int type) {
176                    _type = type;
177            }
178    
179            public String getTypeSettings() {
180                    return _typeSettings;
181            }
182    
183            public void setTypeSettings(String typeSettings) {
184                    _typeSettings = typeSettings;
185            }
186    
187            public String getFriendlyURL() {
188                    return _friendlyURL;
189            }
190    
191            public void setFriendlyURL(String friendlyURL) {
192                    _friendlyURL = friendlyURL;
193            }
194    
195            public boolean getSite() {
196                    return _site;
197            }
198    
199            public boolean isSite() {
200                    return _site;
201            }
202    
203            public void setSite(boolean site) {
204                    _site = site;
205            }
206    
207            public boolean getActive() {
208                    return _active;
209            }
210    
211            public boolean isActive() {
212                    return _active;
213            }
214    
215            public void setActive(boolean active) {
216                    _active = active;
217            }
218    
219            private long _groupId;
220            private long _companyId;
221            private long _creatorUserId;
222            private long _classNameId;
223            private long _classPK;
224            private long _parentGroupId;
225            private long _liveGroupId;
226            private String _name;
227            private String _description;
228            private int _type;
229            private String _typeSettings;
230            private String _friendlyURL;
231            private boolean _site;
232            private boolean _active;
233    }