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