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<Group> models) {
70          List<GroupSoap> soapModels = new ArrayList<GroupSoap>(models.size());
71  
72          for (Group model : models) {
73              soapModels.add(toSoapModel(model));
74          }
75  
76          return soapModels.toArray(new GroupSoap[soapModels.size()]);
77      }
78  
79      public GroupSoap() {
80      }
81  
82      public long getPrimaryKey() {
83          return _groupId;
84      }
85  
86      public void setPrimaryKey(long pk) {
87          setGroupId(pk);
88      }
89  
90      public long getGroupId() {
91          return _groupId;
92      }
93  
94      public void setGroupId(long groupId) {
95          _groupId = groupId;
96      }
97  
98      public long getCompanyId() {
99          return _companyId;
100     }
101 
102     public void setCompanyId(long companyId) {
103         _companyId = companyId;
104     }
105 
106     public long getCreatorUserId() {
107         return _creatorUserId;
108     }
109 
110     public void setCreatorUserId(long creatorUserId) {
111         _creatorUserId = creatorUserId;
112     }
113 
114     public long getClassNameId() {
115         return _classNameId;
116     }
117 
118     public void setClassNameId(long classNameId) {
119         _classNameId = classNameId;
120     }
121 
122     public long getClassPK() {
123         return _classPK;
124     }
125 
126     public void setClassPK(long classPK) {
127         _classPK = classPK;
128     }
129 
130     public long getParentGroupId() {
131         return _parentGroupId;
132     }
133 
134     public void setParentGroupId(long parentGroupId) {
135         _parentGroupId = parentGroupId;
136     }
137 
138     public long getLiveGroupId() {
139         return _liveGroupId;
140     }
141 
142     public void setLiveGroupId(long liveGroupId) {
143         _liveGroupId = liveGroupId;
144     }
145 
146     public String getName() {
147         return _name;
148     }
149 
150     public void setName(String name) {
151         _name = name;
152     }
153 
154     public String getDescription() {
155         return _description;
156     }
157 
158     public void setDescription(String description) {
159         _description = description;
160     }
161 
162     public int getType() {
163         return _type;
164     }
165 
166     public void setType(int type) {
167         _type = type;
168     }
169 
170     public String getTypeSettings() {
171         return _typeSettings;
172     }
173 
174     public void setTypeSettings(String typeSettings) {
175         _typeSettings = typeSettings;
176     }
177 
178     public String getFriendlyURL() {
179         return _friendlyURL;
180     }
181 
182     public void setFriendlyURL(String friendlyURL) {
183         _friendlyURL = friendlyURL;
184     }
185 
186     public boolean getActive() {
187         return _active;
188     }
189 
190     public boolean isActive() {
191         return _active;
192     }
193 
194     public void setActive(boolean active) {
195         _active = active;
196     }
197 
198     private long _groupId;
199     private long _companyId;
200     private long _creatorUserId;
201     private long _classNameId;
202     private long _classPK;
203     private long _parentGroupId;
204     private long _liveGroupId;
205     private String _name;
206     private String _description;
207     private int _type;
208     private String _typeSettings;
209     private String _friendlyURL;
210     private boolean _active;
211 }