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