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