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