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.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="WebsiteSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portal.service.http.WebsiteServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portal.service.http.WebsiteServiceSoap
44   *
45   */
46  public class WebsiteSoap implements Serializable {
47      public static WebsiteSoap toSoapModel(Website model) {
48          WebsiteSoap soapModel = new WebsiteSoap();
49  
50          soapModel.setWebsiteId(model.getWebsiteId());
51          soapModel.setCompanyId(model.getCompanyId());
52          soapModel.setUserId(model.getUserId());
53          soapModel.setUserName(model.getUserName());
54          soapModel.setCreateDate(model.getCreateDate());
55          soapModel.setModifiedDate(model.getModifiedDate());
56          soapModel.setClassNameId(model.getClassNameId());
57          soapModel.setClassPK(model.getClassPK());
58          soapModel.setUrl(model.getUrl());
59          soapModel.setTypeId(model.getTypeId());
60          soapModel.setPrimary(model.getPrimary());
61  
62          return soapModel;
63      }
64  
65      public static WebsiteSoap[] toSoapModels(List<Website> models) {
66          List<WebsiteSoap> soapModels = new ArrayList<WebsiteSoap>(models.size());
67  
68          for (Website model : models) {
69              soapModels.add(toSoapModel(model));
70          }
71  
72          return soapModels.toArray(new WebsiteSoap[soapModels.size()]);
73      }
74  
75      public WebsiteSoap() {
76      }
77  
78      public long getPrimaryKey() {
79          return _websiteId;
80      }
81  
82      public void setPrimaryKey(long pk) {
83          setWebsiteId(pk);
84      }
85  
86      public long getWebsiteId() {
87          return _websiteId;
88      }
89  
90      public void setWebsiteId(long websiteId) {
91          _websiteId = websiteId;
92      }
93  
94      public long getCompanyId() {
95          return _companyId;
96      }
97  
98      public void setCompanyId(long companyId) {
99          _companyId = companyId;
100     }
101 
102     public long getUserId() {
103         return _userId;
104     }
105 
106     public void setUserId(long userId) {
107         _userId = userId;
108     }
109 
110     public String getUserName() {
111         return _userName;
112     }
113 
114     public void setUserName(String userName) {
115         _userName = userName;
116     }
117 
118     public Date getCreateDate() {
119         return _createDate;
120     }
121 
122     public void setCreateDate(Date createDate) {
123         _createDate = createDate;
124     }
125 
126     public Date getModifiedDate() {
127         return _modifiedDate;
128     }
129 
130     public void setModifiedDate(Date modifiedDate) {
131         _modifiedDate = modifiedDate;
132     }
133 
134     public long getClassNameId() {
135         return _classNameId;
136     }
137 
138     public void setClassNameId(long classNameId) {
139         _classNameId = classNameId;
140     }
141 
142     public long getClassPK() {
143         return _classPK;
144     }
145 
146     public void setClassPK(long classPK) {
147         _classPK = classPK;
148     }
149 
150     public String getUrl() {
151         return _url;
152     }
153 
154     public void setUrl(String url) {
155         _url = url;
156     }
157 
158     public int getTypeId() {
159         return _typeId;
160     }
161 
162     public void setTypeId(int typeId) {
163         _typeId = typeId;
164     }
165 
166     public boolean getPrimary() {
167         return _primary;
168     }
169 
170     public boolean isPrimary() {
171         return _primary;
172     }
173 
174     public void setPrimary(boolean primary) {
175         _primary = primary;
176     }
177 
178     private long _websiteId;
179     private long _companyId;
180     private long _userId;
181     private String _userName;
182     private Date _createDate;
183     private Date _modifiedDate;
184     private long _classNameId;
185     private long _classPK;
186     private String _url;
187     private int _typeId;
188     private boolean _primary;
189 }