001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    import com.liferay.portal.model.ModelWrapper;
021    
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link Group}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see Group
032     * @generated
033     */
034    @ProviderType
035    public class GroupWrapper implements Group, ModelWrapper<Group> {
036            public GroupWrapper(Group group) {
037                    _group = group;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return Group.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return Group.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("uuid", getUuid());
055                    attributes.put("groupId", getGroupId());
056                    attributes.put("companyId", getCompanyId());
057                    attributes.put("creatorUserId", getCreatorUserId());
058                    attributes.put("classNameId", getClassNameId());
059                    attributes.put("classPK", getClassPK());
060                    attributes.put("parentGroupId", getParentGroupId());
061                    attributes.put("liveGroupId", getLiveGroupId());
062                    attributes.put("treePath", getTreePath());
063                    attributes.put("name", getName());
064                    attributes.put("description", getDescription());
065                    attributes.put("type", getType());
066                    attributes.put("typeSettings", getTypeSettings());
067                    attributes.put("manualMembership", getManualMembership());
068                    attributes.put("membershipRestriction", getMembershipRestriction());
069                    attributes.put("friendlyURL", getFriendlyURL());
070                    attributes.put("site", getSite());
071                    attributes.put("remoteStagingGroupCount", getRemoteStagingGroupCount());
072                    attributes.put("active", getActive());
073    
074                    return attributes;
075            }
076    
077            @Override
078            public void setModelAttributes(Map<String, Object> attributes) {
079                    String uuid = (String)attributes.get("uuid");
080    
081                    if (uuid != null) {
082                            setUuid(uuid);
083                    }
084    
085                    Long groupId = (Long)attributes.get("groupId");
086    
087                    if (groupId != null) {
088                            setGroupId(groupId);
089                    }
090    
091                    Long companyId = (Long)attributes.get("companyId");
092    
093                    if (companyId != null) {
094                            setCompanyId(companyId);
095                    }
096    
097                    Long creatorUserId = (Long)attributes.get("creatorUserId");
098    
099                    if (creatorUserId != null) {
100                            setCreatorUserId(creatorUserId);
101                    }
102    
103                    Long classNameId = (Long)attributes.get("classNameId");
104    
105                    if (classNameId != null) {
106                            setClassNameId(classNameId);
107                    }
108    
109                    Long classPK = (Long)attributes.get("classPK");
110    
111                    if (classPK != null) {
112                            setClassPK(classPK);
113                    }
114    
115                    Long parentGroupId = (Long)attributes.get("parentGroupId");
116    
117                    if (parentGroupId != null) {
118                            setParentGroupId(parentGroupId);
119                    }
120    
121                    Long liveGroupId = (Long)attributes.get("liveGroupId");
122    
123                    if (liveGroupId != null) {
124                            setLiveGroupId(liveGroupId);
125                    }
126    
127                    String treePath = (String)attributes.get("treePath");
128    
129                    if (treePath != null) {
130                            setTreePath(treePath);
131                    }
132    
133                    String name = (String)attributes.get("name");
134    
135                    if (name != null) {
136                            setName(name);
137                    }
138    
139                    String description = (String)attributes.get("description");
140    
141                    if (description != null) {
142                            setDescription(description);
143                    }
144    
145                    Integer type = (Integer)attributes.get("type");
146    
147                    if (type != null) {
148                            setType(type);
149                    }
150    
151                    String typeSettings = (String)attributes.get("typeSettings");
152    
153                    if (typeSettings != null) {
154                            setTypeSettings(typeSettings);
155                    }
156    
157                    Boolean manualMembership = (Boolean)attributes.get("manualMembership");
158    
159                    if (manualMembership != null) {
160                            setManualMembership(manualMembership);
161                    }
162    
163                    Integer membershipRestriction = (Integer)attributes.get(
164                                    "membershipRestriction");
165    
166                    if (membershipRestriction != null) {
167                            setMembershipRestriction(membershipRestriction);
168                    }
169    
170                    String friendlyURL = (String)attributes.get("friendlyURL");
171    
172                    if (friendlyURL != null) {
173                            setFriendlyURL(friendlyURL);
174                    }
175    
176                    Boolean site = (Boolean)attributes.get("site");
177    
178                    if (site != null) {
179                            setSite(site);
180                    }
181    
182                    Integer remoteStagingGroupCount = (Integer)attributes.get(
183                                    "remoteStagingGroupCount");
184    
185                    if (remoteStagingGroupCount != null) {
186                            setRemoteStagingGroupCount(remoteStagingGroupCount);
187                    }
188    
189                    Boolean active = (Boolean)attributes.get("active");
190    
191                    if (active != null) {
192                            setActive(active);
193                    }
194            }
195    
196            /**
197            * Returns the primary key of this group.
198            *
199            * @return the primary key of this group
200            */
201            @Override
202            public long getPrimaryKey() {
203                    return _group.getPrimaryKey();
204            }
205    
206            /**
207            * Sets the primary key of this group.
208            *
209            * @param primaryKey the primary key of this group
210            */
211            @Override
212            public void setPrimaryKey(long primaryKey) {
213                    _group.setPrimaryKey(primaryKey);
214            }
215    
216            /**
217            * Returns the uuid of this group.
218            *
219            * @return the uuid of this group
220            */
221            @Override
222            public java.lang.String getUuid() {
223                    return _group.getUuid();
224            }
225    
226            /**
227            * Sets the uuid of this group.
228            *
229            * @param uuid the uuid of this group
230            */
231            @Override
232            public void setUuid(java.lang.String uuid) {
233                    _group.setUuid(uuid);
234            }
235    
236            /**
237            * Returns the group ID of this group.
238            *
239            * @return the group ID of this group
240            */
241            @Override
242            public long getGroupId() {
243                    return _group.getGroupId();
244            }
245    
246            /**
247            * Sets the group ID of this group.
248            *
249            * @param groupId the group ID of this group
250            */
251            @Override
252            public void setGroupId(long groupId) {
253                    _group.setGroupId(groupId);
254            }
255    
256            /**
257            * Returns the company ID of this group.
258            *
259            * @return the company ID of this group
260            */
261            @Override
262            public long getCompanyId() {
263                    return _group.getCompanyId();
264            }
265    
266            /**
267            * Sets the company ID of this group.
268            *
269            * @param companyId the company ID of this group
270            */
271            @Override
272            public void setCompanyId(long companyId) {
273                    _group.setCompanyId(companyId);
274            }
275    
276            /**
277            * Returns the creator user ID of this group.
278            *
279            * @return the creator user ID of this group
280            */
281            @Override
282            public long getCreatorUserId() {
283                    return _group.getCreatorUserId();
284            }
285    
286            /**
287            * Sets the creator user ID of this group.
288            *
289            * @param creatorUserId the creator user ID of this group
290            */
291            @Override
292            public void setCreatorUserId(long creatorUserId) {
293                    _group.setCreatorUserId(creatorUserId);
294            }
295    
296            /**
297            * Returns the creator user uuid of this group.
298            *
299            * @return the creator user uuid of this group
300            * @throws SystemException if a system exception occurred
301            */
302            @Override
303            public java.lang.String getCreatorUserUuid()
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _group.getCreatorUserUuid();
306            }
307    
308            /**
309            * Sets the creator user uuid of this group.
310            *
311            * @param creatorUserUuid the creator user uuid of this group
312            */
313            @Override
314            public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
315                    _group.setCreatorUserUuid(creatorUserUuid);
316            }
317    
318            /**
319            * Returns the fully qualified class name of this group.
320            *
321            * @return the fully qualified class name of this group
322            */
323            @Override
324            public java.lang.String getClassName() {
325                    return _group.getClassName();
326            }
327    
328            @Override
329            public void setClassName(java.lang.String className) {
330                    _group.setClassName(className);
331            }
332    
333            /**
334            * Returns the class name ID of this group.
335            *
336            * @return the class name ID of this group
337            */
338            @Override
339            public long getClassNameId() {
340                    return _group.getClassNameId();
341            }
342    
343            /**
344            * Sets the class name ID of this group.
345            *
346            * @param classNameId the class name ID of this group
347            */
348            @Override
349            public void setClassNameId(long classNameId) {
350                    _group.setClassNameId(classNameId);
351            }
352    
353            /**
354            * Returns the class p k of this group.
355            *
356            * @return the class p k of this group
357            */
358            @Override
359            public long getClassPK() {
360                    return _group.getClassPK();
361            }
362    
363            /**
364            * Sets the class p k of this group.
365            *
366            * @param classPK the class p k of this group
367            */
368            @Override
369            public void setClassPK(long classPK) {
370                    _group.setClassPK(classPK);
371            }
372    
373            /**
374            * Returns the parent group ID of this group.
375            *
376            * @return the parent group ID of this group
377            */
378            @Override
379            public long getParentGroupId() {
380                    return _group.getParentGroupId();
381            }
382    
383            /**
384            * Sets the parent group ID of this group.
385            *
386            * @param parentGroupId the parent group ID of this group
387            */
388            @Override
389            public void setParentGroupId(long parentGroupId) {
390                    _group.setParentGroupId(parentGroupId);
391            }
392    
393            /**
394            * Returns the live group ID of this group.
395            *
396            * @return the live group ID of this group
397            */
398            @Override
399            public long getLiveGroupId() {
400                    return _group.getLiveGroupId();
401            }
402    
403            /**
404            * Sets the live group ID of this group.
405            *
406            * @param liveGroupId the live group ID of this group
407            */
408            @Override
409            public void setLiveGroupId(long liveGroupId) {
410                    _group.setLiveGroupId(liveGroupId);
411            }
412    
413            /**
414            * Returns the tree path of this group.
415            *
416            * @return the tree path of this group
417            */
418            @Override
419            public java.lang.String getTreePath() {
420                    return _group.getTreePath();
421            }
422    
423            /**
424            * Sets the tree path of this group.
425            *
426            * @param treePath the tree path of this group
427            */
428            @Override
429            public void setTreePath(java.lang.String treePath) {
430                    _group.setTreePath(treePath);
431            }
432    
433            /**
434            * Returns the name of this group.
435            *
436            * @return the name of this group
437            */
438            @Override
439            public java.lang.String getName() {
440                    return _group.getName();
441            }
442    
443            /**
444            * Sets the name of this group.
445            *
446            * @param name the name of this group
447            */
448            @Override
449            public void setName(java.lang.String name) {
450                    _group.setName(name);
451            }
452    
453            /**
454            * Returns the description of this group.
455            *
456            * @return the description of this group
457            */
458            @Override
459            public java.lang.String getDescription() {
460                    return _group.getDescription();
461            }
462    
463            /**
464            * Sets the description of this group.
465            *
466            * @param description the description of this group
467            */
468            @Override
469            public void setDescription(java.lang.String description) {
470                    _group.setDescription(description);
471            }
472    
473            /**
474            * Returns the type of this group.
475            *
476            * @return the type of this group
477            */
478            @Override
479            public int getType() {
480                    return _group.getType();
481            }
482    
483            /**
484            * Sets the type of this group.
485            *
486            * @param type the type of this group
487            */
488            @Override
489            public void setType(int type) {
490                    _group.setType(type);
491            }
492    
493            /**
494            * Returns the type settings of this group.
495            *
496            * @return the type settings of this group
497            */
498            @Override
499            public java.lang.String getTypeSettings() {
500                    return _group.getTypeSettings();
501            }
502    
503            /**
504            * Sets the type settings of this group.
505            *
506            * @param typeSettings the type settings of this group
507            */
508            @Override
509            public void setTypeSettings(java.lang.String typeSettings) {
510                    _group.setTypeSettings(typeSettings);
511            }
512    
513            /**
514            * Returns the manual membership of this group.
515            *
516            * @return the manual membership of this group
517            */
518            @Override
519            public boolean getManualMembership() {
520                    return _group.getManualMembership();
521            }
522    
523            /**
524            * Returns <code>true</code> if this group is manual membership.
525            *
526            * @return <code>true</code> if this group is manual membership; <code>false</code> otherwise
527            */
528            @Override
529            public boolean isManualMembership() {
530                    return _group.isManualMembership();
531            }
532    
533            /**
534            * Sets whether this group is manual membership.
535            *
536            * @param manualMembership the manual membership of this group
537            */
538            @Override
539            public void setManualMembership(boolean manualMembership) {
540                    _group.setManualMembership(manualMembership);
541            }
542    
543            /**
544            * Returns the membership restriction of this group.
545            *
546            * @return the membership restriction of this group
547            */
548            @Override
549            public int getMembershipRestriction() {
550                    return _group.getMembershipRestriction();
551            }
552    
553            /**
554            * Sets the membership restriction of this group.
555            *
556            * @param membershipRestriction the membership restriction of this group
557            */
558            @Override
559            public void setMembershipRestriction(int membershipRestriction) {
560                    _group.setMembershipRestriction(membershipRestriction);
561            }
562    
563            /**
564            * Returns the friendly u r l of this group.
565            *
566            * @return the friendly u r l of this group
567            */
568            @Override
569            public java.lang.String getFriendlyURL() {
570                    return _group.getFriendlyURL();
571            }
572    
573            /**
574            * Sets the friendly u r l of this group.
575            *
576            * @param friendlyURL the friendly u r l of this group
577            */
578            @Override
579            public void setFriendlyURL(java.lang.String friendlyURL) {
580                    _group.setFriendlyURL(friendlyURL);
581            }
582    
583            /**
584            * Returns the site of this group.
585            *
586            * @return the site of this group
587            */
588            @Override
589            public boolean getSite() {
590                    return _group.getSite();
591            }
592    
593            /**
594            * Returns <code>true</code> if this group is site.
595            *
596            * @return <code>true</code> if this group is site; <code>false</code> otherwise
597            */
598            @Override
599            public boolean isSite() {
600                    return _group.isSite();
601            }
602    
603            /**
604            * Sets whether this group is site.
605            *
606            * @param site the site of this group
607            */
608            @Override
609            public void setSite(boolean site) {
610                    _group.setSite(site);
611            }
612    
613            /**
614            * Returns the remote staging group count of this group.
615            *
616            * @return the remote staging group count of this group
617            */
618            @Override
619            public int getRemoteStagingGroupCount() {
620                    return _group.getRemoteStagingGroupCount();
621            }
622    
623            /**
624            * Sets the remote staging group count of this group.
625            *
626            * @param remoteStagingGroupCount the remote staging group count of this group
627            */
628            @Override
629            public void setRemoteStagingGroupCount(int remoteStagingGroupCount) {
630                    _group.setRemoteStagingGroupCount(remoteStagingGroupCount);
631            }
632    
633            /**
634            * Returns the active of this group.
635            *
636            * @return the active of this group
637            */
638            @Override
639            public boolean getActive() {
640                    return _group.getActive();
641            }
642    
643            /**
644            * Returns <code>true</code> if this group is active.
645            *
646            * @return <code>true</code> if this group is active; <code>false</code> otherwise
647            */
648            @Override
649            public boolean isActive() {
650                    return _group.isActive();
651            }
652    
653            /**
654            * Sets whether this group is active.
655            *
656            * @param active the active of this group
657            */
658            @Override
659            public void setActive(boolean active) {
660                    _group.setActive(active);
661            }
662    
663            @Override
664            public boolean isNew() {
665                    return _group.isNew();
666            }
667    
668            @Override
669            public void setNew(boolean n) {
670                    _group.setNew(n);
671            }
672    
673            @Override
674            public boolean isCachedModel() {
675                    return _group.isCachedModel();
676            }
677    
678            @Override
679            public void setCachedModel(boolean cachedModel) {
680                    _group.setCachedModel(cachedModel);
681            }
682    
683            @Override
684            public boolean isEscapedModel() {
685                    return _group.isEscapedModel();
686            }
687    
688            @Override
689            public java.io.Serializable getPrimaryKeyObj() {
690                    return _group.getPrimaryKeyObj();
691            }
692    
693            @Override
694            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
695                    _group.setPrimaryKeyObj(primaryKeyObj);
696            }
697    
698            @Override
699            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
700                    return _group.getExpandoBridge();
701            }
702    
703            @Override
704            public void setExpandoBridgeAttributes(
705                    com.liferay.portal.model.BaseModel<?> baseModel) {
706                    _group.setExpandoBridgeAttributes(baseModel);
707            }
708    
709            @Override
710            public void setExpandoBridgeAttributes(
711                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
712                    _group.setExpandoBridgeAttributes(expandoBridge);
713            }
714    
715            @Override
716            public void setExpandoBridgeAttributes(
717                    com.liferay.portal.service.ServiceContext serviceContext) {
718                    _group.setExpandoBridgeAttributes(serviceContext);
719            }
720    
721            @Override
722            public java.lang.Object clone() {
723                    return new GroupWrapper((Group)_group.clone());
724            }
725    
726            @Override
727            public int compareTo(com.liferay.portal.model.Group group) {
728                    return _group.compareTo(group);
729            }
730    
731            @Override
732            public int hashCode() {
733                    return _group.hashCode();
734            }
735    
736            @Override
737            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Group> toCacheModel() {
738                    return _group.toCacheModel();
739            }
740    
741            @Override
742            public com.liferay.portal.model.Group toEscapedModel() {
743                    return new GroupWrapper(_group.toEscapedModel());
744            }
745    
746            @Override
747            public com.liferay.portal.model.Group toUnescapedModel() {
748                    return new GroupWrapper(_group.toUnescapedModel());
749            }
750    
751            @Override
752            public java.lang.String toString() {
753                    return _group.toString();
754            }
755    
756            @Override
757            public java.lang.String toXmlString() {
758                    return _group.toXmlString();
759            }
760    
761            @Override
762            public void persist()
763                    throws com.liferay.portal.kernel.exception.SystemException {
764                    _group.persist();
765            }
766    
767            @Override
768            public java.lang.String buildTreePath()
769                    throws com.liferay.portal.kernel.exception.PortalException,
770                            com.liferay.portal.kernel.exception.SystemException {
771                    return _group.buildTreePath();
772            }
773    
774            @Override
775            public void updateTreePath(java.lang.String treePath)
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    _group.updateTreePath(treePath);
778            }
779    
780            @Override
781            public void clearStagingGroup() {
782                    _group.clearStagingGroup();
783            }
784    
785            @Override
786            public java.util.List<com.liferay.portal.model.Group> getAncestors()
787                    throws com.liferay.portal.kernel.exception.PortalException,
788                            com.liferay.portal.kernel.exception.SystemException {
789                    return _group.getAncestors();
790            }
791    
792            @Override
793            public java.util.List<com.liferay.portal.model.Group> getChildren(
794                    boolean site)
795                    throws com.liferay.portal.kernel.exception.SystemException {
796                    return _group.getChildren(site);
797            }
798    
799            /**
800            * @deprecated As of 7.0.0, replaced by {@link
801            #getChildrenWithLayouts(boolean, int, int, OrderByComparator}
802            */
803            @Override
804            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
805                    boolean site, int start, int end)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    return _group.getChildrenWithLayouts(site, start, end);
808            }
809    
810            @Override
811            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
812                    boolean site, int start, int end,
813                    com.liferay.portal.kernel.util.OrderByComparator obc)
814                    throws com.liferay.portal.kernel.exception.SystemException {
815                    return _group.getChildrenWithLayouts(site, start, end, obc);
816            }
817    
818            @Override
819            public int getChildrenWithLayoutsCount(boolean site)
820                    throws com.liferay.portal.kernel.exception.SystemException {
821                    return _group.getChildrenWithLayoutsCount(site);
822            }
823    
824            @Override
825            public long getDefaultPrivatePlid() {
826                    return _group.getDefaultPrivatePlid();
827            }
828    
829            @Override
830            public long getDefaultPublicPlid() {
831                    return _group.getDefaultPublicPlid();
832            }
833    
834            @Override
835            public java.lang.String getDescriptiveName()
836                    throws com.liferay.portal.kernel.exception.PortalException,
837                            com.liferay.portal.kernel.exception.SystemException {
838                    return _group.getDescriptiveName();
839            }
840    
841            @Override
842            public java.lang.String getDescriptiveName(java.util.Locale locale)
843                    throws com.liferay.portal.kernel.exception.PortalException,
844                            com.liferay.portal.kernel.exception.SystemException {
845                    return _group.getDescriptiveName(locale);
846            }
847    
848            @Override
849            public java.lang.String getDisplayURL(
850                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
851                    throws com.liferay.portal.kernel.exception.PortalException {
852                    return _group.getDisplayURL(themeDisplay);
853            }
854    
855            @Override
856            public java.lang.String getDisplayURL(
857                    com.liferay.portal.theme.ThemeDisplay themeDisplay,
858                    boolean privateLayout)
859                    throws com.liferay.portal.kernel.exception.PortalException {
860                    return _group.getDisplayURL(themeDisplay, privateLayout);
861            }
862    
863            @Override
864            public java.lang.String getIconURL(
865                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
866                    return _group.getIconURL(themeDisplay);
867            }
868    
869            @Override
870            public java.lang.String getLayoutRootNodeName(boolean privateLayout,
871                    java.util.Locale locale) {
872                    return _group.getLayoutRootNodeName(privateLayout, locale);
873            }
874    
875            @Override
876            public com.liferay.portal.model.Group getLiveGroup() {
877                    return _group.getLiveGroup();
878            }
879    
880            @Override
881            public java.lang.String getLiveParentTypeSettingsProperty(
882                    java.lang.String key) {
883                    return _group.getLiveParentTypeSettingsProperty(key);
884            }
885    
886            @Override
887            public long getOrganizationId() {
888                    return _group.getOrganizationId();
889            }
890    
891            @Override
892            public com.liferay.portal.model.Group getParentGroup()
893                    throws com.liferay.portal.kernel.exception.PortalException,
894                            com.liferay.portal.kernel.exception.SystemException {
895                    return _group.getParentGroup();
896            }
897    
898            @Override
899            public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties() {
900                    return _group.getParentLiveGroupTypeSettingsProperties();
901            }
902    
903            @Override
904            public java.lang.String getPathFriendlyURL(boolean privateLayout,
905                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
906                    return _group.getPathFriendlyURL(privateLayout, themeDisplay);
907            }
908    
909            @Override
910            public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
911                    return _group.getPrivateLayoutSet();
912            }
913    
914            @Override
915            public int getPrivateLayoutsPageCount() {
916                    return _group.getPrivateLayoutsPageCount();
917            }
918    
919            @Override
920            public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
921                    return _group.getPublicLayoutSet();
922            }
923    
924            @Override
925            public int getPublicLayoutsPageCount() {
926                    return _group.getPublicLayoutsPageCount();
927            }
928    
929            @Override
930            public java.lang.String getScopeDescriptiveName(
931                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
932                    throws com.liferay.portal.kernel.exception.PortalException,
933                            com.liferay.portal.kernel.exception.SystemException {
934                    return _group.getScopeDescriptiveName(themeDisplay);
935            }
936    
937            @Override
938            public java.lang.String getScopeLabel(
939                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
940                    return _group.getScopeLabel(themeDisplay);
941            }
942    
943            @Override
944            public com.liferay.portal.model.Group getStagingGroup() {
945                    return _group.getStagingGroup();
946            }
947    
948            @Override
949            public java.lang.String getTypeLabel() {
950                    return _group.getTypeLabel();
951            }
952    
953            @Override
954            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
955                    return _group.getTypeSettingsProperties();
956            }
957    
958            @Override
959            public java.lang.String getTypeSettingsProperty(java.lang.String key) {
960                    return _group.getTypeSettingsProperty(key);
961            }
962    
963            @Override
964            public java.lang.String getUnambiguousName(java.lang.String name,
965                    java.util.Locale locale) {
966                    return _group.getUnambiguousName(name, locale);
967            }
968    
969            @Override
970            public boolean hasAncestor(long groupId) {
971                    return _group.hasAncestor(groupId);
972            }
973    
974            @Override
975            public boolean hasLocalOrRemoteStagingGroup() {
976                    return _group.hasLocalOrRemoteStagingGroup();
977            }
978    
979            @Override
980            public boolean hasPrivateLayouts() {
981                    return _group.hasPrivateLayouts();
982            }
983    
984            @Override
985            public boolean hasPublicLayouts() {
986                    return _group.hasPublicLayouts();
987            }
988    
989            @Override
990            public boolean hasStagingGroup() {
991                    return _group.hasStagingGroup();
992            }
993    
994            /**
995            * @deprecated As of 7.0.0, replaced by {@link #hasAncestor}
996            */
997            @Override
998            public boolean isChild(long groupId) {
999                    return _group.isChild(groupId);
1000            }
1001    
1002            /**
1003            * @deprecated As of 6.1.0, renamed to {@link #isRegularSite}
1004            */
1005            @Override
1006            public boolean isCommunity() {
1007                    return _group.isCommunity();
1008            }
1009    
1010            @Override
1011            public boolean isCompany() {
1012                    return _group.isCompany();
1013            }
1014    
1015            @Override
1016            public boolean isCompanyStagingGroup() {
1017                    return _group.isCompanyStagingGroup();
1018            }
1019    
1020            @Override
1021            public boolean isControlPanel() {
1022                    return _group.isControlPanel();
1023            }
1024    
1025            @Override
1026            public boolean isGuest() {
1027                    return _group.isGuest();
1028            }
1029    
1030            @Override
1031            public boolean isInStagingPortlet(java.lang.String portletId) {
1032                    return _group.isInStagingPortlet(portletId);
1033            }
1034    
1035            @Override
1036            public boolean isLayout() {
1037                    return _group.isLayout();
1038            }
1039    
1040            @Override
1041            public boolean isLayoutPrototype() {
1042                    return _group.isLayoutPrototype();
1043            }
1044    
1045            @Override
1046            public boolean isLayoutSetPrototype() {
1047                    return _group.isLayoutSetPrototype();
1048            }
1049    
1050            @Override
1051            public boolean isLimitedToParentSiteMembers() {
1052                    return _group.isLimitedToParentSiteMembers();
1053            }
1054    
1055            @Override
1056            public boolean isOrganization() {
1057                    return _group.isOrganization();
1058            }
1059    
1060            @Override
1061            public boolean isRegularSite() {
1062                    return _group.isRegularSite();
1063            }
1064    
1065            @Override
1066            public boolean isRoot() {
1067                    return _group.isRoot();
1068            }
1069    
1070            @Override
1071            public boolean isShowSite(
1072                    com.liferay.portal.security.permission.PermissionChecker permissionChecker,
1073                    boolean privateSite)
1074                    throws com.liferay.portal.kernel.exception.PortalException,
1075                            com.liferay.portal.kernel.exception.SystemException {
1076                    return _group.isShowSite(permissionChecker, privateSite);
1077            }
1078    
1079            @Override
1080            public boolean isStaged() {
1081                    return _group.isStaged();
1082            }
1083    
1084            @Override
1085            public boolean isStagedPortlet(java.lang.String portletId) {
1086                    return _group.isStagedPortlet(portletId);
1087            }
1088    
1089            @Override
1090            public boolean isStagedRemotely() {
1091                    return _group.isStagedRemotely();
1092            }
1093    
1094            @Override
1095            public boolean isStagingGroup() {
1096                    return _group.isStagingGroup();
1097            }
1098    
1099            @Override
1100            public boolean isUser() {
1101                    return _group.isUser();
1102            }
1103    
1104            @Override
1105            public boolean isUserGroup() {
1106                    return _group.isUserGroup();
1107            }
1108    
1109            @Override
1110            public boolean isUserPersonalSite() {
1111                    return _group.isUserPersonalSite();
1112            }
1113    
1114            @Override
1115            public void setTypeSettingsProperties(
1116                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
1117                    _group.setTypeSettingsProperties(typeSettingsProperties);
1118            }
1119    
1120            @Override
1121            public boolean equals(Object obj) {
1122                    if (this == obj) {
1123                            return true;
1124                    }
1125    
1126                    if (!(obj instanceof GroupWrapper)) {
1127                            return false;
1128                    }
1129    
1130                    GroupWrapper groupWrapper = (GroupWrapper)obj;
1131    
1132                    if (Validator.equals(_group, groupWrapper._group)) {
1133                            return true;
1134                    }
1135    
1136                    return false;
1137            }
1138    
1139            /**
1140             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1141             */
1142            public Group getWrappedGroup() {
1143                    return _group;
1144            }
1145    
1146            @Override
1147            public Group getWrappedModel() {
1148                    return _group;
1149            }
1150    
1151            @Override
1152            public void resetOriginalValues() {
1153                    _group.resetOriginalValues();
1154            }
1155    
1156            private Group _group;
1157    }