001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class GroupWrapper implements Group, ModelWrapper<Group> {
030 public GroupWrapper(Group group) {
031 _group = group;
032 }
033
034 public Class<?> getModelClass() {
035 return Group.class;
036 }
037
038 public String getModelClassName() {
039 return Group.class.getName();
040 }
041
042 public Map<String, Object> getModelAttributes() {
043 Map<String, Object> attributes = new HashMap<String, Object>();
044
045 attributes.put("groupId", getGroupId());
046 attributes.put("companyId", getCompanyId());
047 attributes.put("creatorUserId", getCreatorUserId());
048 attributes.put("classNameId", getClassNameId());
049 attributes.put("classPK", getClassPK());
050 attributes.put("parentGroupId", getParentGroupId());
051 attributes.put("liveGroupId", getLiveGroupId());
052 attributes.put("name", getName());
053 attributes.put("description", getDescription());
054 attributes.put("type", getType());
055 attributes.put("typeSettings", getTypeSettings());
056 attributes.put("friendlyURL", getFriendlyURL());
057 attributes.put("site", getSite());
058 attributes.put("active", getActive());
059
060 return attributes;
061 }
062
063 public void setModelAttributes(Map<String, Object> attributes) {
064 Long groupId = (Long)attributes.get("groupId");
065
066 if (groupId != null) {
067 setGroupId(groupId);
068 }
069
070 Long companyId = (Long)attributes.get("companyId");
071
072 if (companyId != null) {
073 setCompanyId(companyId);
074 }
075
076 Long creatorUserId = (Long)attributes.get("creatorUserId");
077
078 if (creatorUserId != null) {
079 setCreatorUserId(creatorUserId);
080 }
081
082 Long classNameId = (Long)attributes.get("classNameId");
083
084 if (classNameId != null) {
085 setClassNameId(classNameId);
086 }
087
088 Long classPK = (Long)attributes.get("classPK");
089
090 if (classPK != null) {
091 setClassPK(classPK);
092 }
093
094 Long parentGroupId = (Long)attributes.get("parentGroupId");
095
096 if (parentGroupId != null) {
097 setParentGroupId(parentGroupId);
098 }
099
100 Long liveGroupId = (Long)attributes.get("liveGroupId");
101
102 if (liveGroupId != null) {
103 setLiveGroupId(liveGroupId);
104 }
105
106 String name = (String)attributes.get("name");
107
108 if (name != null) {
109 setName(name);
110 }
111
112 String description = (String)attributes.get("description");
113
114 if (description != null) {
115 setDescription(description);
116 }
117
118 Integer type = (Integer)attributes.get("type");
119
120 if (type != null) {
121 setType(type);
122 }
123
124 String typeSettings = (String)attributes.get("typeSettings");
125
126 if (typeSettings != null) {
127 setTypeSettings(typeSettings);
128 }
129
130 String friendlyURL = (String)attributes.get("friendlyURL");
131
132 if (friendlyURL != null) {
133 setFriendlyURL(friendlyURL);
134 }
135
136 Boolean site = (Boolean)attributes.get("site");
137
138 if (site != null) {
139 setSite(site);
140 }
141
142 Boolean active = (Boolean)attributes.get("active");
143
144 if (active != null) {
145 setActive(active);
146 }
147 }
148
149
154 public long getPrimaryKey() {
155 return _group.getPrimaryKey();
156 }
157
158
163 public void setPrimaryKey(long primaryKey) {
164 _group.setPrimaryKey(primaryKey);
165 }
166
167
172 public long getGroupId() {
173 return _group.getGroupId();
174 }
175
176
181 public void setGroupId(long groupId) {
182 _group.setGroupId(groupId);
183 }
184
185
190 public long getCompanyId() {
191 return _group.getCompanyId();
192 }
193
194
199 public void setCompanyId(long companyId) {
200 _group.setCompanyId(companyId);
201 }
202
203
208 public long getCreatorUserId() {
209 return _group.getCreatorUserId();
210 }
211
212
217 public void setCreatorUserId(long creatorUserId) {
218 _group.setCreatorUserId(creatorUserId);
219 }
220
221
227 public java.lang.String getCreatorUserUuid()
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return _group.getCreatorUserUuid();
230 }
231
232
237 public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
238 _group.setCreatorUserUuid(creatorUserUuid);
239 }
240
241
246 public java.lang.String getClassName() {
247 return _group.getClassName();
248 }
249
250 public void setClassName(java.lang.String className) {
251 _group.setClassName(className);
252 }
253
254
259 public long getClassNameId() {
260 return _group.getClassNameId();
261 }
262
263
268 public void setClassNameId(long classNameId) {
269 _group.setClassNameId(classNameId);
270 }
271
272
277 public long getClassPK() {
278 return _group.getClassPK();
279 }
280
281
286 public void setClassPK(long classPK) {
287 _group.setClassPK(classPK);
288 }
289
290
295 public long getParentGroupId() {
296 return _group.getParentGroupId();
297 }
298
299
304 public void setParentGroupId(long parentGroupId) {
305 _group.setParentGroupId(parentGroupId);
306 }
307
308
313 public long getLiveGroupId() {
314 return _group.getLiveGroupId();
315 }
316
317
322 public void setLiveGroupId(long liveGroupId) {
323 _group.setLiveGroupId(liveGroupId);
324 }
325
326
331 public java.lang.String getName() {
332 return _group.getName();
333 }
334
335
340 public void setName(java.lang.String name) {
341 _group.setName(name);
342 }
343
344
349 public java.lang.String getDescription() {
350 return _group.getDescription();
351 }
352
353
358 public void setDescription(java.lang.String description) {
359 _group.setDescription(description);
360 }
361
362
367 public int getType() {
368 return _group.getType();
369 }
370
371
376 public void setType(int type) {
377 _group.setType(type);
378 }
379
380
385 public java.lang.String getTypeSettings() {
386 return _group.getTypeSettings();
387 }
388
389
394 public void setTypeSettings(java.lang.String typeSettings) {
395 _group.setTypeSettings(typeSettings);
396 }
397
398
403 public java.lang.String getFriendlyURL() {
404 return _group.getFriendlyURL();
405 }
406
407
412 public void setFriendlyURL(java.lang.String friendlyURL) {
413 _group.setFriendlyURL(friendlyURL);
414 }
415
416
421 public boolean getSite() {
422 return _group.getSite();
423 }
424
425
430 public boolean isSite() {
431 return _group.isSite();
432 }
433
434
439 public void setSite(boolean site) {
440 _group.setSite(site);
441 }
442
443
448 public boolean getActive() {
449 return _group.getActive();
450 }
451
452
457 public boolean isActive() {
458 return _group.isActive();
459 }
460
461
466 public void setActive(boolean active) {
467 _group.setActive(active);
468 }
469
470 public boolean isNew() {
471 return _group.isNew();
472 }
473
474 public void setNew(boolean n) {
475 _group.setNew(n);
476 }
477
478 public boolean isCachedModel() {
479 return _group.isCachedModel();
480 }
481
482 public void setCachedModel(boolean cachedModel) {
483 _group.setCachedModel(cachedModel);
484 }
485
486 public boolean isEscapedModel() {
487 return _group.isEscapedModel();
488 }
489
490 public java.io.Serializable getPrimaryKeyObj() {
491 return _group.getPrimaryKeyObj();
492 }
493
494 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
495 _group.setPrimaryKeyObj(primaryKeyObj);
496 }
497
498 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
499 return _group.getExpandoBridge();
500 }
501
502 public void setExpandoBridgeAttributes(
503 com.liferay.portal.service.ServiceContext serviceContext) {
504 _group.setExpandoBridgeAttributes(serviceContext);
505 }
506
507 @Override
508 public java.lang.Object clone() {
509 return new GroupWrapper((Group)_group.clone());
510 }
511
512 public int compareTo(com.liferay.portal.model.Group group) {
513 return _group.compareTo(group);
514 }
515
516 @Override
517 public int hashCode() {
518 return _group.hashCode();
519 }
520
521 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Group> toCacheModel() {
522 return _group.toCacheModel();
523 }
524
525 public com.liferay.portal.model.Group toEscapedModel() {
526 return new GroupWrapper(_group.toEscapedModel());
527 }
528
529 @Override
530 public java.lang.String toString() {
531 return _group.toString();
532 }
533
534 public java.lang.String toXmlString() {
535 return _group.toXmlString();
536 }
537
538 public void persist()
539 throws com.liferay.portal.kernel.exception.SystemException {
540 _group.persist();
541 }
542
543 public long getDefaultPrivatePlid() {
544 return _group.getDefaultPrivatePlid();
545 }
546
547 public long getDefaultPublicPlid() {
548 return _group.getDefaultPublicPlid();
549 }
550
551 public java.lang.String getDescriptiveName()
552 throws com.liferay.portal.kernel.exception.PortalException,
553 com.liferay.portal.kernel.exception.SystemException {
554 return _group.getDescriptiveName();
555 }
556
557 public java.lang.String getDescriptiveName(java.util.Locale locale)
558 throws com.liferay.portal.kernel.exception.PortalException,
559 com.liferay.portal.kernel.exception.SystemException {
560 return _group.getDescriptiveName(locale);
561 }
562
563 public com.liferay.portal.model.Group getLiveGroup() {
564 return _group.getLiveGroup();
565 }
566
567 public long getOrganizationId() {
568 return _group.getOrganizationId();
569 }
570
571 public com.liferay.portal.model.Group getParentGroup()
572 throws com.liferay.portal.kernel.exception.PortalException,
573 com.liferay.portal.kernel.exception.SystemException {
574 return _group.getParentGroup();
575 }
576
577 public java.lang.String getPathFriendlyURL(boolean privateLayout,
578 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
579 return _group.getPathFriendlyURL(privateLayout, themeDisplay);
580 }
581
582 public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
583 return _group.getPrivateLayoutSet();
584 }
585
586 public int getPrivateLayoutsPageCount() {
587 return _group.getPrivateLayoutsPageCount();
588 }
589
590 public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
591 return _group.getPublicLayoutSet();
592 }
593
594 public int getPublicLayoutsPageCount() {
595 return _group.getPublicLayoutsPageCount();
596 }
597
598 public com.liferay.portal.model.Group getStagingGroup() {
599 return _group.getStagingGroup();
600 }
601
602 public java.lang.String getTypeLabel() {
603 return _group.getTypeLabel();
604 }
605
606 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
607 return _group.getTypeSettingsProperties();
608 }
609
610 public java.lang.String getTypeSettingsProperty(java.lang.String key) {
611 return _group.getTypeSettingsProperty(key);
612 }
613
614 public boolean hasPrivateLayouts() {
615 return _group.hasPrivateLayouts();
616 }
617
618 public boolean hasPublicLayouts() {
619 return _group.hasPublicLayouts();
620 }
621
622 public boolean hasStagingGroup() {
623 return _group.hasStagingGroup();
624 }
625
626
629 public boolean isCommunity() {
630 return _group.isCommunity();
631 }
632
633 public boolean isCompany() {
634 return _group.isCompany();
635 }
636
637 public boolean isControlPanel() {
638 return _group.isControlPanel();
639 }
640
641 public boolean isGuest() {
642 return _group.isGuest();
643 }
644
645 public boolean isLayout() {
646 return _group.isLayout();
647 }
648
649 public boolean isLayoutPrototype() {
650 return _group.isLayoutPrototype();
651 }
652
653 public boolean isLayoutSetPrototype() {
654 return _group.isLayoutSetPrototype();
655 }
656
657 public boolean isOrganization() {
658 return _group.isOrganization();
659 }
660
661 public boolean isRegularSite() {
662 return _group.isRegularSite();
663 }
664
665 public boolean isStaged() {
666 return _group.isStaged();
667 }
668
669 public boolean isStagedPortlet(java.lang.String portletId) {
670 return _group.isStagedPortlet(portletId);
671 }
672
673 public boolean isStagedRemotely() {
674 return _group.isStagedRemotely();
675 }
676
677 public boolean isStagingGroup() {
678 return _group.isStagingGroup();
679 }
680
681 public boolean isUser() {
682 return _group.isUser();
683 }
684
685 public boolean isUserGroup() {
686 return _group.isUserGroup();
687 }
688
689 public boolean isUserPersonalSite() {
690 return _group.isUserPersonalSite();
691 }
692
693 public void setTypeSettingsProperties(
694 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
695 _group.setTypeSettingsProperties(typeSettingsProperties);
696 }
697
698
701 public Group getWrappedGroup() {
702 return _group;
703 }
704
705 public Group getWrappedModel() {
706 return _group;
707 }
708
709 public void resetOriginalValues() {
710 _group.resetOriginalValues();
711 }
712
713 private Group _group;
714 }