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.portal.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.portal.service.http.GroupServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portal.service.http.GroupServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class GroupSoap implements Serializable {
033            public static GroupSoap toSoapModel(Group model) {
034                    GroupSoap soapModel = new GroupSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setCreatorUserId(model.getCreatorUserId());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setParentGroupId(model.getParentGroupId());
044                    soapModel.setLiveGroupId(model.getLiveGroupId());
045                    soapModel.setTreePath(model.getTreePath());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setType(model.getType());
049                    soapModel.setTypeSettings(model.getTypeSettings());
050                    soapModel.setManualMembership(model.getManualMembership());
051                    soapModel.setMembershipRestriction(model.getMembershipRestriction());
052                    soapModel.setFriendlyURL(model.getFriendlyURL());
053                    soapModel.setSite(model.getSite());
054                    soapModel.setRemoteStagingGroupCount(model.getRemoteStagingGroupCount());
055                    soapModel.setInheritContent(model.getInheritContent());
056                    soapModel.setActive(model.getActive());
057    
058                    return soapModel;
059            }
060    
061            public static GroupSoap[] toSoapModels(Group[] models) {
062                    GroupSoap[] soapModels = new GroupSoap[models.length];
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModel(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static GroupSoap[][] toSoapModels(Group[][] models) {
072                    GroupSoap[][] soapModels = null;
073    
074                    if (models.length > 0) {
075                            soapModels = new GroupSoap[models.length][models[0].length];
076                    }
077                    else {
078                            soapModels = new GroupSoap[0][0];
079                    }
080    
081                    for (int i = 0; i < models.length; i++) {
082                            soapModels[i] = toSoapModels(models[i]);
083                    }
084    
085                    return soapModels;
086            }
087    
088            public static GroupSoap[] toSoapModels(List<Group> models) {
089                    List<GroupSoap> soapModels = new ArrayList<GroupSoap>(models.size());
090    
091                    for (Group model : models) {
092                            soapModels.add(toSoapModel(model));
093                    }
094    
095                    return soapModels.toArray(new GroupSoap[soapModels.size()]);
096            }
097    
098            public GroupSoap() {
099            }
100    
101            public long getPrimaryKey() {
102                    return _groupId;
103            }
104    
105            public void setPrimaryKey(long pk) {
106                    setGroupId(pk);
107            }
108    
109            public long getMvccVersion() {
110                    return _mvccVersion;
111            }
112    
113            public void setMvccVersion(long mvccVersion) {
114                    _mvccVersion = mvccVersion;
115            }
116    
117            public String getUuid() {
118                    return _uuid;
119            }
120    
121            public void setUuid(String uuid) {
122                    _uuid = uuid;
123            }
124    
125            public long getGroupId() {
126                    return _groupId;
127            }
128    
129            public void setGroupId(long groupId) {
130                    _groupId = groupId;
131            }
132    
133            public long getCompanyId() {
134                    return _companyId;
135            }
136    
137            public void setCompanyId(long companyId) {
138                    _companyId = companyId;
139            }
140    
141            public long getCreatorUserId() {
142                    return _creatorUserId;
143            }
144    
145            public void setCreatorUserId(long creatorUserId) {
146                    _creatorUserId = creatorUserId;
147            }
148    
149            public long getClassNameId() {
150                    return _classNameId;
151            }
152    
153            public void setClassNameId(long classNameId) {
154                    _classNameId = classNameId;
155            }
156    
157            public long getClassPK() {
158                    return _classPK;
159            }
160    
161            public void setClassPK(long classPK) {
162                    _classPK = classPK;
163            }
164    
165            public long getParentGroupId() {
166                    return _parentGroupId;
167            }
168    
169            public void setParentGroupId(long parentGroupId) {
170                    _parentGroupId = parentGroupId;
171            }
172    
173            public long getLiveGroupId() {
174                    return _liveGroupId;
175            }
176    
177            public void setLiveGroupId(long liveGroupId) {
178                    _liveGroupId = liveGroupId;
179            }
180    
181            public String getTreePath() {
182                    return _treePath;
183            }
184    
185            public void setTreePath(String treePath) {
186                    _treePath = treePath;
187            }
188    
189            public String getName() {
190                    return _name;
191            }
192    
193            public void setName(String name) {
194                    _name = name;
195            }
196    
197            public String getDescription() {
198                    return _description;
199            }
200    
201            public void setDescription(String description) {
202                    _description = description;
203            }
204    
205            public int getType() {
206                    return _type;
207            }
208    
209            public void setType(int type) {
210                    _type = type;
211            }
212    
213            public String getTypeSettings() {
214                    return _typeSettings;
215            }
216    
217            public void setTypeSettings(String typeSettings) {
218                    _typeSettings = typeSettings;
219            }
220    
221            public boolean getManualMembership() {
222                    return _manualMembership;
223            }
224    
225            public boolean isManualMembership() {
226                    return _manualMembership;
227            }
228    
229            public void setManualMembership(boolean manualMembership) {
230                    _manualMembership = manualMembership;
231            }
232    
233            public int getMembershipRestriction() {
234                    return _membershipRestriction;
235            }
236    
237            public void setMembershipRestriction(int membershipRestriction) {
238                    _membershipRestriction = membershipRestriction;
239            }
240    
241            public String getFriendlyURL() {
242                    return _friendlyURL;
243            }
244    
245            public void setFriendlyURL(String friendlyURL) {
246                    _friendlyURL = friendlyURL;
247            }
248    
249            public boolean getSite() {
250                    return _site;
251            }
252    
253            public boolean isSite() {
254                    return _site;
255            }
256    
257            public void setSite(boolean site) {
258                    _site = site;
259            }
260    
261            public int getRemoteStagingGroupCount() {
262                    return _remoteStagingGroupCount;
263            }
264    
265            public void setRemoteStagingGroupCount(int remoteStagingGroupCount) {
266                    _remoteStagingGroupCount = remoteStagingGroupCount;
267            }
268    
269            public boolean getInheritContent() {
270                    return _inheritContent;
271            }
272    
273            public boolean isInheritContent() {
274                    return _inheritContent;
275            }
276    
277            public void setInheritContent(boolean inheritContent) {
278                    _inheritContent = inheritContent;
279            }
280    
281            public boolean getActive() {
282                    return _active;
283            }
284    
285            public boolean isActive() {
286                    return _active;
287            }
288    
289            public void setActive(boolean active) {
290                    _active = active;
291            }
292    
293            private long _mvccVersion;
294            private String _uuid;
295            private long _groupId;
296            private long _companyId;
297            private long _creatorUserId;
298            private long _classNameId;
299            private long _classPK;
300            private long _parentGroupId;
301            private long _liveGroupId;
302            private String _treePath;
303            private String _name;
304            private String _description;
305            private int _type;
306            private String _typeSettings;
307            private boolean _manualMembership;
308            private int _membershipRestriction;
309            private String _friendlyURL;
310            private boolean _site;
311            private int _remoteStagingGroupCount;
312            private boolean _inheritContent;
313            private boolean _active;
314    }