1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <code>com.liferay.portal.service.http.GroupServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portal.service.http.GroupServiceSoap
46   *
47   */
48  public class GroupSoap implements Serializable {
49      public static GroupSoap toSoapModel(Group model) {
50          GroupSoap soapModel = new GroupSoap();
51  
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setCreatorUserId(model.getCreatorUserId());
55          soapModel.setClassNameId(model.getClassNameId());
56          soapModel.setClassPK(model.getClassPK());
57          soapModel.setParentGroupId(model.getParentGroupId());
58          soapModel.setLiveGroupId(model.getLiveGroupId());
59          soapModel.setName(model.getName());
60          soapModel.setDescription(model.getDescription());
61          soapModel.setType(model.getType());
62          soapModel.setTypeSettings(model.getTypeSettings());
63          soapModel.setFriendlyURL(model.getFriendlyURL());
64          soapModel.setActive(model.getActive());
65  
66          return soapModel;
67      }
68  
69      public static GroupSoap[] toSoapModels(List models) {
70          List soapModels = new ArrayList(models.size());
71  
72          for (int i = 0; i < models.size(); i++) {
73              Group model = (Group)models.get(i);
74  
75              soapModels.add(toSoapModel(model));
76          }
77  
78          return (GroupSoap[])soapModels.toArray(new GroupSoap[0]);
79      }
80  
81      public GroupSoap() {
82      }
83  
84      public long getPrimaryKey() {
85          return _groupId;
86      }
87  
88      public void setPrimaryKey(long pk) {
89          setGroupId(pk);
90      }
91  
92      public long getGroupId() {
93          return _groupId;
94      }
95  
96      public void setGroupId(long groupId) {
97          _groupId = groupId;
98      }
99  
100     public long getCompanyId() {
101         return _companyId;
102     }
103 
104     public void setCompanyId(long companyId) {
105         _companyId = companyId;
106     }
107 
108     public long getCreatorUserId() {
109         return _creatorUserId;
110     }
111 
112     public void setCreatorUserId(long creatorUserId) {
113         _creatorUserId = creatorUserId;
114     }
115 
116     public long getClassNameId() {
117         return _classNameId;
118     }
119 
120     public void setClassNameId(long classNameId) {
121         _classNameId = classNameId;
122     }
123 
124     public long getClassPK() {
125         return _classPK;
126     }
127 
128     public void setClassPK(long classPK) {
129         _classPK = classPK;
130     }
131 
132     public long getParentGroupId() {
133         return _parentGroupId;
134     }
135 
136     public void setParentGroupId(long parentGroupId) {
137         _parentGroupId = parentGroupId;
138     }
139 
140     public long getLiveGroupId() {
141         return _liveGroupId;
142     }
143 
144     public void setLiveGroupId(long liveGroupId) {
145         _liveGroupId = liveGroupId;
146     }
147 
148     public String getName() {
149         return _name;
150     }
151 
152     public void setName(String name) {
153         _name = name;
154     }
155 
156     public String getDescription() {
157         return _description;
158     }
159 
160     public void setDescription(String description) {
161         _description = description;
162     }
163 
164     public int getType() {
165         return _type;
166     }
167 
168     public void setType(int type) {
169         _type = type;
170     }
171 
172     public String getTypeSettings() {
173         return _typeSettings;
174     }
175 
176     public void setTypeSettings(String typeSettings) {
177         _typeSettings = typeSettings;
178     }
179 
180     public String getFriendlyURL() {
181         return _friendlyURL;
182     }
183 
184     public void setFriendlyURL(String friendlyURL) {
185         _friendlyURL = friendlyURL;
186     }
187 
188     public boolean getActive() {
189         return _active;
190     }
191 
192     public boolean isActive() {
193         return _active;
194     }
195 
196     public void setActive(boolean active) {
197         _active = active;
198     }
199 
200     private long _groupId;
201     private long _companyId;
202     private long _creatorUserId;
203     private long _classNameId;
204     private long _classPK;
205     private long _parentGroupId;
206     private long _liveGroupId;
207     private String _name;
208     private String _description;
209     private int _type;
210     private String _typeSettings;
211     private String _friendlyURL;
212     private boolean _active;
213 }