001    /**
002     * Copyright (c) 2000-2010 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     * <p>
024     * This class is used by
025     * {@link com.liferay.portal.service.http.GroupServiceSoap}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       com.liferay.portal.service.http.GroupServiceSoap
030     * @generated
031     */
032    public class GroupSoap implements Serializable {
033            public static GroupSoap toSoapModel(Group model) {
034                    GroupSoap soapModel = new GroupSoap();
035    
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setCreatorUserId(model.getCreatorUserId());
039                    soapModel.setClassNameId(model.getClassNameId());
040                    soapModel.setClassPK(model.getClassPK());
041                    soapModel.setParentGroupId(model.getParentGroupId());
042                    soapModel.setLiveGroupId(model.getLiveGroupId());
043                    soapModel.setName(model.getName());
044                    soapModel.setDescription(model.getDescription());
045                    soapModel.setType(model.getType());
046                    soapModel.setTypeSettings(model.getTypeSettings());
047                    soapModel.setFriendlyURL(model.getFriendlyURL());
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 long getGroupId() {
102                    return _groupId;
103            }
104    
105            public void setGroupId(long groupId) {
106                    _groupId = groupId;
107            }
108    
109            public long getCompanyId() {
110                    return _companyId;
111            }
112    
113            public void setCompanyId(long companyId) {
114                    _companyId = companyId;
115            }
116    
117            public long getCreatorUserId() {
118                    return _creatorUserId;
119            }
120    
121            public void setCreatorUserId(long creatorUserId) {
122                    _creatorUserId = creatorUserId;
123            }
124    
125            public long getClassNameId() {
126                    return _classNameId;
127            }
128    
129            public void setClassNameId(long classNameId) {
130                    _classNameId = classNameId;
131            }
132    
133            public long getClassPK() {
134                    return _classPK;
135            }
136    
137            public void setClassPK(long classPK) {
138                    _classPK = classPK;
139            }
140    
141            public long getParentGroupId() {
142                    return _parentGroupId;
143            }
144    
145            public void setParentGroupId(long parentGroupId) {
146                    _parentGroupId = parentGroupId;
147            }
148    
149            public long getLiveGroupId() {
150                    return _liveGroupId;
151            }
152    
153            public void setLiveGroupId(long liveGroupId) {
154                    _liveGroupId = liveGroupId;
155            }
156    
157            public String getName() {
158                    return _name;
159            }
160    
161            public void setName(String name) {
162                    _name = name;
163            }
164    
165            public String getDescription() {
166                    return _description;
167            }
168    
169            public void setDescription(String description) {
170                    _description = description;
171            }
172    
173            public int getType() {
174                    return _type;
175            }
176    
177            public void setType(int type) {
178                    _type = type;
179            }
180    
181            public String getTypeSettings() {
182                    return _typeSettings;
183            }
184    
185            public void setTypeSettings(String typeSettings) {
186                    _typeSettings = typeSettings;
187            }
188    
189            public String getFriendlyURL() {
190                    return _friendlyURL;
191            }
192    
193            public void setFriendlyURL(String friendlyURL) {
194                    _friendlyURL = friendlyURL;
195            }
196    
197            public boolean getActive() {
198                    return _active;
199            }
200    
201            public boolean isActive() {
202                    return _active;
203            }
204    
205            public void setActive(boolean active) {
206                    _active = active;
207            }
208    
209            private long _groupId;
210            private long _companyId;
211            private long _creatorUserId;
212            private long _classNameId;
213            private long _classPK;
214            private long _parentGroupId;
215            private long _liveGroupId;
216            private String _name;
217            private String _description;
218            private int _type;
219            private String _typeSettings;
220            private String _friendlyURL;
221            private boolean _active;
222    }