001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    
021    import java.util.HashMap;
022    import java.util.Map;
023    
024    /**
025     * <p>
026     * This class is a wrapper for {@link Group}.
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see Group
031     * @generated
032     */
033    @ProviderType
034    public class GroupWrapper implements Group, ModelWrapper<Group> {
035            public GroupWrapper(Group group) {
036                    _group = group;
037            }
038    
039            @Override
040            public Class<?> getModelClass() {
041                    return Group.class;
042            }
043    
044            @Override
045            public String getModelClassName() {
046                    return Group.class.getName();
047            }
048    
049            @Override
050            public Map<String, Object> getModelAttributes() {
051                    Map<String, Object> attributes = new HashMap<String, Object>();
052    
053                    attributes.put("mvccVersion", getMvccVersion());
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("groupKey", getGroupKey());
064                    attributes.put("name", getName());
065                    attributes.put("description", getDescription());
066                    attributes.put("type", getType());
067                    attributes.put("typeSettings", getTypeSettings());
068                    attributes.put("manualMembership", getManualMembership());
069                    attributes.put("membershipRestriction", getMembershipRestriction());
070                    attributes.put("friendlyURL", getFriendlyURL());
071                    attributes.put("site", getSite());
072                    attributes.put("remoteStagingGroupCount", getRemoteStagingGroupCount());
073                    attributes.put("inheritContent", getInheritContent());
074                    attributes.put("active", getActive());
075    
076                    return attributes;
077            }
078    
079            @Override
080            public void setModelAttributes(Map<String, Object> attributes) {
081                    Long mvccVersion = (Long)attributes.get("mvccVersion");
082    
083                    if (mvccVersion != null) {
084                            setMvccVersion(mvccVersion);
085                    }
086    
087                    String uuid = (String)attributes.get("uuid");
088    
089                    if (uuid != null) {
090                            setUuid(uuid);
091                    }
092    
093                    Long groupId = (Long)attributes.get("groupId");
094    
095                    if (groupId != null) {
096                            setGroupId(groupId);
097                    }
098    
099                    Long companyId = (Long)attributes.get("companyId");
100    
101                    if (companyId != null) {
102                            setCompanyId(companyId);
103                    }
104    
105                    Long creatorUserId = (Long)attributes.get("creatorUserId");
106    
107                    if (creatorUserId != null) {
108                            setCreatorUserId(creatorUserId);
109                    }
110    
111                    Long classNameId = (Long)attributes.get("classNameId");
112    
113                    if (classNameId != null) {
114                            setClassNameId(classNameId);
115                    }
116    
117                    Long classPK = (Long)attributes.get("classPK");
118    
119                    if (classPK != null) {
120                            setClassPK(classPK);
121                    }
122    
123                    Long parentGroupId = (Long)attributes.get("parentGroupId");
124    
125                    if (parentGroupId != null) {
126                            setParentGroupId(parentGroupId);
127                    }
128    
129                    Long liveGroupId = (Long)attributes.get("liveGroupId");
130    
131                    if (liveGroupId != null) {
132                            setLiveGroupId(liveGroupId);
133                    }
134    
135                    String treePath = (String)attributes.get("treePath");
136    
137                    if (treePath != null) {
138                            setTreePath(treePath);
139                    }
140    
141                    String groupKey = (String)attributes.get("groupKey");
142    
143                    if (groupKey != null) {
144                            setGroupKey(groupKey);
145                    }
146    
147                    String name = (String)attributes.get("name");
148    
149                    if (name != null) {
150                            setName(name);
151                    }
152    
153                    String description = (String)attributes.get("description");
154    
155                    if (description != null) {
156                            setDescription(description);
157                    }
158    
159                    Integer type = (Integer)attributes.get("type");
160    
161                    if (type != null) {
162                            setType(type);
163                    }
164    
165                    String typeSettings = (String)attributes.get("typeSettings");
166    
167                    if (typeSettings != null) {
168                            setTypeSettings(typeSettings);
169                    }
170    
171                    Boolean manualMembership = (Boolean)attributes.get("manualMembership");
172    
173                    if (manualMembership != null) {
174                            setManualMembership(manualMembership);
175                    }
176    
177                    Integer membershipRestriction = (Integer)attributes.get(
178                                    "membershipRestriction");
179    
180                    if (membershipRestriction != null) {
181                            setMembershipRestriction(membershipRestriction);
182                    }
183    
184                    String friendlyURL = (String)attributes.get("friendlyURL");
185    
186                    if (friendlyURL != null) {
187                            setFriendlyURL(friendlyURL);
188                    }
189    
190                    Boolean site = (Boolean)attributes.get("site");
191    
192                    if (site != null) {
193                            setSite(site);
194                    }
195    
196                    Integer remoteStagingGroupCount = (Integer)attributes.get(
197                                    "remoteStagingGroupCount");
198    
199                    if (remoteStagingGroupCount != null) {
200                            setRemoteStagingGroupCount(remoteStagingGroupCount);
201                    }
202    
203                    Boolean inheritContent = (Boolean)attributes.get("inheritContent");
204    
205                    if (inheritContent != null) {
206                            setInheritContent(inheritContent);
207                    }
208    
209                    Boolean active = (Boolean)attributes.get("active");
210    
211                    if (active != null) {
212                            setActive(active);
213                    }
214            }
215    
216            @Override
217            public java.lang.String buildTreePath()
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return _group.buildTreePath();
220            }
221    
222            @Override
223            public void clearStagingGroup() {
224                    _group.clearStagingGroup();
225            }
226    
227            @Override
228            public java.lang.Object clone() {
229                    return new GroupWrapper((Group)_group.clone());
230            }
231    
232            @Override
233            public int compareTo(com.liferay.portal.model.Group group) {
234                    return _group.compareTo(group);
235            }
236    
237            /**
238            * Returns the active of this group.
239            *
240            * @return the active of this group
241            */
242            @Override
243            public boolean getActive() {
244                    return _group.getActive();
245            }
246    
247            @Override
248            public java.util.List<com.liferay.portal.model.Group> getAncestors()
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    return _group.getAncestors();
251            }
252    
253            @Override
254            public java.lang.String[] getAvailableLanguageIds() {
255                    return _group.getAvailableLanguageIds();
256            }
257    
258            @Override
259            public java.util.List<com.liferay.portal.model.Group> getChildren(
260                    boolean site) {
261                    return _group.getChildren(site);
262            }
263    
264            /**
265            * @deprecated As of 7.0.0, replaced by {@link
266            #getChildrenWithLayouts(boolean, int, int,
267            OrderByComparator)}
268            */
269            @Deprecated
270            @Override
271            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
272                    boolean site, int start, int end) {
273                    return _group.getChildrenWithLayouts(site, start, end);
274            }
275    
276            @Override
277            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
278                    boolean site, int start, int end,
279                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc) {
280                    return _group.getChildrenWithLayouts(site, start, end, obc);
281            }
282    
283            @Override
284            public int getChildrenWithLayoutsCount(boolean site) {
285                    return _group.getChildrenWithLayoutsCount(site);
286            }
287    
288            /**
289            * Returns the fully qualified class name of this group.
290            *
291            * @return the fully qualified class name of this group
292            */
293            @Override
294            public java.lang.String getClassName() {
295                    return _group.getClassName();
296            }
297    
298            /**
299            * Returns the class name ID of this group.
300            *
301            * @return the class name ID of this group
302            */
303            @Override
304            public long getClassNameId() {
305                    return _group.getClassNameId();
306            }
307    
308            /**
309            * Returns the class p k of this group.
310            *
311            * @return the class p k of this group
312            */
313            @Override
314            public long getClassPK() {
315                    return _group.getClassPK();
316            }
317    
318            /**
319            * Returns the company ID of this group.
320            *
321            * @return the company ID of this group
322            */
323            @Override
324            public long getCompanyId() {
325                    return _group.getCompanyId();
326            }
327    
328            /**
329            * Returns the creator user ID of this group.
330            *
331            * @return the creator user ID of this group
332            */
333            @Override
334            public long getCreatorUserId() {
335                    return _group.getCreatorUserId();
336            }
337    
338            /**
339            * Returns the creator user uuid of this group.
340            *
341            * @return the creator user uuid of this group
342            */
343            @Override
344            public java.lang.String getCreatorUserUuid() {
345                    return _group.getCreatorUserUuid();
346            }
347    
348            @Override
349            public java.lang.String getDefaultLanguageId() {
350                    return _group.getDefaultLanguageId();
351            }
352    
353            @Override
354            public long getDefaultPrivatePlid() {
355                    return _group.getDefaultPrivatePlid();
356            }
357    
358            @Override
359            public long getDefaultPublicPlid() {
360                    return _group.getDefaultPublicPlid();
361            }
362    
363            @Override
364            public java.util.List<com.liferay.portal.model.Group> getDescendants(
365                    boolean site) {
366                    return _group.getDescendants(site);
367            }
368    
369            /**
370            * Returns the description of this group.
371            *
372            * @return the description of this group
373            */
374            @Override
375            public java.lang.String getDescription() {
376                    return _group.getDescription();
377            }
378    
379            /**
380            * Returns the localized description of this group in the language. Uses the default language if no localization exists for the requested language.
381            *
382            * @param languageId the ID of the language
383            * @return the localized description of this group
384            */
385            @Override
386            public java.lang.String getDescription(java.lang.String languageId) {
387                    return _group.getDescription(languageId);
388            }
389    
390            /**
391            * Returns the localized description of this group in the language, optionally using the default language if no localization exists for the requested language.
392            *
393            * @param languageId the ID of the language
394            * @param useDefault whether to use the default language if no localization exists for the requested language
395            * @return the localized description of this group
396            */
397            @Override
398            public java.lang.String getDescription(java.lang.String languageId,
399                    boolean useDefault) {
400                    return _group.getDescription(languageId, useDefault);
401            }
402    
403            /**
404            * Returns the localized description of this group in the language. Uses the default language if no localization exists for the requested language.
405            *
406            * @param locale the locale of the language
407            * @return the localized description of this group
408            */
409            @Override
410            public java.lang.String getDescription(java.util.Locale locale) {
411                    return _group.getDescription(locale);
412            }
413    
414            /**
415            * Returns the localized description of this group in the language, optionally using the default language if no localization exists for the requested language.
416            *
417            * @param locale the local of the language
418            * @param useDefault whether to use the default language if no localization exists for the requested language
419            * @return the localized description of this group. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
420            */
421            @Override
422            public java.lang.String getDescription(java.util.Locale locale,
423                    boolean useDefault) {
424                    return _group.getDescription(locale, useDefault);
425            }
426    
427            @Override
428            public java.lang.String getDescriptionCurrentLanguageId() {
429                    return _group.getDescriptionCurrentLanguageId();
430            }
431    
432            @Override
433            public java.lang.String getDescriptionCurrentValue() {
434                    return _group.getDescriptionCurrentValue();
435            }
436    
437            /**
438            * Returns a map of the locales and localized descriptions of this group.
439            *
440            * @return the locales and localized descriptions of this group
441            */
442            @Override
443            public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
444                    return _group.getDescriptionMap();
445            }
446    
447            @Override
448            public java.lang.String getDescriptiveName()
449                    throws com.liferay.portal.kernel.exception.PortalException {
450                    return _group.getDescriptiveName();
451            }
452    
453            @Override
454            public java.lang.String getDescriptiveName(java.util.Locale locale)
455                    throws com.liferay.portal.kernel.exception.PortalException {
456                    return _group.getDescriptiveName(locale);
457            }
458    
459            @Override
460            public java.lang.String getDisplayURL(
461                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
462                    return _group.getDisplayURL(themeDisplay);
463            }
464    
465            @Override
466            public java.lang.String getDisplayURL(
467                    com.liferay.portal.theme.ThemeDisplay themeDisplay,
468                    boolean privateLayout) {
469                    return _group.getDisplayURL(themeDisplay, privateLayout);
470            }
471    
472            @Override
473            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
474                    return _group.getExpandoBridge();
475            }
476    
477            /**
478            * Returns the friendly u r l of this group.
479            *
480            * @return the friendly u r l of this group
481            */
482            @Override
483            public java.lang.String getFriendlyURL() {
484                    return _group.getFriendlyURL();
485            }
486    
487            /**
488            * Returns the group ID of this group.
489            *
490            * @return the group ID of this group
491            */
492            @Override
493            public long getGroupId() {
494                    return _group.getGroupId();
495            }
496    
497            /**
498            * Returns the group key of this group.
499            *
500            * @return the group key of this group
501            */
502            @Override
503            public java.lang.String getGroupKey() {
504                    return _group.getGroupKey();
505            }
506    
507            @Override
508            public java.lang.String getIconCssClass() {
509                    return _group.getIconCssClass();
510            }
511    
512            @Override
513            public java.lang.String getIconURL(
514                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
515                    return _group.getIconURL(themeDisplay);
516            }
517    
518            /**
519            * Returns the inherit content of this group.
520            *
521            * @return the inherit content of this group
522            */
523            @Override
524            public boolean getInheritContent() {
525                    return _group.getInheritContent();
526            }
527    
528            @Override
529            public java.lang.String getLayoutRootNodeName(boolean privateLayout,
530                    java.util.Locale locale) {
531                    return _group.getLayoutRootNodeName(privateLayout, locale);
532            }
533    
534            @Override
535            public com.liferay.portal.model.Group getLiveGroup() {
536                    return _group.getLiveGroup();
537            }
538    
539            /**
540            * Returns the live group ID of this group.
541            *
542            * @return the live group ID of this group
543            */
544            @Override
545            public long getLiveGroupId() {
546                    return _group.getLiveGroupId();
547            }
548    
549            @Override
550            public java.lang.String getLiveParentTypeSettingsProperty(
551                    java.lang.String key) {
552                    return _group.getLiveParentTypeSettingsProperty(key);
553            }
554    
555            @Override
556            public java.lang.String getLogoURL(
557                    com.liferay.portal.theme.ThemeDisplay themeDisplay, boolean useDefault) {
558                    return _group.getLogoURL(themeDisplay, useDefault);
559            }
560    
561            /**
562            * Returns the manual membership of this group.
563            *
564            * @return the manual membership of this group
565            */
566            @Override
567            public boolean getManualMembership() {
568                    return _group.getManualMembership();
569            }
570    
571            /**
572            * Returns the membership restriction of this group.
573            *
574            * @return the membership restriction of this group
575            */
576            @Override
577            public int getMembershipRestriction() {
578                    return _group.getMembershipRestriction();
579            }
580    
581            /**
582            * Returns the mvcc version of this group.
583            *
584            * @return the mvcc version of this group
585            */
586            @Override
587            public long getMvccVersion() {
588                    return _group.getMvccVersion();
589            }
590    
591            /**
592            * Returns the name of this group.
593            *
594            * @return the name of this group
595            */
596            @Override
597            public java.lang.String getName() {
598                    return _group.getName();
599            }
600    
601            /**
602            * Returns the localized name of this group in the language. Uses the default language if no localization exists for the requested language.
603            *
604            * @param languageId the ID of the language
605            * @return the localized name of this group
606            */
607            @Override
608            public java.lang.String getName(java.lang.String languageId) {
609                    return _group.getName(languageId);
610            }
611    
612            /**
613            * Returns the localized name of this group in the language, optionally using the default language if no localization exists for the requested language.
614            *
615            * @param languageId the ID of the language
616            * @param useDefault whether to use the default language if no localization exists for the requested language
617            * @return the localized name of this group
618            */
619            @Override
620            public java.lang.String getName(java.lang.String languageId,
621                    boolean useDefault) {
622                    return _group.getName(languageId, useDefault);
623            }
624    
625            /**
626            * Returns the localized name of this group in the language. Uses the default language if no localization exists for the requested language.
627            *
628            * @param locale the locale of the language
629            * @return the localized name of this group
630            */
631            @Override
632            public java.lang.String getName(java.util.Locale locale) {
633                    return _group.getName(locale);
634            }
635    
636            /**
637            * Returns the localized name of this group in the language, optionally using the default language if no localization exists for the requested language.
638            *
639            * @param locale the local of the language
640            * @param useDefault whether to use the default language if no localization exists for the requested language
641            * @return the localized name of this group. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
642            */
643            @Override
644            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
645                    return _group.getName(locale, useDefault);
646            }
647    
648            @Override
649            public java.lang.String getNameCurrentLanguageId() {
650                    return _group.getNameCurrentLanguageId();
651            }
652    
653            @Override
654            public java.lang.String getNameCurrentValue() {
655                    return _group.getNameCurrentValue();
656            }
657    
658            /**
659            * Returns a map of the locales and localized names of this group.
660            *
661            * @return the locales and localized names of this group
662            */
663            @Override
664            public Map<java.util.Locale, java.lang.String> getNameMap() {
665                    return _group.getNameMap();
666            }
667    
668            @Override
669            public long getOrganizationId() {
670                    return _group.getOrganizationId();
671            }
672    
673            @Override
674            public com.liferay.portal.model.Group getParentGroup()
675                    throws com.liferay.portal.kernel.exception.PortalException {
676                    return _group.getParentGroup();
677            }
678    
679            /**
680            * Returns the parent group ID of this group.
681            *
682            * @return the parent group ID of this group
683            */
684            @Override
685            public long getParentGroupId() {
686                    return _group.getParentGroupId();
687            }
688    
689            @Override
690            public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties() {
691                    return _group.getParentLiveGroupTypeSettingsProperties();
692            }
693    
694            @Override
695            public java.lang.String getPathFriendlyURL(boolean privateLayout,
696                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
697                    return _group.getPathFriendlyURL(privateLayout, themeDisplay);
698            }
699    
700            /**
701            * Returns the primary key of this group.
702            *
703            * @return the primary key of this group
704            */
705            @Override
706            public long getPrimaryKey() {
707                    return _group.getPrimaryKey();
708            }
709    
710            @Override
711            public java.io.Serializable getPrimaryKeyObj() {
712                    return _group.getPrimaryKeyObj();
713            }
714    
715            @Override
716            public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
717                    return _group.getPrivateLayoutSet();
718            }
719    
720            @Override
721            public int getPrivateLayoutsPageCount() {
722                    return _group.getPrivateLayoutsPageCount();
723            }
724    
725            @Override
726            public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
727                    return _group.getPublicLayoutSet();
728            }
729    
730            @Override
731            public int getPublicLayoutsPageCount() {
732                    return _group.getPublicLayoutsPageCount();
733            }
734    
735            @Override
736            public long getRemoteLiveGroupId() {
737                    return _group.getRemoteLiveGroupId();
738            }
739    
740            /**
741            * Returns the remote staging group count of this group.
742            *
743            * @return the remote staging group count of this group
744            */
745            @Override
746            public int getRemoteStagingGroupCount() {
747                    return _group.getRemoteStagingGroupCount();
748            }
749    
750            @Override
751            public java.lang.String getScopeDescriptiveName(
752                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
753                    throws com.liferay.portal.kernel.exception.PortalException {
754                    return _group.getScopeDescriptiveName(themeDisplay);
755            }
756    
757            @Override
758            public java.lang.String getScopeLabel(
759                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
760                    return _group.getScopeLabel(themeDisplay);
761            }
762    
763            /**
764            * Returns the site of this group.
765            *
766            * @return the site of this group
767            */
768            @Override
769            public boolean getSite() {
770                    return _group.getSite();
771            }
772    
773            @Override
774            public com.liferay.portal.model.Group getStagingGroup() {
775                    return _group.getStagingGroup();
776            }
777    
778            /**
779            * Returns the tree path of this group.
780            *
781            * @return the tree path of this group
782            */
783            @Override
784            public java.lang.String getTreePath() {
785                    return _group.getTreePath();
786            }
787    
788            /**
789            * Returns the type of this group.
790            *
791            * @return the type of this group
792            */
793            @Override
794            public int getType() {
795                    return _group.getType();
796            }
797    
798            @Override
799            public java.lang.String getTypeLabel() {
800                    return _group.getTypeLabel();
801            }
802    
803            /**
804            * Returns the type settings of this group.
805            *
806            * @return the type settings of this group
807            */
808            @Override
809            public java.lang.String getTypeSettings() {
810                    return _group.getTypeSettings();
811            }
812    
813            @Override
814            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
815                    return _group.getTypeSettingsProperties();
816            }
817    
818            @Override
819            public java.lang.String getTypeSettingsProperty(java.lang.String key) {
820                    return _group.getTypeSettingsProperty(key);
821            }
822    
823            @Override
824            public java.lang.String getUnambiguousName(java.lang.String name,
825                    java.util.Locale locale) {
826                    return _group.getUnambiguousName(name, locale);
827            }
828    
829            /**
830            * Returns the uuid of this group.
831            *
832            * @return the uuid of this group
833            */
834            @Override
835            public java.lang.String getUuid() {
836                    return _group.getUuid();
837            }
838    
839            @Override
840            public boolean hasAncestor(long groupId) {
841                    return _group.hasAncestor(groupId);
842            }
843    
844            @Override
845            public boolean hasLocalOrRemoteStagingGroup() {
846                    return _group.hasLocalOrRemoteStagingGroup();
847            }
848    
849            @Override
850            public boolean hasPrivateLayouts() {
851                    return _group.hasPrivateLayouts();
852            }
853    
854            @Override
855            public boolean hasPublicLayouts() {
856                    return _group.hasPublicLayouts();
857            }
858    
859            @Override
860            public boolean hasRemoteStagingGroup() {
861                    return _group.hasRemoteStagingGroup();
862            }
863    
864            @Override
865            public boolean hasStagingGroup() {
866                    return _group.hasStagingGroup();
867            }
868    
869            @Override
870            public int hashCode() {
871                    return _group.hashCode();
872            }
873    
874            /**
875            * Returns <code>true</code> if this group is active.
876            *
877            * @return <code>true</code> if this group is active; <code>false</code> otherwise
878            */
879            @Override
880            public boolean isActive() {
881                    return _group.isActive();
882            }
883    
884            @Override
885            public boolean isCachedModel() {
886                    return _group.isCachedModel();
887            }
888    
889            /**
890            * @deprecated As of 7.0.0, replaced by {@link #hasAncestor}
891            */
892            @Deprecated
893            @Override
894            public boolean isChild(long groupId) {
895                    return _group.isChild(groupId);
896            }
897    
898            /**
899            * @deprecated As of 6.1.0, renamed to {@link #isRegularSite}
900            */
901            @Deprecated
902            @Override
903            public boolean isCommunity() {
904                    return _group.isCommunity();
905            }
906    
907            @Override
908            public boolean isCompany() {
909                    return _group.isCompany();
910            }
911    
912            @Override
913            public boolean isCompanyStagingGroup() {
914                    return _group.isCompanyStagingGroup();
915            }
916    
917            @Override
918            public boolean isControlPanel() {
919                    return _group.isControlPanel();
920            }
921    
922            @Override
923            public boolean isEscapedModel() {
924                    return _group.isEscapedModel();
925            }
926    
927            @Override
928            public boolean isGuest() {
929                    return _group.isGuest();
930            }
931    
932            @Override
933            public boolean isInStagingPortlet(java.lang.String portletId) {
934                    return _group.isInStagingPortlet(portletId);
935            }
936    
937            /**
938            * Returns <code>true</code> if this group is inherit content.
939            *
940            * @return <code>true</code> if this group is inherit content; <code>false</code> otherwise
941            */
942            @Override
943            public boolean isInheritContent() {
944                    return _group.isInheritContent();
945            }
946    
947            @Override
948            public boolean isLayout() {
949                    return _group.isLayout();
950            }
951    
952            @Override
953            public boolean isLayoutPrototype() {
954                    return _group.isLayoutPrototype();
955            }
956    
957            @Override
958            public boolean isLayoutSetPrototype() {
959                    return _group.isLayoutSetPrototype();
960            }
961    
962            @Override
963            public boolean isLimitedToParentSiteMembers() {
964                    return _group.isLimitedToParentSiteMembers();
965            }
966    
967            /**
968            * Returns <code>true</code> if this group is manual membership.
969            *
970            * @return <code>true</code> if this group is manual membership; <code>false</code> otherwise
971            */
972            @Override
973            public boolean isManualMembership() {
974                    return _group.isManualMembership();
975            }
976    
977            @Override
978            public boolean isNew() {
979                    return _group.isNew();
980            }
981    
982            @Override
983            public boolean isOrganization() {
984                    return _group.isOrganization();
985            }
986    
987            @Override
988            public boolean isRegularSite() {
989                    return _group.isRegularSite();
990            }
991    
992            @Override
993            public boolean isRoot() {
994                    return _group.isRoot();
995            }
996    
997            @Override
998            public boolean isShowSite(
999                    com.liferay.portal.security.permission.PermissionChecker permissionChecker,
1000                    boolean privateSite)
1001                    throws com.liferay.portal.kernel.exception.PortalException {
1002                    return _group.isShowSite(permissionChecker, privateSite);
1003            }
1004    
1005            /**
1006            * Returns <code>true</code> if this group is site.
1007            *
1008            * @return <code>true</code> if this group is site; <code>false</code> otherwise
1009            */
1010            @Override
1011            public boolean isSite() {
1012                    return _group.isSite();
1013            }
1014    
1015            @Override
1016            public boolean isStaged() {
1017                    return _group.isStaged();
1018            }
1019    
1020            @Override
1021            public boolean isStagedPortlet(java.lang.String portletId) {
1022                    return _group.isStagedPortlet(portletId);
1023            }
1024    
1025            @Override
1026            public boolean isStagedRemotely() {
1027                    return _group.isStagedRemotely();
1028            }
1029    
1030            @Override
1031            public boolean isStagingGroup() {
1032                    return _group.isStagingGroup();
1033            }
1034    
1035            @Override
1036            public boolean isUser() {
1037                    return _group.isUser();
1038            }
1039    
1040            @Override
1041            public boolean isUserGroup() {
1042                    return _group.isUserGroup();
1043            }
1044    
1045            @Override
1046            public boolean isUserPersonalSite() {
1047                    return _group.isUserPersonalSite();
1048            }
1049    
1050            @Override
1051            public void persist() {
1052                    _group.persist();
1053            }
1054    
1055            @Override
1056            public void prepareLocalizedFieldsForImport()
1057                    throws com.liferay.portal.LocaleException {
1058                    _group.prepareLocalizedFieldsForImport();
1059            }
1060    
1061            @Override
1062            public void prepareLocalizedFieldsForImport(
1063                    java.util.Locale defaultImportLocale)
1064                    throws com.liferay.portal.LocaleException {
1065                    _group.prepareLocalizedFieldsForImport(defaultImportLocale);
1066            }
1067    
1068            /**
1069            * Sets whether this group is active.
1070            *
1071            * @param active the active of this group
1072            */
1073            @Override
1074            public void setActive(boolean active) {
1075                    _group.setActive(active);
1076            }
1077    
1078            @Override
1079            public void setCachedModel(boolean cachedModel) {
1080                    _group.setCachedModel(cachedModel);
1081            }
1082    
1083            @Override
1084            public void setClassName(java.lang.String className) {
1085                    _group.setClassName(className);
1086            }
1087    
1088            /**
1089            * Sets the class name ID of this group.
1090            *
1091            * @param classNameId the class name ID of this group
1092            */
1093            @Override
1094            public void setClassNameId(long classNameId) {
1095                    _group.setClassNameId(classNameId);
1096            }
1097    
1098            /**
1099            * Sets the class p k of this group.
1100            *
1101            * @param classPK the class p k of this group
1102            */
1103            @Override
1104            public void setClassPK(long classPK) {
1105                    _group.setClassPK(classPK);
1106            }
1107    
1108            /**
1109            * Sets the company ID of this group.
1110            *
1111            * @param companyId the company ID of this group
1112            */
1113            @Override
1114            public void setCompanyId(long companyId) {
1115                    _group.setCompanyId(companyId);
1116            }
1117    
1118            /**
1119            * Sets the creator user ID of this group.
1120            *
1121            * @param creatorUserId the creator user ID of this group
1122            */
1123            @Override
1124            public void setCreatorUserId(long creatorUserId) {
1125                    _group.setCreatorUserId(creatorUserId);
1126            }
1127    
1128            /**
1129            * Sets the creator user uuid of this group.
1130            *
1131            * @param creatorUserUuid the creator user uuid of this group
1132            */
1133            @Override
1134            public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
1135                    _group.setCreatorUserUuid(creatorUserUuid);
1136            }
1137    
1138            /**
1139            * Sets the description of this group.
1140            *
1141            * @param description the description of this group
1142            */
1143            @Override
1144            public void setDescription(java.lang.String description) {
1145                    _group.setDescription(description);
1146            }
1147    
1148            /**
1149            * Sets the localized description of this group in the language.
1150            *
1151            * @param description the localized description of this group
1152            * @param locale the locale of the language
1153            */
1154            @Override
1155            public void setDescription(java.lang.String description,
1156                    java.util.Locale locale) {
1157                    _group.setDescription(description, locale);
1158            }
1159    
1160            /**
1161            * Sets the localized description of this group in the language, and sets the default locale.
1162            *
1163            * @param description the localized description of this group
1164            * @param locale the locale of the language
1165            * @param defaultLocale the default locale
1166            */
1167            @Override
1168            public void setDescription(java.lang.String description,
1169                    java.util.Locale locale, java.util.Locale defaultLocale) {
1170                    _group.setDescription(description, locale, defaultLocale);
1171            }
1172    
1173            @Override
1174            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
1175                    _group.setDescriptionCurrentLanguageId(languageId);
1176            }
1177    
1178            /**
1179            * Sets the localized descriptions of this group from the map of locales and localized descriptions.
1180            *
1181            * @param descriptionMap the locales and localized descriptions of this group
1182            */
1183            @Override
1184            public void setDescriptionMap(
1185                    Map<java.util.Locale, java.lang.String> descriptionMap) {
1186                    _group.setDescriptionMap(descriptionMap);
1187            }
1188    
1189            /**
1190            * Sets the localized descriptions of this group from the map of locales and localized descriptions, and sets the default locale.
1191            *
1192            * @param descriptionMap the locales and localized descriptions of this group
1193            * @param defaultLocale the default locale
1194            */
1195            @Override
1196            public void setDescriptionMap(
1197                    Map<java.util.Locale, java.lang.String> descriptionMap,
1198                    java.util.Locale defaultLocale) {
1199                    _group.setDescriptionMap(descriptionMap, defaultLocale);
1200            }
1201    
1202            @Override
1203            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
1204                    _group.setExpandoBridgeAttributes(baseModel);
1205            }
1206    
1207            @Override
1208            public void setExpandoBridgeAttributes(
1209                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1210                    _group.setExpandoBridgeAttributes(expandoBridge);
1211            }
1212    
1213            @Override
1214            public void setExpandoBridgeAttributes(
1215                    com.liferay.portal.service.ServiceContext serviceContext) {
1216                    _group.setExpandoBridgeAttributes(serviceContext);
1217            }
1218    
1219            /**
1220            * Sets the friendly u r l of this group.
1221            *
1222            * @param friendlyURL the friendly u r l of this group
1223            */
1224            @Override
1225            public void setFriendlyURL(java.lang.String friendlyURL) {
1226                    _group.setFriendlyURL(friendlyURL);
1227            }
1228    
1229            /**
1230            * Sets the group ID of this group.
1231            *
1232            * @param groupId the group ID of this group
1233            */
1234            @Override
1235            public void setGroupId(long groupId) {
1236                    _group.setGroupId(groupId);
1237            }
1238    
1239            /**
1240            * Sets the group key of this group.
1241            *
1242            * @param groupKey the group key of this group
1243            */
1244            @Override
1245            public void setGroupKey(java.lang.String groupKey) {
1246                    _group.setGroupKey(groupKey);
1247            }
1248    
1249            /**
1250            * Sets whether this group is inherit content.
1251            *
1252            * @param inheritContent the inherit content of this group
1253            */
1254            @Override
1255            public void setInheritContent(boolean inheritContent) {
1256                    _group.setInheritContent(inheritContent);
1257            }
1258    
1259            /**
1260            * Sets the live group ID of this group.
1261            *
1262            * @param liveGroupId the live group ID of this group
1263            */
1264            @Override
1265            public void setLiveGroupId(long liveGroupId) {
1266                    _group.setLiveGroupId(liveGroupId);
1267            }
1268    
1269            /**
1270            * Sets whether this group is manual membership.
1271            *
1272            * @param manualMembership the manual membership of this group
1273            */
1274            @Override
1275            public void setManualMembership(boolean manualMembership) {
1276                    _group.setManualMembership(manualMembership);
1277            }
1278    
1279            /**
1280            * Sets the membership restriction of this group.
1281            *
1282            * @param membershipRestriction the membership restriction of this group
1283            */
1284            @Override
1285            public void setMembershipRestriction(int membershipRestriction) {
1286                    _group.setMembershipRestriction(membershipRestriction);
1287            }
1288    
1289            /**
1290            * Sets the mvcc version of this group.
1291            *
1292            * @param mvccVersion the mvcc version of this group
1293            */
1294            @Override
1295            public void setMvccVersion(long mvccVersion) {
1296                    _group.setMvccVersion(mvccVersion);
1297            }
1298    
1299            /**
1300            * Sets the name of this group.
1301            *
1302            * @param name the name of this group
1303            */
1304            @Override
1305            public void setName(java.lang.String name) {
1306                    _group.setName(name);
1307            }
1308    
1309            /**
1310            * Sets the localized name of this group in the language.
1311            *
1312            * @param name the localized name of this group
1313            * @param locale the locale of the language
1314            */
1315            @Override
1316            public void setName(java.lang.String name, java.util.Locale locale) {
1317                    _group.setName(name, locale);
1318            }
1319    
1320            /**
1321            * Sets the localized name of this group in the language, and sets the default locale.
1322            *
1323            * @param name the localized name of this group
1324            * @param locale the locale of the language
1325            * @param defaultLocale the default locale
1326            */
1327            @Override
1328            public void setName(java.lang.String name, java.util.Locale locale,
1329                    java.util.Locale defaultLocale) {
1330                    _group.setName(name, locale, defaultLocale);
1331            }
1332    
1333            @Override
1334            public void setNameCurrentLanguageId(java.lang.String languageId) {
1335                    _group.setNameCurrentLanguageId(languageId);
1336            }
1337    
1338            /**
1339            * Sets the localized names of this group from the map of locales and localized names.
1340            *
1341            * @param nameMap the locales and localized names of this group
1342            */
1343            @Override
1344            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
1345                    _group.setNameMap(nameMap);
1346            }
1347    
1348            /**
1349            * Sets the localized names of this group from the map of locales and localized names, and sets the default locale.
1350            *
1351            * @param nameMap the locales and localized names of this group
1352            * @param defaultLocale the default locale
1353            */
1354            @Override
1355            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
1356                    java.util.Locale defaultLocale) {
1357                    _group.setNameMap(nameMap, defaultLocale);
1358            }
1359    
1360            @Override
1361            public void setNew(boolean n) {
1362                    _group.setNew(n);
1363            }
1364    
1365            /**
1366            * Sets the parent group ID of this group.
1367            *
1368            * @param parentGroupId the parent group ID of this group
1369            */
1370            @Override
1371            public void setParentGroupId(long parentGroupId) {
1372                    _group.setParentGroupId(parentGroupId);
1373            }
1374    
1375            /**
1376            * Sets the primary key of this group.
1377            *
1378            * @param primaryKey the primary key of this group
1379            */
1380            @Override
1381            public void setPrimaryKey(long primaryKey) {
1382                    _group.setPrimaryKey(primaryKey);
1383            }
1384    
1385            @Override
1386            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1387                    _group.setPrimaryKeyObj(primaryKeyObj);
1388            }
1389    
1390            /**
1391            * Sets the remote staging group count of this group.
1392            *
1393            * @param remoteStagingGroupCount the remote staging group count of this group
1394            */
1395            @Override
1396            public void setRemoteStagingGroupCount(int remoteStagingGroupCount) {
1397                    _group.setRemoteStagingGroupCount(remoteStagingGroupCount);
1398            }
1399    
1400            /**
1401            * Sets whether this group is site.
1402            *
1403            * @param site the site of this group
1404            */
1405            @Override
1406            public void setSite(boolean site) {
1407                    _group.setSite(site);
1408            }
1409    
1410            /**
1411            * Sets the tree path of this group.
1412            *
1413            * @param treePath the tree path of this group
1414            */
1415            @Override
1416            public void setTreePath(java.lang.String treePath) {
1417                    _group.setTreePath(treePath);
1418            }
1419    
1420            /**
1421            * Sets the type of this group.
1422            *
1423            * @param type the type of this group
1424            */
1425            @Override
1426            public void setType(int type) {
1427                    _group.setType(type);
1428            }
1429    
1430            /**
1431            * Sets the type settings of this group.
1432            *
1433            * @param typeSettings the type settings of this group
1434            */
1435            @Override
1436            public void setTypeSettings(java.lang.String typeSettings) {
1437                    _group.setTypeSettings(typeSettings);
1438            }
1439    
1440            @Override
1441            public void setTypeSettingsProperties(
1442                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
1443                    _group.setTypeSettingsProperties(typeSettingsProperties);
1444            }
1445    
1446            /**
1447            * Sets the uuid of this group.
1448            *
1449            * @param uuid the uuid of this group
1450            */
1451            @Override
1452            public void setUuid(java.lang.String uuid) {
1453                    _group.setUuid(uuid);
1454            }
1455    
1456            @Override
1457            public CacheModel<com.liferay.portal.model.Group> toCacheModel() {
1458                    return _group.toCacheModel();
1459            }
1460    
1461            @Override
1462            public com.liferay.portal.model.Group toEscapedModel() {
1463                    return new GroupWrapper(_group.toEscapedModel());
1464            }
1465    
1466            @Override
1467            public java.lang.String toString() {
1468                    return _group.toString();
1469            }
1470    
1471            @Override
1472            public com.liferay.portal.model.Group toUnescapedModel() {
1473                    return new GroupWrapper(_group.toUnescapedModel());
1474            }
1475    
1476            @Override
1477            public java.lang.String toXmlString() {
1478                    return _group.toXmlString();
1479            }
1480    
1481            @Override
1482            public void updateTreePath(java.lang.String treePath) {
1483                    _group.updateTreePath(treePath);
1484            }
1485    
1486            @Override
1487            public boolean equals(Object obj) {
1488                    if (this == obj) {
1489                            return true;
1490                    }
1491    
1492                    if (!(obj instanceof GroupWrapper)) {
1493                            return false;
1494                    }
1495    
1496                    GroupWrapper groupWrapper = (GroupWrapper)obj;
1497    
1498                    if (Validator.equals(_group, groupWrapper._group)) {
1499                            return true;
1500                    }
1501    
1502                    return false;
1503            }
1504    
1505            /**
1506             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1507             */
1508            @Deprecated
1509            public Group getWrappedGroup() {
1510                    return _group;
1511            }
1512    
1513            @Override
1514            public Group getWrappedModel() {
1515                    return _group;
1516            }
1517    
1518            @Override
1519            public boolean isEntityCacheEnabled() {
1520                    return _group.isEntityCacheEnabled();
1521            }
1522    
1523            @Override
1524            public boolean isFinderCacheEnabled() {
1525                    return _group.isFinderCacheEnabled();
1526            }
1527    
1528            @Override
1529            public void resetOriginalValues() {
1530                    _group.resetOriginalValues();
1531            }
1532    
1533            private final Group _group;
1534    }