001
014
015 package com.liferay.portlet.asset.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
033 public class AssetEntrySoap implements Serializable {
034 public static AssetEntrySoap toSoapModel(AssetEntry model) {
035 AssetEntrySoap soapModel = new AssetEntrySoap();
036
037 soapModel.setEntryId(model.getEntryId());
038 soapModel.setGroupId(model.getGroupId());
039 soapModel.setCompanyId(model.getCompanyId());
040 soapModel.setUserId(model.getUserId());
041 soapModel.setUserName(model.getUserName());
042 soapModel.setCreateDate(model.getCreateDate());
043 soapModel.setModifiedDate(model.getModifiedDate());
044 soapModel.setClassNameId(model.getClassNameId());
045 soapModel.setClassPK(model.getClassPK());
046 soapModel.setClassUuid(model.getClassUuid());
047 soapModel.setVisible(model.getVisible());
048 soapModel.setStartDate(model.getStartDate());
049 soapModel.setEndDate(model.getEndDate());
050 soapModel.setPublishDate(model.getPublishDate());
051 soapModel.setExpirationDate(model.getExpirationDate());
052 soapModel.setMimeType(model.getMimeType());
053 soapModel.setTitle(model.getTitle());
054 soapModel.setDescription(model.getDescription());
055 soapModel.setSummary(model.getSummary());
056 soapModel.setUrl(model.getUrl());
057 soapModel.setHeight(model.getHeight());
058 soapModel.setWidth(model.getWidth());
059 soapModel.setPriority(model.getPriority());
060 soapModel.setViewCount(model.getViewCount());
061
062 return soapModel;
063 }
064
065 public static AssetEntrySoap[] toSoapModels(AssetEntry[] models) {
066 AssetEntrySoap[] soapModels = new AssetEntrySoap[models.length];
067
068 for (int i = 0; i < models.length; i++) {
069 soapModels[i] = toSoapModel(models[i]);
070 }
071
072 return soapModels;
073 }
074
075 public static AssetEntrySoap[][] toSoapModels(AssetEntry[][] models) {
076 AssetEntrySoap[][] soapModels = null;
077
078 if (models.length > 0) {
079 soapModels = new AssetEntrySoap[models.length][models[0].length];
080 }
081 else {
082 soapModels = new AssetEntrySoap[0][0];
083 }
084
085 for (int i = 0; i < models.length; i++) {
086 soapModels[i] = toSoapModels(models[i]);
087 }
088
089 return soapModels;
090 }
091
092 public static AssetEntrySoap[] toSoapModels(List<AssetEntry> models) {
093 List<AssetEntrySoap> soapModels = new ArrayList<AssetEntrySoap>(models.size());
094
095 for (AssetEntry model : models) {
096 soapModels.add(toSoapModel(model));
097 }
098
099 return soapModels.toArray(new AssetEntrySoap[soapModels.size()]);
100 }
101
102 public AssetEntrySoap() {
103 }
104
105 public long getPrimaryKey() {
106 return _entryId;
107 }
108
109 public void setPrimaryKey(long pk) {
110 setEntryId(pk);
111 }
112
113 public long getEntryId() {
114 return _entryId;
115 }
116
117 public void setEntryId(long entryId) {
118 _entryId = entryId;
119 }
120
121 public long getGroupId() {
122 return _groupId;
123 }
124
125 public void setGroupId(long groupId) {
126 _groupId = groupId;
127 }
128
129 public long getCompanyId() {
130 return _companyId;
131 }
132
133 public void setCompanyId(long companyId) {
134 _companyId = companyId;
135 }
136
137 public long getUserId() {
138 return _userId;
139 }
140
141 public void setUserId(long userId) {
142 _userId = userId;
143 }
144
145 public String getUserName() {
146 return _userName;
147 }
148
149 public void setUserName(String userName) {
150 _userName = userName;
151 }
152
153 public Date getCreateDate() {
154 return _createDate;
155 }
156
157 public void setCreateDate(Date createDate) {
158 _createDate = createDate;
159 }
160
161 public Date getModifiedDate() {
162 return _modifiedDate;
163 }
164
165 public void setModifiedDate(Date modifiedDate) {
166 _modifiedDate = modifiedDate;
167 }
168
169 public long getClassNameId() {
170 return _classNameId;
171 }
172
173 public void setClassNameId(long classNameId) {
174 _classNameId = classNameId;
175 }
176
177 public long getClassPK() {
178 return _classPK;
179 }
180
181 public void setClassPK(long classPK) {
182 _classPK = classPK;
183 }
184
185 public String getClassUuid() {
186 return _classUuid;
187 }
188
189 public void setClassUuid(String classUuid) {
190 _classUuid = classUuid;
191 }
192
193 public boolean getVisible() {
194 return _visible;
195 }
196
197 public boolean isVisible() {
198 return _visible;
199 }
200
201 public void setVisible(boolean visible) {
202 _visible = visible;
203 }
204
205 public Date getStartDate() {
206 return _startDate;
207 }
208
209 public void setStartDate(Date startDate) {
210 _startDate = startDate;
211 }
212
213 public Date getEndDate() {
214 return _endDate;
215 }
216
217 public void setEndDate(Date endDate) {
218 _endDate = endDate;
219 }
220
221 public Date getPublishDate() {
222 return _publishDate;
223 }
224
225 public void setPublishDate(Date publishDate) {
226 _publishDate = publishDate;
227 }
228
229 public Date getExpirationDate() {
230 return _expirationDate;
231 }
232
233 public void setExpirationDate(Date expirationDate) {
234 _expirationDate = expirationDate;
235 }
236
237 public String getMimeType() {
238 return _mimeType;
239 }
240
241 public void setMimeType(String mimeType) {
242 _mimeType = mimeType;
243 }
244
245 public String getTitle() {
246 return _title;
247 }
248
249 public void setTitle(String title) {
250 _title = title;
251 }
252
253 public String getDescription() {
254 return _description;
255 }
256
257 public void setDescription(String description) {
258 _description = description;
259 }
260
261 public String getSummary() {
262 return _summary;
263 }
264
265 public void setSummary(String summary) {
266 _summary = summary;
267 }
268
269 public String getUrl() {
270 return _url;
271 }
272
273 public void setUrl(String url) {
274 _url = url;
275 }
276
277 public int getHeight() {
278 return _height;
279 }
280
281 public void setHeight(int height) {
282 _height = height;
283 }
284
285 public int getWidth() {
286 return _width;
287 }
288
289 public void setWidth(int width) {
290 _width = width;
291 }
292
293 public double getPriority() {
294 return _priority;
295 }
296
297 public void setPriority(double priority) {
298 _priority = priority;
299 }
300
301 public int getViewCount() {
302 return _viewCount;
303 }
304
305 public void setViewCount(int viewCount) {
306 _viewCount = viewCount;
307 }
308
309 private long _entryId;
310 private long _groupId;
311 private long _companyId;
312 private long _userId;
313 private String _userName;
314 private Date _createDate;
315 private Date _modifiedDate;
316 private long _classNameId;
317 private long _classPK;
318 private String _classUuid;
319 private boolean _visible;
320 private Date _startDate;
321 private Date _endDate;
322 private Date _publishDate;
323 private Date _expirationDate;
324 private String _mimeType;
325 private String _title;
326 private String _description;
327 private String _summary;
328 private String _url;
329 private int _height;
330 private int _width;
331 private double _priority;
332 private int _viewCount;
333 }