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            @Override
899            public boolean isCompany() {
900                    return _group.isCompany();
901            }
902    
903            @Override
904            public boolean isCompanyStagingGroup() {
905                    return _group.isCompanyStagingGroup();
906            }
907    
908            @Override
909            public boolean isControlPanel() {
910                    return _group.isControlPanel();
911            }
912    
913            @Override
914            public boolean isEscapedModel() {
915                    return _group.isEscapedModel();
916            }
917    
918            @Override
919            public boolean isGuest() {
920                    return _group.isGuest();
921            }
922    
923            @Override
924            public boolean isInStagingPortlet(java.lang.String portletId) {
925                    return _group.isInStagingPortlet(portletId);
926            }
927    
928            /**
929            * Returns <code>true</code> if this group is inherit content.
930            *
931            * @return <code>true</code> if this group is inherit content; <code>false</code> otherwise
932            */
933            @Override
934            public boolean isInheritContent() {
935                    return _group.isInheritContent();
936            }
937    
938            @Override
939            public boolean isLayout() {
940                    return _group.isLayout();
941            }
942    
943            @Override
944            public boolean isLayoutPrototype() {
945                    return _group.isLayoutPrototype();
946            }
947    
948            @Override
949            public boolean isLayoutSetPrototype() {
950                    return _group.isLayoutSetPrototype();
951            }
952    
953            @Override
954            public boolean isLimitedToParentSiteMembers() {
955                    return _group.isLimitedToParentSiteMembers();
956            }
957    
958            /**
959            * Returns <code>true</code> if this group is manual membership.
960            *
961            * @return <code>true</code> if this group is manual membership; <code>false</code> otherwise
962            */
963            @Override
964            public boolean isManualMembership() {
965                    return _group.isManualMembership();
966            }
967    
968            @Override
969            public boolean isNew() {
970                    return _group.isNew();
971            }
972    
973            @Override
974            public boolean isOrganization() {
975                    return _group.isOrganization();
976            }
977    
978            @Override
979            public boolean isRegularSite() {
980                    return _group.isRegularSite();
981            }
982    
983            @Override
984            public boolean isRoot() {
985                    return _group.isRoot();
986            }
987    
988            @Override
989            public boolean isShowSite(
990                    com.liferay.portal.security.permission.PermissionChecker permissionChecker,
991                    boolean privateSite)
992                    throws com.liferay.portal.kernel.exception.PortalException {
993                    return _group.isShowSite(permissionChecker, privateSite);
994            }
995    
996            /**
997            * Returns <code>true</code> if this group is site.
998            *
999            * @return <code>true</code> if this group is site; <code>false</code> otherwise
1000            */
1001            @Override
1002            public boolean isSite() {
1003                    return _group.isSite();
1004            }
1005    
1006            @Override
1007            public boolean isStaged() {
1008                    return _group.isStaged();
1009            }
1010    
1011            @Override
1012            public boolean isStagedPortlet(java.lang.String portletId) {
1013                    return _group.isStagedPortlet(portletId);
1014            }
1015    
1016            @Override
1017            public boolean isStagedRemotely() {
1018                    return _group.isStagedRemotely();
1019            }
1020    
1021            @Override
1022            public boolean isStagingGroup() {
1023                    return _group.isStagingGroup();
1024            }
1025    
1026            @Override
1027            public boolean isUser() {
1028                    return _group.isUser();
1029            }
1030    
1031            @Override
1032            public boolean isUserGroup() {
1033                    return _group.isUserGroup();
1034            }
1035    
1036            @Override
1037            public boolean isUserPersonalSite() {
1038                    return _group.isUserPersonalSite();
1039            }
1040    
1041            @Override
1042            public void persist() {
1043                    _group.persist();
1044            }
1045    
1046            @Override
1047            public void prepareLocalizedFieldsForImport()
1048                    throws com.liferay.portal.LocaleException {
1049                    _group.prepareLocalizedFieldsForImport();
1050            }
1051    
1052            @Override
1053            public void prepareLocalizedFieldsForImport(
1054                    java.util.Locale defaultImportLocale)
1055                    throws com.liferay.portal.LocaleException {
1056                    _group.prepareLocalizedFieldsForImport(defaultImportLocale);
1057            }
1058    
1059            /**
1060            * Sets whether this group is active.
1061            *
1062            * @param active the active of this group
1063            */
1064            @Override
1065            public void setActive(boolean active) {
1066                    _group.setActive(active);
1067            }
1068    
1069            @Override
1070            public void setCachedModel(boolean cachedModel) {
1071                    _group.setCachedModel(cachedModel);
1072            }
1073    
1074            @Override
1075            public void setClassName(java.lang.String className) {
1076                    _group.setClassName(className);
1077            }
1078    
1079            /**
1080            * Sets the class name ID of this group.
1081            *
1082            * @param classNameId the class name ID of this group
1083            */
1084            @Override
1085            public void setClassNameId(long classNameId) {
1086                    _group.setClassNameId(classNameId);
1087            }
1088    
1089            /**
1090            * Sets the class p k of this group.
1091            *
1092            * @param classPK the class p k of this group
1093            */
1094            @Override
1095            public void setClassPK(long classPK) {
1096                    _group.setClassPK(classPK);
1097            }
1098    
1099            /**
1100            * Sets the company ID of this group.
1101            *
1102            * @param companyId the company ID of this group
1103            */
1104            @Override
1105            public void setCompanyId(long companyId) {
1106                    _group.setCompanyId(companyId);
1107            }
1108    
1109            /**
1110            * Sets the creator user ID of this group.
1111            *
1112            * @param creatorUserId the creator user ID of this group
1113            */
1114            @Override
1115            public void setCreatorUserId(long creatorUserId) {
1116                    _group.setCreatorUserId(creatorUserId);
1117            }
1118    
1119            /**
1120            * Sets the creator user uuid of this group.
1121            *
1122            * @param creatorUserUuid the creator user uuid of this group
1123            */
1124            @Override
1125            public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
1126                    _group.setCreatorUserUuid(creatorUserUuid);
1127            }
1128    
1129            /**
1130            * Sets the description of this group.
1131            *
1132            * @param description the description of this group
1133            */
1134            @Override
1135            public void setDescription(java.lang.String description) {
1136                    _group.setDescription(description);
1137            }
1138    
1139            /**
1140            * Sets the localized description of this group in the language.
1141            *
1142            * @param description the localized description of this group
1143            * @param locale the locale of the language
1144            */
1145            @Override
1146            public void setDescription(java.lang.String description,
1147                    java.util.Locale locale) {
1148                    _group.setDescription(description, locale);
1149            }
1150    
1151            /**
1152            * Sets the localized description of this group in the language, and sets the default locale.
1153            *
1154            * @param description the localized description of this group
1155            * @param locale the locale of the language
1156            * @param defaultLocale the default locale
1157            */
1158            @Override
1159            public void setDescription(java.lang.String description,
1160                    java.util.Locale locale, java.util.Locale defaultLocale) {
1161                    _group.setDescription(description, locale, defaultLocale);
1162            }
1163    
1164            @Override
1165            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
1166                    _group.setDescriptionCurrentLanguageId(languageId);
1167            }
1168    
1169            /**
1170            * Sets the localized descriptions of this group from the map of locales and localized descriptions.
1171            *
1172            * @param descriptionMap the locales and localized descriptions of this group
1173            */
1174            @Override
1175            public void setDescriptionMap(
1176                    Map<java.util.Locale, java.lang.String> descriptionMap) {
1177                    _group.setDescriptionMap(descriptionMap);
1178            }
1179    
1180            /**
1181            * Sets the localized descriptions of this group from the map of locales and localized descriptions, and sets the default locale.
1182            *
1183            * @param descriptionMap the locales and localized descriptions of this group
1184            * @param defaultLocale the default locale
1185            */
1186            @Override
1187            public void setDescriptionMap(
1188                    Map<java.util.Locale, java.lang.String> descriptionMap,
1189                    java.util.Locale defaultLocale) {
1190                    _group.setDescriptionMap(descriptionMap, defaultLocale);
1191            }
1192    
1193            @Override
1194            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
1195                    _group.setExpandoBridgeAttributes(baseModel);
1196            }
1197    
1198            @Override
1199            public void setExpandoBridgeAttributes(
1200                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1201                    _group.setExpandoBridgeAttributes(expandoBridge);
1202            }
1203    
1204            @Override
1205            public void setExpandoBridgeAttributes(
1206                    com.liferay.portal.service.ServiceContext serviceContext) {
1207                    _group.setExpandoBridgeAttributes(serviceContext);
1208            }
1209    
1210            /**
1211            * Sets the friendly u r l of this group.
1212            *
1213            * @param friendlyURL the friendly u r l of this group
1214            */
1215            @Override
1216            public void setFriendlyURL(java.lang.String friendlyURL) {
1217                    _group.setFriendlyURL(friendlyURL);
1218            }
1219    
1220            /**
1221            * Sets the group ID of this group.
1222            *
1223            * @param groupId the group ID of this group
1224            */
1225            @Override
1226            public void setGroupId(long groupId) {
1227                    _group.setGroupId(groupId);
1228            }
1229    
1230            /**
1231            * Sets the group key of this group.
1232            *
1233            * @param groupKey the group key of this group
1234            */
1235            @Override
1236            public void setGroupKey(java.lang.String groupKey) {
1237                    _group.setGroupKey(groupKey);
1238            }
1239    
1240            /**
1241            * Sets whether this group is inherit content.
1242            *
1243            * @param inheritContent the inherit content of this group
1244            */
1245            @Override
1246            public void setInheritContent(boolean inheritContent) {
1247                    _group.setInheritContent(inheritContent);
1248            }
1249    
1250            /**
1251            * Sets the live group ID of this group.
1252            *
1253            * @param liveGroupId the live group ID of this group
1254            */
1255            @Override
1256            public void setLiveGroupId(long liveGroupId) {
1257                    _group.setLiveGroupId(liveGroupId);
1258            }
1259    
1260            /**
1261            * Sets whether this group is manual membership.
1262            *
1263            * @param manualMembership the manual membership of this group
1264            */
1265            @Override
1266            public void setManualMembership(boolean manualMembership) {
1267                    _group.setManualMembership(manualMembership);
1268            }
1269    
1270            /**
1271            * Sets the membership restriction of this group.
1272            *
1273            * @param membershipRestriction the membership restriction of this group
1274            */
1275            @Override
1276            public void setMembershipRestriction(int membershipRestriction) {
1277                    _group.setMembershipRestriction(membershipRestriction);
1278            }
1279    
1280            /**
1281            * Sets the mvcc version of this group.
1282            *
1283            * @param mvccVersion the mvcc version of this group
1284            */
1285            @Override
1286            public void setMvccVersion(long mvccVersion) {
1287                    _group.setMvccVersion(mvccVersion);
1288            }
1289    
1290            /**
1291            * Sets the name of this group.
1292            *
1293            * @param name the name of this group
1294            */
1295            @Override
1296            public void setName(java.lang.String name) {
1297                    _group.setName(name);
1298            }
1299    
1300            /**
1301            * Sets the localized name of this group in the language.
1302            *
1303            * @param name the localized name of this group
1304            * @param locale the locale of the language
1305            */
1306            @Override
1307            public void setName(java.lang.String name, java.util.Locale locale) {
1308                    _group.setName(name, locale);
1309            }
1310    
1311            /**
1312            * Sets the localized name of this group in the language, and sets the default locale.
1313            *
1314            * @param name the localized name of this group
1315            * @param locale the locale of the language
1316            * @param defaultLocale the default locale
1317            */
1318            @Override
1319            public void setName(java.lang.String name, java.util.Locale locale,
1320                    java.util.Locale defaultLocale) {
1321                    _group.setName(name, locale, defaultLocale);
1322            }
1323    
1324            @Override
1325            public void setNameCurrentLanguageId(java.lang.String languageId) {
1326                    _group.setNameCurrentLanguageId(languageId);
1327            }
1328    
1329            /**
1330            * Sets the localized names of this group from the map of locales and localized names.
1331            *
1332            * @param nameMap the locales and localized names of this group
1333            */
1334            @Override
1335            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
1336                    _group.setNameMap(nameMap);
1337            }
1338    
1339            /**
1340            * Sets the localized names of this group from the map of locales and localized names, and sets the default locale.
1341            *
1342            * @param nameMap the locales and localized names of this group
1343            * @param defaultLocale the default locale
1344            */
1345            @Override
1346            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
1347                    java.util.Locale defaultLocale) {
1348                    _group.setNameMap(nameMap, defaultLocale);
1349            }
1350    
1351            @Override
1352            public void setNew(boolean n) {
1353                    _group.setNew(n);
1354            }
1355    
1356            /**
1357            * Sets the parent group ID of this group.
1358            *
1359            * @param parentGroupId the parent group ID of this group
1360            */
1361            @Override
1362            public void setParentGroupId(long parentGroupId) {
1363                    _group.setParentGroupId(parentGroupId);
1364            }
1365    
1366            /**
1367            * Sets the primary key of this group.
1368            *
1369            * @param primaryKey the primary key of this group
1370            */
1371            @Override
1372            public void setPrimaryKey(long primaryKey) {
1373                    _group.setPrimaryKey(primaryKey);
1374            }
1375    
1376            @Override
1377            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1378                    _group.setPrimaryKeyObj(primaryKeyObj);
1379            }
1380    
1381            /**
1382            * Sets the remote staging group count of this group.
1383            *
1384            * @param remoteStagingGroupCount the remote staging group count of this group
1385            */
1386            @Override
1387            public void setRemoteStagingGroupCount(int remoteStagingGroupCount) {
1388                    _group.setRemoteStagingGroupCount(remoteStagingGroupCount);
1389            }
1390    
1391            /**
1392            * Sets whether this group is site.
1393            *
1394            * @param site the site of this group
1395            */
1396            @Override
1397            public void setSite(boolean site) {
1398                    _group.setSite(site);
1399            }
1400    
1401            /**
1402            * Sets the tree path of this group.
1403            *
1404            * @param treePath the tree path of this group
1405            */
1406            @Override
1407            public void setTreePath(java.lang.String treePath) {
1408                    _group.setTreePath(treePath);
1409            }
1410    
1411            /**
1412            * Sets the type of this group.
1413            *
1414            * @param type the type of this group
1415            */
1416            @Override
1417            public void setType(int type) {
1418                    _group.setType(type);
1419            }
1420    
1421            /**
1422            * Sets the type settings of this group.
1423            *
1424            * @param typeSettings the type settings of this group
1425            */
1426            @Override
1427            public void setTypeSettings(java.lang.String typeSettings) {
1428                    _group.setTypeSettings(typeSettings);
1429            }
1430    
1431            @Override
1432            public void setTypeSettingsProperties(
1433                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
1434                    _group.setTypeSettingsProperties(typeSettingsProperties);
1435            }
1436    
1437            /**
1438            * Sets the uuid of this group.
1439            *
1440            * @param uuid the uuid of this group
1441            */
1442            @Override
1443            public void setUuid(java.lang.String uuid) {
1444                    _group.setUuid(uuid);
1445            }
1446    
1447            @Override
1448            public CacheModel<com.liferay.portal.model.Group> toCacheModel() {
1449                    return _group.toCacheModel();
1450            }
1451    
1452            @Override
1453            public com.liferay.portal.model.Group toEscapedModel() {
1454                    return new GroupWrapper(_group.toEscapedModel());
1455            }
1456    
1457            @Override
1458            public java.lang.String toString() {
1459                    return _group.toString();
1460            }
1461    
1462            @Override
1463            public com.liferay.portal.model.Group toUnescapedModel() {
1464                    return new GroupWrapper(_group.toUnescapedModel());
1465            }
1466    
1467            @Override
1468            public java.lang.String toXmlString() {
1469                    return _group.toXmlString();
1470            }
1471    
1472            @Override
1473            public void updateTreePath(java.lang.String treePath) {
1474                    _group.updateTreePath(treePath);
1475            }
1476    
1477            @Override
1478            public boolean equals(Object obj) {
1479                    if (this == obj) {
1480                            return true;
1481                    }
1482    
1483                    if (!(obj instanceof GroupWrapper)) {
1484                            return false;
1485                    }
1486    
1487                    GroupWrapper groupWrapper = (GroupWrapper)obj;
1488    
1489                    if (Validator.equals(_group, groupWrapper._group)) {
1490                            return true;
1491                    }
1492    
1493                    return false;
1494            }
1495    
1496            @Override
1497            public Group getWrappedModel() {
1498                    return _group;
1499            }
1500    
1501            @Override
1502            public boolean isEntityCacheEnabled() {
1503                    return _group.isEntityCacheEnabled();
1504            }
1505    
1506            @Override
1507            public boolean isFinderCacheEnabled() {
1508                    return _group.isFinderCacheEnabled();
1509            }
1510    
1511            @Override
1512            public void resetOriginalValues() {
1513                    _group.resetOriginalValues();
1514            }
1515    
1516            private final Group _group;
1517    }