001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.setName(model.getName());
041                    soapModel.setDescription(model.getDescription());
042                    soapModel.setType(model.getType());
043                    soapModel.setTypeSettings(model.getTypeSettings());
044                    soapModel.setFriendlyURL(model.getFriendlyURL());
045                    soapModel.setActive(model.getActive());
046    
047                    return soapModel;
048            }
049    
050            public static GroupSoap[] toSoapModels(Group[] models) {
051                    GroupSoap[] soapModels = new GroupSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static GroupSoap[][] toSoapModels(Group[][] models) {
061                    GroupSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new GroupSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new GroupSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static GroupSoap[] toSoapModels(List<Group> models) {
078                    List<GroupSoap> soapModels = new ArrayList<GroupSoap>(models.size());
079    
080                    for (Group model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new GroupSoap[soapModels.size()]);
085            }
086    
087            public GroupSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _groupId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setGroupId(pk);
096            }
097    
098            public long getGroupId() {
099                    return _groupId;
100            }
101    
102            public void setGroupId(long groupId) {
103                    _groupId = groupId;
104            }
105    
106            public long getCompanyId() {
107                    return _companyId;
108            }
109    
110            public void setCompanyId(long companyId) {
111                    _companyId = companyId;
112            }
113    
114            public long getCreatorUserId() {
115                    return _creatorUserId;
116            }
117    
118            public void setCreatorUserId(long creatorUserId) {
119                    _creatorUserId = creatorUserId;
120            }
121    
122            public long getClassNameId() {
123                    return _classNameId;
124            }
125    
126            public void setClassNameId(long classNameId) {
127                    _classNameId = classNameId;
128            }
129    
130            public long getClassPK() {
131                    return _classPK;
132            }
133    
134            public void setClassPK(long classPK) {
135                    _classPK = classPK;
136            }
137    
138            public long getParentGroupId() {
139                    return _parentGroupId;
140            }
141    
142            public void setParentGroupId(long parentGroupId) {
143                    _parentGroupId = parentGroupId;
144            }
145    
146            public long getLiveGroupId() {
147                    return _liveGroupId;
148            }
149    
150            public void setLiveGroupId(long liveGroupId) {
151                    _liveGroupId = liveGroupId;
152            }
153    
154            public String getName() {
155                    return _name;
156            }
157    
158            public void setName(String name) {
159                    _name = name;
160            }
161    
162            public String getDescription() {
163                    return _description;
164            }
165    
166            public void setDescription(String description) {
167                    _description = description;
168            }
169    
170            public int getType() {
171                    return _type;
172            }
173    
174            public void setType(int type) {
175                    _type = type;
176            }
177    
178            public String getTypeSettings() {
179                    return _typeSettings;
180            }
181    
182            public void setTypeSettings(String typeSettings) {
183                    _typeSettings = typeSettings;
184            }
185    
186            public String getFriendlyURL() {
187                    return _friendlyURL;
188            }
189    
190            public void setFriendlyURL(String friendlyURL) {
191                    _friendlyURL = friendlyURL;
192            }
193    
194            public boolean getActive() {
195                    return _active;
196            }
197    
198            public boolean isActive() {
199                    return _active;
200            }
201    
202            public void setActive(boolean active) {
203                    _active = active;
204            }
205    
206            private long _groupId;
207            private long _companyId;
208            private long _creatorUserId;
209            private long _classNameId;
210            private long _classPK;
211            private long _parentGroupId;
212            private long _liveGroupId;
213            private String _name;
214            private String _description;
215            private int _type;
216            private String _typeSettings;
217            private String _friendlyURL;
218            private boolean _active;
219    }