1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="GroupSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.GroupServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.GroupServiceSoap
37   * @generated
38   */
39  public class GroupSoap implements Serializable {
40      public static GroupSoap toSoapModel(Group model) {
41          GroupSoap soapModel = new GroupSoap();
42  
43          soapModel.setGroupId(model.getGroupId());
44          soapModel.setCompanyId(model.getCompanyId());
45          soapModel.setCreatorUserId(model.getCreatorUserId());
46          soapModel.setClassNameId(model.getClassNameId());
47          soapModel.setClassPK(model.getClassPK());
48          soapModel.setParentGroupId(model.getParentGroupId());
49          soapModel.setLiveGroupId(model.getLiveGroupId());
50          soapModel.setName(model.getName());
51          soapModel.setDescription(model.getDescription());
52          soapModel.setType(model.getType());
53          soapModel.setTypeSettings(model.getTypeSettings());
54          soapModel.setFriendlyURL(model.getFriendlyURL());
55          soapModel.setActive(model.getActive());
56  
57          return soapModel;
58      }
59  
60      public static GroupSoap[] toSoapModels(Group[] models) {
61          GroupSoap[] soapModels = new GroupSoap[models.length];
62  
63          for (int i = 0; i < models.length; i++) {
64              soapModels[i] = toSoapModel(models[i]);
65          }
66  
67          return soapModels;
68      }
69  
70      public static GroupSoap[][] toSoapModels(Group[][] models) {
71          GroupSoap[][] soapModels = null;
72  
73          if (models.length > 0) {
74              soapModels = new GroupSoap[models.length][models[0].length];
75          }
76          else {
77              soapModels = new GroupSoap[0][0];
78          }
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModels(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static GroupSoap[] toSoapModels(List<Group> models) {
88          List<GroupSoap> soapModels = new ArrayList<GroupSoap>(models.size());
89  
90          for (Group model : models) {
91              soapModels.add(toSoapModel(model));
92          }
93  
94          return soapModels.toArray(new GroupSoap[soapModels.size()]);
95      }
96  
97      public GroupSoap() {
98      }
99  
100     public long getPrimaryKey() {
101         return _groupId;
102     }
103 
104     public void setPrimaryKey(long pk) {
105         setGroupId(pk);
106     }
107 
108     public long getGroupId() {
109         return _groupId;
110     }
111 
112     public void setGroupId(long groupId) {
113         _groupId = groupId;
114     }
115 
116     public long getCompanyId() {
117         return _companyId;
118     }
119 
120     public void setCompanyId(long companyId) {
121         _companyId = companyId;
122     }
123 
124     public long getCreatorUserId() {
125         return _creatorUserId;
126     }
127 
128     public void setCreatorUserId(long creatorUserId) {
129         _creatorUserId = creatorUserId;
130     }
131 
132     public long getClassNameId() {
133         return _classNameId;
134     }
135 
136     public void setClassNameId(long classNameId) {
137         _classNameId = classNameId;
138     }
139 
140     public long getClassPK() {
141         return _classPK;
142     }
143 
144     public void setClassPK(long classPK) {
145         _classPK = classPK;
146     }
147 
148     public long getParentGroupId() {
149         return _parentGroupId;
150     }
151 
152     public void setParentGroupId(long parentGroupId) {
153         _parentGroupId = parentGroupId;
154     }
155 
156     public long getLiveGroupId() {
157         return _liveGroupId;
158     }
159 
160     public void setLiveGroupId(long liveGroupId) {
161         _liveGroupId = liveGroupId;
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 getActive() {
205         return _active;
206     }
207 
208     public boolean isActive() {
209         return _active;
210     }
211 
212     public void setActive(boolean active) {
213         _active = active;
214     }
215 
216     private long _groupId;
217     private long _companyId;
218     private long _creatorUserId;
219     private long _classNameId;
220     private long _classPK;
221     private long _parentGroupId;
222     private long _liveGroupId;
223     private String _name;
224     private String _description;
225     private int _type;
226     private String _typeSettings;
227     private String _friendlyURL;
228     private boolean _active;
229 }