001
014
015 package com.liferay.portlet.softwarecatalog.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class SCProductEntryWrapper implements SCProductEntry,
033 ModelWrapper<SCProductEntry> {
034 public SCProductEntryWrapper(SCProductEntry scProductEntry) {
035 _scProductEntry = scProductEntry;
036 }
037
038 public Class<?> getModelClass() {
039 return SCProductEntry.class;
040 }
041
042 public String getModelClassName() {
043 return SCProductEntry.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("productEntryId", getProductEntryId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("name", getName());
057 attributes.put("type", getType());
058 attributes.put("tags", getTags());
059 attributes.put("shortDescription", getShortDescription());
060 attributes.put("longDescription", getLongDescription());
061 attributes.put("pageURL", getPageURL());
062 attributes.put("author", getAuthor());
063 attributes.put("repoGroupId", getRepoGroupId());
064 attributes.put("repoArtifactId", getRepoArtifactId());
065
066 return attributes;
067 }
068
069 public void setModelAttributes(Map<String, Object> attributes) {
070 Long productEntryId = (Long)attributes.get("productEntryId");
071
072 if (productEntryId != null) {
073 setProductEntryId(productEntryId);
074 }
075
076 Long groupId = (Long)attributes.get("groupId");
077
078 if (groupId != null) {
079 setGroupId(groupId);
080 }
081
082 Long companyId = (Long)attributes.get("companyId");
083
084 if (companyId != null) {
085 setCompanyId(companyId);
086 }
087
088 Long userId = (Long)attributes.get("userId");
089
090 if (userId != null) {
091 setUserId(userId);
092 }
093
094 String userName = (String)attributes.get("userName");
095
096 if (userName != null) {
097 setUserName(userName);
098 }
099
100 Date createDate = (Date)attributes.get("createDate");
101
102 if (createDate != null) {
103 setCreateDate(createDate);
104 }
105
106 Date modifiedDate = (Date)attributes.get("modifiedDate");
107
108 if (modifiedDate != null) {
109 setModifiedDate(modifiedDate);
110 }
111
112 String name = (String)attributes.get("name");
113
114 if (name != null) {
115 setName(name);
116 }
117
118 String type = (String)attributes.get("type");
119
120 if (type != null) {
121 setType(type);
122 }
123
124 String tags = (String)attributes.get("tags");
125
126 if (tags != null) {
127 setTags(tags);
128 }
129
130 String shortDescription = (String)attributes.get("shortDescription");
131
132 if (shortDescription != null) {
133 setShortDescription(shortDescription);
134 }
135
136 String longDescription = (String)attributes.get("longDescription");
137
138 if (longDescription != null) {
139 setLongDescription(longDescription);
140 }
141
142 String pageURL = (String)attributes.get("pageURL");
143
144 if (pageURL != null) {
145 setPageURL(pageURL);
146 }
147
148 String author = (String)attributes.get("author");
149
150 if (author != null) {
151 setAuthor(author);
152 }
153
154 String repoGroupId = (String)attributes.get("repoGroupId");
155
156 if (repoGroupId != null) {
157 setRepoGroupId(repoGroupId);
158 }
159
160 String repoArtifactId = (String)attributes.get("repoArtifactId");
161
162 if (repoArtifactId != null) {
163 setRepoArtifactId(repoArtifactId);
164 }
165 }
166
167
172 public long getPrimaryKey() {
173 return _scProductEntry.getPrimaryKey();
174 }
175
176
181 public void setPrimaryKey(long primaryKey) {
182 _scProductEntry.setPrimaryKey(primaryKey);
183 }
184
185
190 public long getProductEntryId() {
191 return _scProductEntry.getProductEntryId();
192 }
193
194
199 public void setProductEntryId(long productEntryId) {
200 _scProductEntry.setProductEntryId(productEntryId);
201 }
202
203
208 public long getGroupId() {
209 return _scProductEntry.getGroupId();
210 }
211
212
217 public void setGroupId(long groupId) {
218 _scProductEntry.setGroupId(groupId);
219 }
220
221
226 public long getCompanyId() {
227 return _scProductEntry.getCompanyId();
228 }
229
230
235 public void setCompanyId(long companyId) {
236 _scProductEntry.setCompanyId(companyId);
237 }
238
239
244 public long getUserId() {
245 return _scProductEntry.getUserId();
246 }
247
248
253 public void setUserId(long userId) {
254 _scProductEntry.setUserId(userId);
255 }
256
257
263 public java.lang.String getUserUuid()
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return _scProductEntry.getUserUuid();
266 }
267
268
273 public void setUserUuid(java.lang.String userUuid) {
274 _scProductEntry.setUserUuid(userUuid);
275 }
276
277
282 public java.lang.String getUserName() {
283 return _scProductEntry.getUserName();
284 }
285
286
291 public void setUserName(java.lang.String userName) {
292 _scProductEntry.setUserName(userName);
293 }
294
295
300 public java.util.Date getCreateDate() {
301 return _scProductEntry.getCreateDate();
302 }
303
304
309 public void setCreateDate(java.util.Date createDate) {
310 _scProductEntry.setCreateDate(createDate);
311 }
312
313
318 public java.util.Date getModifiedDate() {
319 return _scProductEntry.getModifiedDate();
320 }
321
322
327 public void setModifiedDate(java.util.Date modifiedDate) {
328 _scProductEntry.setModifiedDate(modifiedDate);
329 }
330
331
336 public java.lang.String getName() {
337 return _scProductEntry.getName();
338 }
339
340
345 public void setName(java.lang.String name) {
346 _scProductEntry.setName(name);
347 }
348
349
354 public java.lang.String getType() {
355 return _scProductEntry.getType();
356 }
357
358
363 public void setType(java.lang.String type) {
364 _scProductEntry.setType(type);
365 }
366
367
372 public java.lang.String getTags() {
373 return _scProductEntry.getTags();
374 }
375
376
381 public void setTags(java.lang.String tags) {
382 _scProductEntry.setTags(tags);
383 }
384
385
390 public java.lang.String getShortDescription() {
391 return _scProductEntry.getShortDescription();
392 }
393
394
399 public void setShortDescription(java.lang.String shortDescription) {
400 _scProductEntry.setShortDescription(shortDescription);
401 }
402
403
408 public java.lang.String getLongDescription() {
409 return _scProductEntry.getLongDescription();
410 }
411
412
417 public void setLongDescription(java.lang.String longDescription) {
418 _scProductEntry.setLongDescription(longDescription);
419 }
420
421
426 public java.lang.String getPageURL() {
427 return _scProductEntry.getPageURL();
428 }
429
430
435 public void setPageURL(java.lang.String pageURL) {
436 _scProductEntry.setPageURL(pageURL);
437 }
438
439
444 public java.lang.String getAuthor() {
445 return _scProductEntry.getAuthor();
446 }
447
448
453 public void setAuthor(java.lang.String author) {
454 _scProductEntry.setAuthor(author);
455 }
456
457
462 public java.lang.String getRepoGroupId() {
463 return _scProductEntry.getRepoGroupId();
464 }
465
466
471 public void setRepoGroupId(java.lang.String repoGroupId) {
472 _scProductEntry.setRepoGroupId(repoGroupId);
473 }
474
475
480 public java.lang.String getRepoArtifactId() {
481 return _scProductEntry.getRepoArtifactId();
482 }
483
484
489 public void setRepoArtifactId(java.lang.String repoArtifactId) {
490 _scProductEntry.setRepoArtifactId(repoArtifactId);
491 }
492
493 public boolean isNew() {
494 return _scProductEntry.isNew();
495 }
496
497 public void setNew(boolean n) {
498 _scProductEntry.setNew(n);
499 }
500
501 public boolean isCachedModel() {
502 return _scProductEntry.isCachedModel();
503 }
504
505 public void setCachedModel(boolean cachedModel) {
506 _scProductEntry.setCachedModel(cachedModel);
507 }
508
509 public boolean isEscapedModel() {
510 return _scProductEntry.isEscapedModel();
511 }
512
513 public java.io.Serializable getPrimaryKeyObj() {
514 return _scProductEntry.getPrimaryKeyObj();
515 }
516
517 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
518 _scProductEntry.setPrimaryKeyObj(primaryKeyObj);
519 }
520
521 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
522 return _scProductEntry.getExpandoBridge();
523 }
524
525 public void setExpandoBridgeAttributes(
526 com.liferay.portal.service.ServiceContext serviceContext) {
527 _scProductEntry.setExpandoBridgeAttributes(serviceContext);
528 }
529
530 @Override
531 public java.lang.Object clone() {
532 return new SCProductEntryWrapper((SCProductEntry)_scProductEntry.clone());
533 }
534
535 public int compareTo(
536 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry) {
537 return _scProductEntry.compareTo(scProductEntry);
538 }
539
540 @Override
541 public int hashCode() {
542 return _scProductEntry.hashCode();
543 }
544
545 public com.liferay.portal.model.CacheModel<com.liferay.portlet.softwarecatalog.model.SCProductEntry> toCacheModel() {
546 return _scProductEntry.toCacheModel();
547 }
548
549 public com.liferay.portlet.softwarecatalog.model.SCProductEntry toEscapedModel() {
550 return new SCProductEntryWrapper(_scProductEntry.toEscapedModel());
551 }
552
553 @Override
554 public java.lang.String toString() {
555 return _scProductEntry.toString();
556 }
557
558 public java.lang.String toXmlString() {
559 return _scProductEntry.toXmlString();
560 }
561
562 public void persist()
563 throws com.liferay.portal.kernel.exception.SystemException {
564 _scProductEntry.persist();
565 }
566
567 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getLatestVersion()
568 throws com.liferay.portal.kernel.exception.SystemException {
569 return _scProductEntry.getLatestVersion();
570 }
571
572 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
573 throws com.liferay.portal.kernel.exception.SystemException {
574 return _scProductEntry.getLicenses();
575 }
576
577 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> getScreenshots()
578 throws com.liferay.portal.kernel.exception.SystemException {
579 return _scProductEntry.getScreenshots();
580 }
581
582
585 public SCProductEntry getWrappedSCProductEntry() {
586 return _scProductEntry;
587 }
588
589 public SCProductEntry getWrappedModel() {
590 return _scProductEntry;
591 }
592
593 public void resetOriginalValues() {
594 _scProductEntry.resetOriginalValues();
595 }
596
597 private SCProductEntry _scProductEntry;
598 }