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("uuid", getUuid());
046 attributes.put("groupId", getGroupId());
047 attributes.put("companyId", getCompanyId());
048 attributes.put("creatorUserId", getCreatorUserId());
049 attributes.put("classNameId", getClassNameId());
050 attributes.put("classPK", getClassPK());
051 attributes.put("parentGroupId", getParentGroupId());
052 attributes.put("liveGroupId", getLiveGroupId());
053 attributes.put("treePath", getTreePath());
054 attributes.put("name", getName());
055 attributes.put("description", getDescription());
056 attributes.put("type", getType());
057 attributes.put("typeSettings", getTypeSettings());
058 attributes.put("friendlyURL", getFriendlyURL());
059 attributes.put("site", getSite());
060 attributes.put("active", getActive());
061
062 return attributes;
063 }
064
065 public void setModelAttributes(Map<String, Object> attributes) {
066 String uuid = (String)attributes.get("uuid");
067
068 if (uuid != null) {
069 setUuid(uuid);
070 }
071
072 Long groupId = (Long)attributes.get("groupId");
073
074 if (groupId != null) {
075 setGroupId(groupId);
076 }
077
078 Long companyId = (Long)attributes.get("companyId");
079
080 if (companyId != null) {
081 setCompanyId(companyId);
082 }
083
084 Long creatorUserId = (Long)attributes.get("creatorUserId");
085
086 if (creatorUserId != null) {
087 setCreatorUserId(creatorUserId);
088 }
089
090 Long classNameId = (Long)attributes.get("classNameId");
091
092 if (classNameId != null) {
093 setClassNameId(classNameId);
094 }
095
096 Long classPK = (Long)attributes.get("classPK");
097
098 if (classPK != null) {
099 setClassPK(classPK);
100 }
101
102 Long parentGroupId = (Long)attributes.get("parentGroupId");
103
104 if (parentGroupId != null) {
105 setParentGroupId(parentGroupId);
106 }
107
108 Long liveGroupId = (Long)attributes.get("liveGroupId");
109
110 if (liveGroupId != null) {
111 setLiveGroupId(liveGroupId);
112 }
113
114 String treePath = (String)attributes.get("treePath");
115
116 if (treePath != null) {
117 setTreePath(treePath);
118 }
119
120 String name = (String)attributes.get("name");
121
122 if (name != null) {
123 setName(name);
124 }
125
126 String description = (String)attributes.get("description");
127
128 if (description != null) {
129 setDescription(description);
130 }
131
132 Integer type = (Integer)attributes.get("type");
133
134 if (type != null) {
135 setType(type);
136 }
137
138 String typeSettings = (String)attributes.get("typeSettings");
139
140 if (typeSettings != null) {
141 setTypeSettings(typeSettings);
142 }
143
144 String friendlyURL = (String)attributes.get("friendlyURL");
145
146 if (friendlyURL != null) {
147 setFriendlyURL(friendlyURL);
148 }
149
150 Boolean site = (Boolean)attributes.get("site");
151
152 if (site != null) {
153 setSite(site);
154 }
155
156 Boolean active = (Boolean)attributes.get("active");
157
158 if (active != null) {
159 setActive(active);
160 }
161 }
162
163
168 public long getPrimaryKey() {
169 return _group.getPrimaryKey();
170 }
171
172
177 public void setPrimaryKey(long primaryKey) {
178 _group.setPrimaryKey(primaryKey);
179 }
180
181
186 public java.lang.String getUuid() {
187 return _group.getUuid();
188 }
189
190
195 public void setUuid(java.lang.String uuid) {
196 _group.setUuid(uuid);
197 }
198
199
204 public long getGroupId() {
205 return _group.getGroupId();
206 }
207
208
213 public void setGroupId(long groupId) {
214 _group.setGroupId(groupId);
215 }
216
217
222 public long getCompanyId() {
223 return _group.getCompanyId();
224 }
225
226
231 public void setCompanyId(long companyId) {
232 _group.setCompanyId(companyId);
233 }
234
235
240 public long getCreatorUserId() {
241 return _group.getCreatorUserId();
242 }
243
244
249 public void setCreatorUserId(long creatorUserId) {
250 _group.setCreatorUserId(creatorUserId);
251 }
252
253
259 public java.lang.String getCreatorUserUuid()
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return _group.getCreatorUserUuid();
262 }
263
264
269 public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
270 _group.setCreatorUserUuid(creatorUserUuid);
271 }
272
273
278 public java.lang.String getClassName() {
279 return _group.getClassName();
280 }
281
282 public void setClassName(java.lang.String className) {
283 _group.setClassName(className);
284 }
285
286
291 public long getClassNameId() {
292 return _group.getClassNameId();
293 }
294
295
300 public void setClassNameId(long classNameId) {
301 _group.setClassNameId(classNameId);
302 }
303
304
309 public long getClassPK() {
310 return _group.getClassPK();
311 }
312
313
318 public void setClassPK(long classPK) {
319 _group.setClassPK(classPK);
320 }
321
322
327 public long getParentGroupId() {
328 return _group.getParentGroupId();
329 }
330
331
336 public void setParentGroupId(long parentGroupId) {
337 _group.setParentGroupId(parentGroupId);
338 }
339
340
345 public long getLiveGroupId() {
346 return _group.getLiveGroupId();
347 }
348
349
354 public void setLiveGroupId(long liveGroupId) {
355 _group.setLiveGroupId(liveGroupId);
356 }
357
358
363 public java.lang.String getTreePath() {
364 return _group.getTreePath();
365 }
366
367
372 public void setTreePath(java.lang.String treePath) {
373 _group.setTreePath(treePath);
374 }
375
376
381 public java.lang.String getName() {
382 return _group.getName();
383 }
384
385
390 public void setName(java.lang.String name) {
391 _group.setName(name);
392 }
393
394
399 public java.lang.String getDescription() {
400 return _group.getDescription();
401 }
402
403
408 public void setDescription(java.lang.String description) {
409 _group.setDescription(description);
410 }
411
412
417 public int getType() {
418 return _group.getType();
419 }
420
421
426 public void setType(int type) {
427 _group.setType(type);
428 }
429
430
435 public java.lang.String getTypeSettings() {
436 return _group.getTypeSettings();
437 }
438
439
444 public void setTypeSettings(java.lang.String typeSettings) {
445 _group.setTypeSettings(typeSettings);
446 }
447
448
453 public java.lang.String getFriendlyURL() {
454 return _group.getFriendlyURL();
455 }
456
457
462 public void setFriendlyURL(java.lang.String friendlyURL) {
463 _group.setFriendlyURL(friendlyURL);
464 }
465
466
471 public boolean getSite() {
472 return _group.getSite();
473 }
474
475
480 public boolean isSite() {
481 return _group.isSite();
482 }
483
484
489 public void setSite(boolean site) {
490 _group.setSite(site);
491 }
492
493
498 public boolean getActive() {
499 return _group.getActive();
500 }
501
502
507 public boolean isActive() {
508 return _group.isActive();
509 }
510
511
516 public void setActive(boolean active) {
517 _group.setActive(active);
518 }
519
520 public boolean isNew() {
521 return _group.isNew();
522 }
523
524 public void setNew(boolean n) {
525 _group.setNew(n);
526 }
527
528 public boolean isCachedModel() {
529 return _group.isCachedModel();
530 }
531
532 public void setCachedModel(boolean cachedModel) {
533 _group.setCachedModel(cachedModel);
534 }
535
536 public boolean isEscapedModel() {
537 return _group.isEscapedModel();
538 }
539
540 public java.io.Serializable getPrimaryKeyObj() {
541 return _group.getPrimaryKeyObj();
542 }
543
544 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
545 _group.setPrimaryKeyObj(primaryKeyObj);
546 }
547
548 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
549 return _group.getExpandoBridge();
550 }
551
552 public void setExpandoBridgeAttributes(
553 com.liferay.portal.model.BaseModel<?> baseModel) {
554 _group.setExpandoBridgeAttributes(baseModel);
555 }
556
557 public void setExpandoBridgeAttributes(
558 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
559 _group.setExpandoBridgeAttributes(expandoBridge);
560 }
561
562 public void setExpandoBridgeAttributes(
563 com.liferay.portal.service.ServiceContext serviceContext) {
564 _group.setExpandoBridgeAttributes(serviceContext);
565 }
566
567 @Override
568 public java.lang.Object clone() {
569 return new GroupWrapper((Group)_group.clone());
570 }
571
572 public int compareTo(com.liferay.portal.model.Group group) {
573 return _group.compareTo(group);
574 }
575
576 @Override
577 public int hashCode() {
578 return _group.hashCode();
579 }
580
581 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Group> toCacheModel() {
582 return _group.toCacheModel();
583 }
584
585 public com.liferay.portal.model.Group toEscapedModel() {
586 return new GroupWrapper(_group.toEscapedModel());
587 }
588
589 public com.liferay.portal.model.Group toUnescapedModel() {
590 return new GroupWrapper(_group.toUnescapedModel());
591 }
592
593 @Override
594 public java.lang.String toString() {
595 return _group.toString();
596 }
597
598 public java.lang.String toXmlString() {
599 return _group.toXmlString();
600 }
601
602 public void persist()
603 throws com.liferay.portal.kernel.exception.SystemException {
604 _group.persist();
605 }
606
607 public java.lang.String buildTreePath()
608 throws com.liferay.portal.kernel.exception.PortalException,
609 com.liferay.portal.kernel.exception.SystemException {
610 return _group.buildTreePath();
611 }
612
613 public java.util.List<com.liferay.portal.model.Group> getAncestors()
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException {
616 return _group.getAncestors();
617 }
618
619 public java.util.List<com.liferay.portal.model.Group> getChildren(
620 boolean site)
621 throws com.liferay.portal.kernel.exception.SystemException {
622 return _group.getChildren(site);
623 }
624
625 public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
626 boolean site, int start, int end)
627 throws com.liferay.portal.kernel.exception.SystemException {
628 return _group.getChildrenWithLayouts(site, start, end);
629 }
630
631 public int getChildrenWithLayoutsCount(boolean site)
632 throws com.liferay.portal.kernel.exception.SystemException {
633 return _group.getChildrenWithLayoutsCount(site);
634 }
635
636 public long getDefaultPrivatePlid() {
637 return _group.getDefaultPrivatePlid();
638 }
639
640 public long getDefaultPublicPlid() {
641 return _group.getDefaultPublicPlid();
642 }
643
644 public java.lang.String getDescriptiveName()
645 throws com.liferay.portal.kernel.exception.PortalException,
646 com.liferay.portal.kernel.exception.SystemException {
647 return _group.getDescriptiveName();
648 }
649
650 public java.lang.String getDescriptiveName(java.util.Locale locale)
651 throws com.liferay.portal.kernel.exception.PortalException,
652 com.liferay.portal.kernel.exception.SystemException {
653 return _group.getDescriptiveName(locale);
654 }
655
656 public java.lang.String getIconURL(
657 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
658 return _group.getIconURL(themeDisplay);
659 }
660
661 public com.liferay.portal.model.Group getLiveGroup() {
662 return _group.getLiveGroup();
663 }
664
665 public java.lang.String getLiveParentTypeSettingsProperty(
666 java.lang.String key) {
667 return _group.getLiveParentTypeSettingsProperty(key);
668 }
669
670 public long getOrganizationId() {
671 return _group.getOrganizationId();
672 }
673
674 public com.liferay.portal.model.Group getParentGroup()
675 throws com.liferay.portal.kernel.exception.PortalException,
676 com.liferay.portal.kernel.exception.SystemException {
677 return _group.getParentGroup();
678 }
679
680 public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties() {
681 return _group.getParentLiveGroupTypeSettingsProperties();
682 }
683
684 public java.lang.String getPathFriendlyURL(boolean privateLayout,
685 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
686 return _group.getPathFriendlyURL(privateLayout, themeDisplay);
687 }
688
689 public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
690 return _group.getPrivateLayoutSet();
691 }
692
693 public int getPrivateLayoutsPageCount() {
694 return _group.getPrivateLayoutsPageCount();
695 }
696
697 public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
698 return _group.getPublicLayoutSet();
699 }
700
701 public int getPublicLayoutsPageCount() {
702 return _group.getPublicLayoutsPageCount();
703 }
704
705 public com.liferay.portal.model.Group getStagingGroup() {
706 return _group.getStagingGroup();
707 }
708
709 public java.lang.String getTypeLabel() {
710 return _group.getTypeLabel();
711 }
712
713 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
714 return _group.getTypeSettingsProperties();
715 }
716
717 public java.lang.String getTypeSettingsProperty(java.lang.String key) {
718 return _group.getTypeSettingsProperty(key);
719 }
720
721 public boolean hasAncestor(long groupId) {
722 return _group.hasAncestor(groupId);
723 }
724
725 public boolean hasPrivateLayouts() {
726 return _group.hasPrivateLayouts();
727 }
728
729 public boolean hasPublicLayouts() {
730 return _group.hasPublicLayouts();
731 }
732
733 public boolean hasStagingGroup() {
734 return _group.hasStagingGroup();
735 }
736
737
740 public boolean isCommunity() {
741 return _group.isCommunity();
742 }
743
744 public boolean isCompany() {
745 return _group.isCompany();
746 }
747
748 public boolean isControlPanel() {
749 return _group.isControlPanel();
750 }
751
752 public boolean isGuest() {
753 return _group.isGuest();
754 }
755
756 public boolean isInStagingPortlet(java.lang.String portletId) {
757 return _group.isInStagingPortlet(portletId);
758 }
759
760 public boolean isLayout() {
761 return _group.isLayout();
762 }
763
764 public boolean isLayoutPrototype() {
765 return _group.isLayoutPrototype();
766 }
767
768 public boolean isLayoutSetPrototype() {
769 return _group.isLayoutSetPrototype();
770 }
771
772 public boolean isLimitedToParentSiteMembers() {
773 return _group.isLimitedToParentSiteMembers();
774 }
775
776 public boolean isOrganization() {
777 return _group.isOrganization();
778 }
779
780 public boolean isRegularSite() {
781 return _group.isRegularSite();
782 }
783
784 public boolean isRoot() {
785 return _group.isRoot();
786 }
787
788 public boolean isShowSite(
789 com.liferay.portal.security.permission.PermissionChecker permissionChecker,
790 boolean privateSite)
791 throws com.liferay.portal.kernel.exception.PortalException,
792 com.liferay.portal.kernel.exception.SystemException {
793 return _group.isShowSite(permissionChecker, privateSite);
794 }
795
796 public boolean isStaged() {
797 return _group.isStaged();
798 }
799
800 public boolean isStagedPortlet(java.lang.String portletId) {
801 return _group.isStagedPortlet(portletId);
802 }
803
804 public boolean isStagedRemotely() {
805 return _group.isStagedRemotely();
806 }
807
808 public boolean isStagingGroup() {
809 return _group.isStagingGroup();
810 }
811
812 public boolean isUser() {
813 return _group.isUser();
814 }
815
816 public boolean isUserGroup() {
817 return _group.isUserGroup();
818 }
819
820 public boolean isUserPersonalSite() {
821 return _group.isUserPersonalSite();
822 }
823
824 public void setTypeSettingsProperties(
825 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
826 _group.setTypeSettingsProperties(typeSettingsProperties);
827 }
828
829
832 public Group getWrappedGroup() {
833 return _group;
834 }
835
836 public Group getWrappedModel() {
837 return _group;
838 }
839
840 public void resetOriginalValues() {
841 _group.resetOriginalValues();
842 }
843
844 private Group _group;
845 }