1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.List;
29  
30  /**
31   * <a href="GroupSoap.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by
40   * {@link com.liferay.portal.service.http.GroupServiceSoap}.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       com.liferay.portal.service.http.GroupServiceSoap
45   * @generated
46   */
47  public class GroupSoap implements Serializable {
48      public static GroupSoap toSoapModel(Group model) {
49          GroupSoap soapModel = new GroupSoap();
50  
51          soapModel.setGroupId(model.getGroupId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setCreatorUserId(model.getCreatorUserId());
54          soapModel.setClassNameId(model.getClassNameId());
55          soapModel.setClassPK(model.getClassPK());
56          soapModel.setParentGroupId(model.getParentGroupId());
57          soapModel.setLiveGroupId(model.getLiveGroupId());
58          soapModel.setName(model.getName());
59          soapModel.setDescription(model.getDescription());
60          soapModel.setType(model.getType());
61          soapModel.setTypeSettings(model.getTypeSettings());
62          soapModel.setFriendlyURL(model.getFriendlyURL());
63          soapModel.setActive(model.getActive());
64  
65          return soapModel;
66      }
67  
68      public static GroupSoap[] toSoapModels(Group[] models) {
69          GroupSoap[] soapModels = new GroupSoap[models.length];
70  
71          for (int i = 0; i < models.length; i++) {
72              soapModels[i] = toSoapModel(models[i]);
73          }
74  
75          return soapModels;
76      }
77  
78      public static GroupSoap[][] toSoapModels(Group[][] models) {
79          GroupSoap[][] soapModels = null;
80  
81          if (models.length > 0) {
82              soapModels = new GroupSoap[models.length][models[0].length];
83          }
84          else {
85              soapModels = new GroupSoap[0][0];
86          }
87  
88          for (int i = 0; i < models.length; i++) {
89              soapModels[i] = toSoapModels(models[i]);
90          }
91  
92          return soapModels;
93      }
94  
95      public static GroupSoap[] toSoapModels(List<Group> models) {
96          List<GroupSoap> soapModels = new ArrayList<GroupSoap>(models.size());
97  
98          for (Group model : models) {
99              soapModels.add(toSoapModel(model));
100         }
101 
102         return soapModels.toArray(new GroupSoap[soapModels.size()]);
103     }
104 
105     public GroupSoap() {
106     }
107 
108     public long getPrimaryKey() {
109         return _groupId;
110     }
111 
112     public void setPrimaryKey(long pk) {
113         setGroupId(pk);
114     }
115 
116     public long getGroupId() {
117         return _groupId;
118     }
119 
120     public void setGroupId(long groupId) {
121         _groupId = groupId;
122     }
123 
124     public long getCompanyId() {
125         return _companyId;
126     }
127 
128     public void setCompanyId(long companyId) {
129         _companyId = companyId;
130     }
131 
132     public long getCreatorUserId() {
133         return _creatorUserId;
134     }
135 
136     public void setCreatorUserId(long creatorUserId) {
137         _creatorUserId = creatorUserId;
138     }
139 
140     public long getClassNameId() {
141         return _classNameId;
142     }
143 
144     public void setClassNameId(long classNameId) {
145         _classNameId = classNameId;
146     }
147 
148     public long getClassPK() {
149         return _classPK;
150     }
151 
152     public void setClassPK(long classPK) {
153         _classPK = classPK;
154     }
155 
156     public long getParentGroupId() {
157         return _parentGroupId;
158     }
159 
160     public void setParentGroupId(long parentGroupId) {
161         _parentGroupId = parentGroupId;
162     }
163 
164     public long getLiveGroupId() {
165         return _liveGroupId;
166     }
167 
168     public void setLiveGroupId(long liveGroupId) {
169         _liveGroupId = liveGroupId;
170     }
171 
172     public String getName() {
173         return _name;
174     }
175 
176     public void setName(String name) {
177         _name = name;
178     }
179 
180     public String getDescription() {
181         return _description;
182     }
183 
184     public void setDescription(String description) {
185         _description = description;
186     }
187 
188     public int getType() {
189         return _type;
190     }
191 
192     public void setType(int type) {
193         _type = type;
194     }
195 
196     public String getTypeSettings() {
197         return _typeSettings;
198     }
199 
200     public void setTypeSettings(String typeSettings) {
201         _typeSettings = typeSettings;
202     }
203 
204     public String getFriendlyURL() {
205         return _friendlyURL;
206     }
207 
208     public void setFriendlyURL(String friendlyURL) {
209         _friendlyURL = friendlyURL;
210     }
211 
212     public boolean getActive() {
213         return _active;
214     }
215 
216     public boolean isActive() {
217         return _active;
218     }
219 
220     public void setActive(boolean active) {
221         _active = active;
222     }
223 
224     private long _groupId;
225     private long _companyId;
226     private long _creatorUserId;
227     private long _classNameId;
228     private long _classPK;
229     private long _parentGroupId;
230     private long _liveGroupId;
231     private String _name;
232     private String _description;
233     private int _type;
234     private String _typeSettings;
235     private String _friendlyURL;
236     private boolean _active;
237 }