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