1
22
23 package com.liferay.portal.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.Date;
29 import java.util.List;
30
31
48 public class WebsiteSoap implements Serializable {
49 public static WebsiteSoap toSoapModel(Website model) {
50 WebsiteSoap soapModel = new WebsiteSoap();
51
52 soapModel.setWebsiteId(model.getWebsiteId());
53 soapModel.setCompanyId(model.getCompanyId());
54 soapModel.setUserId(model.getUserId());
55 soapModel.setUserName(model.getUserName());
56 soapModel.setCreateDate(model.getCreateDate());
57 soapModel.setModifiedDate(model.getModifiedDate());
58 soapModel.setClassNameId(model.getClassNameId());
59 soapModel.setClassPK(model.getClassPK());
60 soapModel.setUrl(model.getUrl());
61 soapModel.setTypeId(model.getTypeId());
62 soapModel.setPrimary(model.getPrimary());
63
64 return soapModel;
65 }
66
67 public static WebsiteSoap[] toSoapModels(Website[] models) {
68 WebsiteSoap[] soapModels = new WebsiteSoap[models.length];
69
70 for (int i = 0; i < models.length; i++) {
71 soapModels[i] = toSoapModel(models[i]);
72 }
73
74 return soapModels;
75 }
76
77 public static WebsiteSoap[][] toSoapModels(Website[][] models) {
78 WebsiteSoap[][] soapModels = null;
79
80 if (models.length > 0) {
81 soapModels = new WebsiteSoap[models.length][models[0].length];
82 }
83 else {
84 soapModels = new WebsiteSoap[0][0];
85 }
86
87 for (int i = 0; i < models.length; i++) {
88 soapModels[i] = toSoapModels(models[i]);
89 }
90
91 return soapModels;
92 }
93
94 public static WebsiteSoap[] toSoapModels(List<Website> models) {
95 List<WebsiteSoap> soapModels = new ArrayList<WebsiteSoap>(models.size());
96
97 for (Website model : models) {
98 soapModels.add(toSoapModel(model));
99 }
100
101 return soapModels.toArray(new WebsiteSoap[soapModels.size()]);
102 }
103
104 public WebsiteSoap() {
105 }
106
107 public long getPrimaryKey() {
108 return _websiteId;
109 }
110
111 public void setPrimaryKey(long pk) {
112 setWebsiteId(pk);
113 }
114
115 public long getWebsiteId() {
116 return _websiteId;
117 }
118
119 public void setWebsiteId(long websiteId) {
120 _websiteId = websiteId;
121 }
122
123 public long getCompanyId() {
124 return _companyId;
125 }
126
127 public void setCompanyId(long companyId) {
128 _companyId = companyId;
129 }
130
131 public long getUserId() {
132 return _userId;
133 }
134
135 public void setUserId(long userId) {
136 _userId = userId;
137 }
138
139 public String getUserName() {
140 return _userName;
141 }
142
143 public void setUserName(String userName) {
144 _userName = userName;
145 }
146
147 public Date getCreateDate() {
148 return _createDate;
149 }
150
151 public void setCreateDate(Date createDate) {
152 _createDate = createDate;
153 }
154
155 public Date getModifiedDate() {
156 return _modifiedDate;
157 }
158
159 public void setModifiedDate(Date modifiedDate) {
160 _modifiedDate = modifiedDate;
161 }
162
163 public long getClassNameId() {
164 return _classNameId;
165 }
166
167 public void setClassNameId(long classNameId) {
168 _classNameId = classNameId;
169 }
170
171 public long getClassPK() {
172 return _classPK;
173 }
174
175 public void setClassPK(long classPK) {
176 _classPK = classPK;
177 }
178
179 public String getUrl() {
180 return _url;
181 }
182
183 public void setUrl(String url) {
184 _url = url;
185 }
186
187 public int getTypeId() {
188 return _typeId;
189 }
190
191 public void setTypeId(int typeId) {
192 _typeId = typeId;
193 }
194
195 public boolean getPrimary() {
196 return _primary;
197 }
198
199 public boolean isPrimary() {
200 return _primary;
201 }
202
203 public void setPrimary(boolean primary) {
204 _primary = primary;
205 }
206
207 private long _websiteId;
208 private long _companyId;
209 private long _userId;
210 private String _userName;
211 private Date _createDate;
212 private Date _modifiedDate;
213 private long _classNameId;
214 private long _classPK;
215 private String _url;
216 private int _typeId;
217 private boolean _primary;
218 }