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