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