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