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            /**
556            * Returns the manual membership of this group.
557            *
558            * @return the manual membership of this group
559            */
560            @Override
561            public boolean getManualMembership() {
562                    return _group.getManualMembership();
563            }
564    
565            /**
566            * Returns the membership restriction of this group.
567            *
568            * @return the membership restriction of this group
569            */
570            @Override
571            public int getMembershipRestriction() {
572                    return _group.getMembershipRestriction();
573            }
574    
575            /**
576            * Returns the mvcc version of this group.
577            *
578            * @return the mvcc version of this group
579            */
580            @Override
581            public long getMvccVersion() {
582                    return _group.getMvccVersion();
583            }
584    
585            /**
586            * Returns the name of this group.
587            *
588            * @return the name of this group
589            */
590            @Override
591            public java.lang.String getName() {
592                    return _group.getName();
593            }
594    
595            /**
596            * Returns the localized name of this group in the language. Uses the default language if no localization exists for the requested language.
597            *
598            * @param languageId the ID of the language
599            * @return the localized name of this group
600            */
601            @Override
602            public java.lang.String getName(java.lang.String languageId) {
603                    return _group.getName(languageId);
604            }
605    
606            /**
607            * Returns the localized name of this group in the language, optionally using the default language if no localization exists for the requested language.
608            *
609            * @param languageId the ID of the language
610            * @param useDefault whether to use the default language if no localization exists for the requested language
611            * @return the localized name of this group
612            */
613            @Override
614            public java.lang.String getName(java.lang.String languageId,
615                    boolean useDefault) {
616                    return _group.getName(languageId, useDefault);
617            }
618    
619            /**
620            * Returns the localized name of this group in the language. Uses the default language if no localization exists for the requested language.
621            *
622            * @param locale the locale of the language
623            * @return the localized name of this group
624            */
625            @Override
626            public java.lang.String getName(java.util.Locale locale) {
627                    return _group.getName(locale);
628            }
629    
630            /**
631            * Returns the localized name of this group in the language, optionally using the default language if no localization exists for the requested language.
632            *
633            * @param locale the local of the language
634            * @param useDefault whether to use the default language if no localization exists for the requested language
635            * @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.
636            */
637            @Override
638            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
639                    return _group.getName(locale, useDefault);
640            }
641    
642            @Override
643            public java.lang.String getNameCurrentLanguageId() {
644                    return _group.getNameCurrentLanguageId();
645            }
646    
647            @Override
648            public java.lang.String getNameCurrentValue() {
649                    return _group.getNameCurrentValue();
650            }
651    
652            /**
653            * Returns a map of the locales and localized names of this group.
654            *
655            * @return the locales and localized names of this group
656            */
657            @Override
658            public Map<java.util.Locale, java.lang.String> getNameMap() {
659                    return _group.getNameMap();
660            }
661    
662            @Override
663            public long getOrganizationId() {
664                    return _group.getOrganizationId();
665            }
666    
667            @Override
668            public com.liferay.portal.model.Group getParentGroup()
669                    throws com.liferay.portal.kernel.exception.PortalException {
670                    return _group.getParentGroup();
671            }
672    
673            /**
674            * Returns the parent group ID of this group.
675            *
676            * @return the parent group ID of this group
677            */
678            @Override
679            public long getParentGroupId() {
680                    return _group.getParentGroupId();
681            }
682    
683            @Override
684            public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties() {
685                    return _group.getParentLiveGroupTypeSettingsProperties();
686            }
687    
688            @Override
689            public java.lang.String getPathFriendlyURL(boolean privateLayout,
690                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
691                    return _group.getPathFriendlyURL(privateLayout, themeDisplay);
692            }
693    
694            /**
695            * Returns the primary key of this group.
696            *
697            * @return the primary key of this group
698            */
699            @Override
700            public long getPrimaryKey() {
701                    return _group.getPrimaryKey();
702            }
703    
704            @Override
705            public java.io.Serializable getPrimaryKeyObj() {
706                    return _group.getPrimaryKeyObj();
707            }
708    
709            @Override
710            public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
711                    return _group.getPrivateLayoutSet();
712            }
713    
714            @Override
715            public int getPrivateLayoutsPageCount() {
716                    return _group.getPrivateLayoutsPageCount();
717            }
718    
719            @Override
720            public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
721                    return _group.getPublicLayoutSet();
722            }
723    
724            @Override
725            public int getPublicLayoutsPageCount() {
726                    return _group.getPublicLayoutsPageCount();
727            }
728    
729            @Override
730            public long getRemoteLiveGroupId() {
731                    return _group.getRemoteLiveGroupId();
732            }
733    
734            /**
735            * Returns the remote staging group count of this group.
736            *
737            * @return the remote staging group count of this group
738            */
739            @Override
740            public int getRemoteStagingGroupCount() {
741                    return _group.getRemoteStagingGroupCount();
742            }
743    
744            @Override
745            public java.lang.String getScopeDescriptiveName(
746                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
747                    throws com.liferay.portal.kernel.exception.PortalException {
748                    return _group.getScopeDescriptiveName(themeDisplay);
749            }
750    
751            @Override
752            public java.lang.String getScopeLabel(
753                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
754                    return _group.getScopeLabel(themeDisplay);
755            }
756    
757            /**
758            * Returns the site of this group.
759            *
760            * @return the site of this group
761            */
762            @Override
763            public boolean getSite() {
764                    return _group.getSite();
765            }
766    
767            @Override
768            public com.liferay.portal.model.Group getStagingGroup() {
769                    return _group.getStagingGroup();
770            }
771    
772            /**
773            * Returns the tree path of this group.
774            *
775            * @return the tree path of this group
776            */
777            @Override
778            public java.lang.String getTreePath() {
779                    return _group.getTreePath();
780            }
781    
782            /**
783            * Returns the type of this group.
784            *
785            * @return the type of this group
786            */
787            @Override
788            public int getType() {
789                    return _group.getType();
790            }
791    
792            @Override
793            public java.lang.String getTypeLabel() {
794                    return _group.getTypeLabel();
795            }
796    
797            /**
798            * Returns the type settings of this group.
799            *
800            * @return the type settings of this group
801            */
802            @Override
803            public java.lang.String getTypeSettings() {
804                    return _group.getTypeSettings();
805            }
806    
807            @Override
808            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
809                    return _group.getTypeSettingsProperties();
810            }
811    
812            @Override
813            public java.lang.String getTypeSettingsProperty(java.lang.String key) {
814                    return _group.getTypeSettingsProperty(key);
815            }
816    
817            @Override
818            public java.lang.String getUnambiguousName(java.lang.String name,
819                    java.util.Locale locale) {
820                    return _group.getUnambiguousName(name, locale);
821            }
822    
823            /**
824            * Returns the uuid of this group.
825            *
826            * @return the uuid of this group
827            */
828            @Override
829            public java.lang.String getUuid() {
830                    return _group.getUuid();
831            }
832    
833            @Override
834            public boolean hasAncestor(long groupId) {
835                    return _group.hasAncestor(groupId);
836            }
837    
838            @Override
839            public boolean hasLocalOrRemoteStagingGroup() {
840                    return _group.hasLocalOrRemoteStagingGroup();
841            }
842    
843            @Override
844            public boolean hasPrivateLayouts() {
845                    return _group.hasPrivateLayouts();
846            }
847    
848            @Override
849            public boolean hasPublicLayouts() {
850                    return _group.hasPublicLayouts();
851            }
852    
853            @Override
854            public boolean hasRemoteStagingGroup() {
855                    return _group.hasRemoteStagingGroup();
856            }
857    
858            @Override
859            public boolean hasStagingGroup() {
860                    return _group.hasStagingGroup();
861            }
862    
863            @Override
864            public int hashCode() {
865                    return _group.hashCode();
866            }
867    
868            /**
869            * Returns <code>true</code> if this group is active.
870            *
871            * @return <code>true</code> if this group is active; <code>false</code> otherwise
872            */
873            @Override
874            public boolean isActive() {
875                    return _group.isActive();
876            }
877    
878            @Override
879            public boolean isCachedModel() {
880                    return _group.isCachedModel();
881            }
882    
883            /**
884            * @deprecated As of 7.0.0, replaced by {@link #hasAncestor}
885            */
886            @Deprecated
887            @Override
888            public boolean isChild(long groupId) {
889                    return _group.isChild(groupId);
890            }
891    
892            /**
893            * @deprecated As of 6.1.0, renamed to {@link #isRegularSite}
894            */
895            @Deprecated
896            @Override
897            public boolean isCommunity() {
898                    return _group.isCommunity();
899            }
900    
901            @Override
902            public boolean isCompany() {
903                    return _group.isCompany();
904            }
905    
906            @Override
907            public boolean isCompanyStagingGroup() {
908                    return _group.isCompanyStagingGroup();
909            }
910    
911            @Override
912            public boolean isControlPanel() {
913                    return _group.isControlPanel();
914            }
915    
916            @Override
917            public boolean isEscapedModel() {
918                    return _group.isEscapedModel();
919            }
920    
921            @Override
922            public boolean isGuest() {
923                    return _group.isGuest();
924            }
925    
926            @Override
927            public boolean isInStagingPortlet(java.lang.String portletId) {
928                    return _group.isInStagingPortlet(portletId);
929            }
930    
931            /**
932            * Returns <code>true</code> if this group is inherit content.
933            *
934            * @return <code>true</code> if this group is inherit content; <code>false</code> otherwise
935            */
936            @Override
937            public boolean isInheritContent() {
938                    return _group.isInheritContent();
939            }
940    
941            @Override
942            public boolean isLayout() {
943                    return _group.isLayout();
944            }
945    
946            @Override
947            public boolean isLayoutPrototype() {
948                    return _group.isLayoutPrototype();
949            }
950    
951            @Override
952            public boolean isLayoutSetPrototype() {
953                    return _group.isLayoutSetPrototype();
954            }
955    
956            @Override
957            public boolean isLimitedToParentSiteMembers() {
958                    return _group.isLimitedToParentSiteMembers();
959            }
960    
961            /**
962            * Returns <code>true</code> if this group is manual membership.
963            *
964            * @return <code>true</code> if this group is manual membership; <code>false</code> otherwise
965            */
966            @Override
967            public boolean isManualMembership() {
968                    return _group.isManualMembership();
969            }
970    
971            @Override
972            public boolean isNew() {
973                    return _group.isNew();
974            }
975    
976            @Override
977            public boolean isOrganization() {
978                    return _group.isOrganization();
979            }
980    
981            @Override
982            public boolean isRegularSite() {
983                    return _group.isRegularSite();
984            }
985    
986            @Override
987            public boolean isRoot() {
988                    return _group.isRoot();
989            }
990    
991            @Override
992            public boolean isShowSite(
993                    com.liferay.portal.security.permission.PermissionChecker permissionChecker,
994                    boolean privateSite)
995                    throws com.liferay.portal.kernel.exception.PortalException {
996                    return _group.isShowSite(permissionChecker, privateSite);
997            }
998    
999            /**
1000            * Returns <code>true</code> if this group is site.
1001            *
1002            * @return <code>true</code> if this group is site; <code>false</code> otherwise
1003            */
1004            @Override
1005            public boolean isSite() {
1006                    return _group.isSite();
1007            }
1008    
1009            @Override
1010            public boolean isStaged() {
1011                    return _group.isStaged();
1012            }
1013    
1014            @Override
1015            public boolean isStagedPortlet(java.lang.String portletId) {
1016                    return _group.isStagedPortlet(portletId);
1017            }
1018    
1019            @Override
1020            public boolean isStagedRemotely() {
1021                    return _group.isStagedRemotely();
1022            }
1023    
1024            @Override
1025            public boolean isStagingGroup() {
1026                    return _group.isStagingGroup();
1027            }
1028    
1029            @Override
1030            public boolean isUser() {
1031                    return _group.isUser();
1032            }
1033    
1034            @Override
1035            public boolean isUserGroup() {
1036                    return _group.isUserGroup();
1037            }
1038    
1039            @Override
1040            public boolean isUserPersonalPanel() {
1041                    return _group.isUserPersonalPanel();
1042            }
1043    
1044            @Override
1045            public boolean isUserPersonalSite() {
1046                    return _group.isUserPersonalSite();
1047            }
1048    
1049            @Override
1050            public void persist() {
1051                    _group.persist();
1052            }
1053    
1054            @Override
1055            public void prepareLocalizedFieldsForImport()
1056                    throws com.liferay.portal.LocaleException {
1057                    _group.prepareLocalizedFieldsForImport();
1058            }
1059    
1060            @Override
1061            public void prepareLocalizedFieldsForImport(
1062                    java.util.Locale defaultImportLocale)
1063                    throws com.liferay.portal.LocaleException {
1064                    _group.prepareLocalizedFieldsForImport(defaultImportLocale);
1065            }
1066    
1067            /**
1068            * Sets whether this group is active.
1069            *
1070            * @param active the active of this group
1071            */
1072            @Override
1073            public void setActive(boolean active) {
1074                    _group.setActive(active);
1075            }
1076    
1077            @Override
1078            public void setCachedModel(boolean cachedModel) {
1079                    _group.setCachedModel(cachedModel);
1080            }
1081    
1082            @Override
1083            public void setClassName(java.lang.String className) {
1084                    _group.setClassName(className);
1085            }
1086    
1087            /**
1088            * Sets the class name ID of this group.
1089            *
1090            * @param classNameId the class name ID of this group
1091            */
1092            @Override
1093            public void setClassNameId(long classNameId) {
1094                    _group.setClassNameId(classNameId);
1095            }
1096    
1097            /**
1098            * Sets the class p k of this group.
1099            *
1100            * @param classPK the class p k of this group
1101            */
1102            @Override
1103            public void setClassPK(long classPK) {
1104                    _group.setClassPK(classPK);
1105            }
1106    
1107            /**
1108            * Sets the company ID of this group.
1109            *
1110            * @param companyId the company ID of this group
1111            */
1112            @Override
1113            public void setCompanyId(long companyId) {
1114                    _group.setCompanyId(companyId);
1115            }
1116    
1117            /**
1118            * Sets the creator user ID of this group.
1119            *
1120            * @param creatorUserId the creator user ID of this group
1121            */
1122            @Override
1123            public void setCreatorUserId(long creatorUserId) {
1124                    _group.setCreatorUserId(creatorUserId);
1125            }
1126    
1127            /**
1128            * Sets the creator user uuid of this group.
1129            *
1130            * @param creatorUserUuid the creator user uuid of this group
1131            */
1132            @Override
1133            public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
1134                    _group.setCreatorUserUuid(creatorUserUuid);
1135            }
1136    
1137            /**
1138            * Sets the description of this group.
1139            *
1140            * @param description the description of this group
1141            */
1142            @Override
1143            public void setDescription(java.lang.String description) {
1144                    _group.setDescription(description);
1145            }
1146    
1147            /**
1148            * Sets the localized description of this group in the language.
1149            *
1150            * @param description the localized description of this group
1151            * @param locale the locale of the language
1152            */
1153            @Override
1154            public void setDescription(java.lang.String description,
1155                    java.util.Locale locale) {
1156                    _group.setDescription(description, locale);
1157            }
1158    
1159            /**
1160            * Sets the localized description of this group in the language, and sets the default locale.
1161            *
1162            * @param description the localized description of this group
1163            * @param locale the locale of the language
1164            * @param defaultLocale the default locale
1165            */
1166            @Override
1167            public void setDescription(java.lang.String description,
1168                    java.util.Locale locale, java.util.Locale defaultLocale) {
1169                    _group.setDescription(description, locale, defaultLocale);
1170            }
1171    
1172            @Override
1173            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
1174                    _group.setDescriptionCurrentLanguageId(languageId);
1175            }
1176    
1177            /**
1178            * Sets the localized descriptions of this group from the map of locales and localized descriptions.
1179            *
1180            * @param descriptionMap the locales and localized descriptions of this group
1181            */
1182            @Override
1183            public void setDescriptionMap(
1184                    Map<java.util.Locale, java.lang.String> descriptionMap) {
1185                    _group.setDescriptionMap(descriptionMap);
1186            }
1187    
1188            /**
1189            * Sets the localized descriptions of this group from the map of locales and localized descriptions, and sets the default locale.
1190            *
1191            * @param descriptionMap the locales and localized descriptions of this group
1192            * @param defaultLocale the default locale
1193            */
1194            @Override
1195            public void setDescriptionMap(
1196                    Map<java.util.Locale, java.lang.String> descriptionMap,
1197                    java.util.Locale defaultLocale) {
1198                    _group.setDescriptionMap(descriptionMap, defaultLocale);
1199            }
1200    
1201            @Override
1202            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
1203                    _group.setExpandoBridgeAttributes(baseModel);
1204            }
1205    
1206            @Override
1207            public void setExpandoBridgeAttributes(
1208                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1209                    _group.setExpandoBridgeAttributes(expandoBridge);
1210            }
1211    
1212            @Override
1213            public void setExpandoBridgeAttributes(
1214                    com.liferay.portal.service.ServiceContext serviceContext) {
1215                    _group.setExpandoBridgeAttributes(serviceContext);
1216            }
1217    
1218            /**
1219            * Sets the friendly u r l of this group.
1220            *
1221            * @param friendlyURL the friendly u r l of this group
1222            */
1223            @Override
1224            public void setFriendlyURL(java.lang.String friendlyURL) {
1225                    _group.setFriendlyURL(friendlyURL);
1226            }
1227    
1228            /**
1229            * Sets the group ID of this group.
1230            *
1231            * @param groupId the group ID of this group
1232            */
1233            @Override
1234            public void setGroupId(long groupId) {
1235                    _group.setGroupId(groupId);
1236            }
1237    
1238            /**
1239            * Sets the group key of this group.
1240            *
1241            * @param groupKey the group key of this group
1242            */
1243            @Override
1244            public void setGroupKey(java.lang.String groupKey) {
1245                    _group.setGroupKey(groupKey);
1246            }
1247    
1248            /**
1249            * Sets whether this group is inherit content.
1250            *
1251            * @param inheritContent the inherit content of this group
1252            */
1253            @Override
1254            public void setInheritContent(boolean inheritContent) {
1255                    _group.setInheritContent(inheritContent);
1256            }
1257    
1258            /**
1259            * Sets the live group ID of this group.
1260            *
1261            * @param liveGroupId the live group ID of this group
1262            */
1263            @Override
1264            public void setLiveGroupId(long liveGroupId) {
1265                    _group.setLiveGroupId(liveGroupId);
1266            }
1267    
1268            /**
1269            * Sets whether this group is manual membership.
1270            *
1271            * @param manualMembership the manual membership of this group
1272            */
1273            @Override
1274            public void setManualMembership(boolean manualMembership) {
1275                    _group.setManualMembership(manualMembership);
1276            }
1277    
1278            /**
1279            * Sets the membership restriction of this group.
1280            *
1281            * @param membershipRestriction the membership restriction of this group
1282            */
1283            @Override
1284            public void setMembershipRestriction(int membershipRestriction) {
1285                    _group.setMembershipRestriction(membershipRestriction);
1286            }
1287    
1288            /**
1289            * Sets the mvcc version of this group.
1290            *
1291            * @param mvccVersion the mvcc version of this group
1292            */
1293            @Override
1294            public void setMvccVersion(long mvccVersion) {
1295                    _group.setMvccVersion(mvccVersion);
1296            }
1297    
1298            /**
1299            * Sets the name of this group.
1300            *
1301            * @param name the name of this group
1302            */
1303            @Override
1304            public void setName(java.lang.String name) {
1305                    _group.setName(name);
1306            }
1307    
1308            /**
1309            * Sets the localized name of this group in the language.
1310            *
1311            * @param name the localized name of this group
1312            * @param locale the locale of the language
1313            */
1314            @Override
1315            public void setName(java.lang.String name, java.util.Locale locale) {
1316                    _group.setName(name, locale);
1317            }
1318    
1319            /**
1320            * Sets the localized name of this group in the language, and sets the default locale.
1321            *
1322            * @param name the localized name of this group
1323            * @param locale the locale of the language
1324            * @param defaultLocale the default locale
1325            */
1326            @Override
1327            public void setName(java.lang.String name, java.util.Locale locale,
1328                    java.util.Locale defaultLocale) {
1329                    _group.setName(name, locale, defaultLocale);
1330            }
1331    
1332            @Override
1333            public void setNameCurrentLanguageId(java.lang.String languageId) {
1334                    _group.setNameCurrentLanguageId(languageId);
1335            }
1336    
1337            /**
1338            * Sets the localized names of this group from the map of locales and localized names.
1339            *
1340            * @param nameMap the locales and localized names of this group
1341            */
1342            @Override
1343            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
1344                    _group.setNameMap(nameMap);
1345            }
1346    
1347            /**
1348            * Sets the localized names of this group from the map of locales and localized names, and sets the default locale.
1349            *
1350            * @param nameMap the locales and localized names of this group
1351            * @param defaultLocale the default locale
1352            */
1353            @Override
1354            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
1355                    java.util.Locale defaultLocale) {
1356                    _group.setNameMap(nameMap, defaultLocale);
1357            }
1358    
1359            @Override
1360            public void setNew(boolean n) {
1361                    _group.setNew(n);
1362            }
1363    
1364            /**
1365            * Sets the parent group ID of this group.
1366            *
1367            * @param parentGroupId the parent group ID of this group
1368            */
1369            @Override
1370            public void setParentGroupId(long parentGroupId) {
1371                    _group.setParentGroupId(parentGroupId);
1372            }
1373    
1374            /**
1375            * Sets the primary key of this group.
1376            *
1377            * @param primaryKey the primary key of this group
1378            */
1379            @Override
1380            public void setPrimaryKey(long primaryKey) {
1381                    _group.setPrimaryKey(primaryKey);
1382            }
1383    
1384            @Override
1385            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1386                    _group.setPrimaryKeyObj(primaryKeyObj);
1387            }
1388    
1389            /**
1390            * Sets the remote staging group count of this group.
1391            *
1392            * @param remoteStagingGroupCount the remote staging group count of this group
1393            */
1394            @Override
1395            public void setRemoteStagingGroupCount(int remoteStagingGroupCount) {
1396                    _group.setRemoteStagingGroupCount(remoteStagingGroupCount);
1397            }
1398    
1399            /**
1400            * Sets whether this group is site.
1401            *
1402            * @param site the site of this group
1403            */
1404            @Override
1405            public void setSite(boolean site) {
1406                    _group.setSite(site);
1407            }
1408    
1409            /**
1410            * Sets the tree path of this group.
1411            *
1412            * @param treePath the tree path of this group
1413            */
1414            @Override
1415            public void setTreePath(java.lang.String treePath) {
1416                    _group.setTreePath(treePath);
1417            }
1418    
1419            /**
1420            * Sets the type of this group.
1421            *
1422            * @param type the type of this group
1423            */
1424            @Override
1425            public void setType(int type) {
1426                    _group.setType(type);
1427            }
1428    
1429            /**
1430            * Sets the type settings of this group.
1431            *
1432            * @param typeSettings the type settings of this group
1433            */
1434            @Override
1435            public void setTypeSettings(java.lang.String typeSettings) {
1436                    _group.setTypeSettings(typeSettings);
1437            }
1438    
1439            @Override
1440            public void setTypeSettingsProperties(
1441                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
1442                    _group.setTypeSettingsProperties(typeSettingsProperties);
1443            }
1444    
1445            /**
1446            * Sets the uuid of this group.
1447            *
1448            * @param uuid the uuid of this group
1449            */
1450            @Override
1451            public void setUuid(java.lang.String uuid) {
1452                    _group.setUuid(uuid);
1453            }
1454    
1455            @Override
1456            public CacheModel<com.liferay.portal.model.Group> toCacheModel() {
1457                    return _group.toCacheModel();
1458            }
1459    
1460            @Override
1461            public com.liferay.portal.model.Group toEscapedModel() {
1462                    return new GroupWrapper(_group.toEscapedModel());
1463            }
1464    
1465            @Override
1466            public java.lang.String toString() {
1467                    return _group.toString();
1468            }
1469    
1470            @Override
1471            public com.liferay.portal.model.Group toUnescapedModel() {
1472                    return new GroupWrapper(_group.toUnescapedModel());
1473            }
1474    
1475            @Override
1476            public java.lang.String toXmlString() {
1477                    return _group.toXmlString();
1478            }
1479    
1480            @Override
1481            public void updateTreePath(java.lang.String treePath) {
1482                    _group.updateTreePath(treePath);
1483            }
1484    
1485            @Override
1486            public boolean equals(Object obj) {
1487                    if (this == obj) {
1488                            return true;
1489                    }
1490    
1491                    if (!(obj instanceof GroupWrapper)) {
1492                            return false;
1493                    }
1494    
1495                    GroupWrapper groupWrapper = (GroupWrapper)obj;
1496    
1497                    if (Validator.equals(_group, groupWrapper._group)) {
1498                            return true;
1499                    }
1500    
1501                    return false;
1502            }
1503    
1504            /**
1505             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1506             */
1507            @Deprecated
1508            public Group getWrappedGroup() {
1509                    return _group;
1510            }
1511    
1512            @Override
1513            public Group getWrappedModel() {
1514                    return _group;
1515            }
1516    
1517            @Override
1518            public boolean isEntityCacheEnabled() {
1519                    return _group.isEntityCacheEnabled();
1520            }
1521    
1522            @Override
1523            public boolean isFinderCacheEnabled() {
1524                    return _group.isFinderCacheEnabled();
1525            }
1526    
1527            @Override
1528            public void resetOriginalValues() {
1529                    _group.resetOriginalValues();
1530            }
1531    
1532            private final Group _group;
1533    }