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