1   /**
2    * Copyright (c) 2000-2007 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 overwritten
35   * the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by <code>com.liferay.portal.service.http.GroupServiceSoap</code>.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portal.service.http.GroupServiceSoap
45   *
46   */
47  public class GroupSoap implements Serializable {
48      public static GroupSoap toSoapModel(Group model) {
49          GroupSoap soapModel = new GroupSoap();
50          soapModel.setGroupId(model.getGroupId());
51          soapModel.setCompanyId(model.getCompanyId());
52          soapModel.setCreatorUserId(model.getCreatorUserId());
53          soapModel.setClassNameId(model.getClassNameId());
54          soapModel.setClassPK(model.getClassPK());
55          soapModel.setParentGroupId(model.getParentGroupId());
56          soapModel.setLiveGroupId(model.getLiveGroupId());
57          soapModel.setName(model.getName());
58          soapModel.setDescription(model.getDescription());
59          soapModel.setType(model.getType());
60          soapModel.setTypeSettings(model.getTypeSettings());
61          soapModel.setFriendlyURL(model.getFriendlyURL());
62          soapModel.setActive(model.getActive());
63  
64          return soapModel;
65      }
66  
67      public static GroupSoap[] toSoapModels(List models) {
68          List soapModels = new ArrayList(models.size());
69  
70          for (int i = 0; i < models.size(); i++) {
71              Group model = (Group)models.get(i);
72              soapModels.add(toSoapModel(model));
73          }
74  
75          return (GroupSoap[])soapModels.toArray(new GroupSoap[0]);
76      }
77  
78      public GroupSoap() {
79      }
80  
81      public long getPrimaryKey() {
82          return _groupId;
83      }
84  
85      public void setPrimaryKey(long pk) {
86          setGroupId(pk);
87      }
88  
89      public long getGroupId() {
90          return _groupId;
91      }
92  
93      public void setGroupId(long groupId) {
94          _groupId = groupId;
95      }
96  
97      public long getCompanyId() {
98          return _companyId;
99      }
100 
101     public void setCompanyId(long companyId) {
102         _companyId = companyId;
103     }
104 
105     public long getCreatorUserId() {
106         return _creatorUserId;
107     }
108 
109     public void setCreatorUserId(long creatorUserId) {
110         _creatorUserId = creatorUserId;
111     }
112 
113     public long getClassNameId() {
114         return _classNameId;
115     }
116 
117     public void setClassNameId(long classNameId) {
118         _classNameId = classNameId;
119     }
120 
121     public long getClassPK() {
122         return _classPK;
123     }
124 
125     public void setClassPK(long classPK) {
126         _classPK = classPK;
127     }
128 
129     public long getParentGroupId() {
130         return _parentGroupId;
131     }
132 
133     public void setParentGroupId(long parentGroupId) {
134         _parentGroupId = parentGroupId;
135     }
136 
137     public long getLiveGroupId() {
138         return _liveGroupId;
139     }
140 
141     public void setLiveGroupId(long liveGroupId) {
142         _liveGroupId = liveGroupId;
143     }
144 
145     public String getName() {
146         return _name;
147     }
148 
149     public void setName(String name) {
150         _name = name;
151     }
152 
153     public String getDescription() {
154         return _description;
155     }
156 
157     public void setDescription(String description) {
158         _description = description;
159     }
160 
161     public String getType() {
162         return _type;
163     }
164 
165     public void setType(String type) {
166         _type = type;
167     }
168 
169     public String getTypeSettings() {
170         return _typeSettings;
171     }
172 
173     public void setTypeSettings(String typeSettings) {
174         _typeSettings = typeSettings;
175     }
176 
177     public String getFriendlyURL() {
178         return _friendlyURL;
179     }
180 
181     public void setFriendlyURL(String friendlyURL) {
182         _friendlyURL = friendlyURL;
183     }
184 
185     public boolean getActive() {
186         return _active;
187     }
188 
189     public boolean isActive() {
190         return _active;
191     }
192 
193     public void setActive(boolean active) {
194         _active = active;
195     }
196 
197     private long _groupId;
198     private long _companyId;
199     private long _creatorUserId;
200     private long _classNameId;
201     private long _classPK;
202     private long _parentGroupId;
203     private long _liveGroupId;
204     private String _name;
205     private String _description;
206     private String _type;
207     private String _typeSettings;
208     private String _friendlyURL;
209     private boolean _active;
210 }