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