001    /**
002     * Copyright (c) 2000-2012 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 java.util.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link Group}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       Group
027     * @generated
028     */
029    public class GroupWrapper implements Group, ModelWrapper<Group> {
030            public GroupWrapper(Group group) {
031                    _group = group;
032            }
033    
034            public Class<?> getModelClass() {
035                    return Group.class;
036            }
037    
038            public String getModelClassName() {
039                    return Group.class.getName();
040            }
041    
042            public Map<String, Object> getModelAttributes() {
043                    Map<String, Object> attributes = new HashMap<String, Object>();
044    
045                    attributes.put("groupId", getGroupId());
046                    attributes.put("companyId", getCompanyId());
047                    attributes.put("creatorUserId", getCreatorUserId());
048                    attributes.put("classNameId", getClassNameId());
049                    attributes.put("classPK", getClassPK());
050                    attributes.put("parentGroupId", getParentGroupId());
051                    attributes.put("liveGroupId", getLiveGroupId());
052                    attributes.put("treePath", getTreePath());
053                    attributes.put("name", getName());
054                    attributes.put("description", getDescription());
055                    attributes.put("type", getType());
056                    attributes.put("typeSettings", getTypeSettings());
057                    attributes.put("friendlyURL", getFriendlyURL());
058                    attributes.put("site", getSite());
059                    attributes.put("active", getActive());
060    
061                    return attributes;
062            }
063    
064            public void setModelAttributes(Map<String, Object> attributes) {
065                    Long groupId = (Long)attributes.get("groupId");
066    
067                    if (groupId != null) {
068                            setGroupId(groupId);
069                    }
070    
071                    Long companyId = (Long)attributes.get("companyId");
072    
073                    if (companyId != null) {
074                            setCompanyId(companyId);
075                    }
076    
077                    Long creatorUserId = (Long)attributes.get("creatorUserId");
078    
079                    if (creatorUserId != null) {
080                            setCreatorUserId(creatorUserId);
081                    }
082    
083                    Long classNameId = (Long)attributes.get("classNameId");
084    
085                    if (classNameId != null) {
086                            setClassNameId(classNameId);
087                    }
088    
089                    Long classPK = (Long)attributes.get("classPK");
090    
091                    if (classPK != null) {
092                            setClassPK(classPK);
093                    }
094    
095                    Long parentGroupId = (Long)attributes.get("parentGroupId");
096    
097                    if (parentGroupId != null) {
098                            setParentGroupId(parentGroupId);
099                    }
100    
101                    Long liveGroupId = (Long)attributes.get("liveGroupId");
102    
103                    if (liveGroupId != null) {
104                            setLiveGroupId(liveGroupId);
105                    }
106    
107                    String treePath = (String)attributes.get("treePath");
108    
109                    if (treePath != null) {
110                            setTreePath(treePath);
111                    }
112    
113                    String name = (String)attributes.get("name");
114    
115                    if (name != null) {
116                            setName(name);
117                    }
118    
119                    String description = (String)attributes.get("description");
120    
121                    if (description != null) {
122                            setDescription(description);
123                    }
124    
125                    Integer type = (Integer)attributes.get("type");
126    
127                    if (type != null) {
128                            setType(type);
129                    }
130    
131                    String typeSettings = (String)attributes.get("typeSettings");
132    
133                    if (typeSettings != null) {
134                            setTypeSettings(typeSettings);
135                    }
136    
137                    String friendlyURL = (String)attributes.get("friendlyURL");
138    
139                    if (friendlyURL != null) {
140                            setFriendlyURL(friendlyURL);
141                    }
142    
143                    Boolean site = (Boolean)attributes.get("site");
144    
145                    if (site != null) {
146                            setSite(site);
147                    }
148    
149                    Boolean active = (Boolean)attributes.get("active");
150    
151                    if (active != null) {
152                            setActive(active);
153                    }
154            }
155    
156            /**
157            * Returns the primary key of this group.
158            *
159            * @return the primary key of this group
160            */
161            public long getPrimaryKey() {
162                    return _group.getPrimaryKey();
163            }
164    
165            /**
166            * Sets the primary key of this group.
167            *
168            * @param primaryKey the primary key of this group
169            */
170            public void setPrimaryKey(long primaryKey) {
171                    _group.setPrimaryKey(primaryKey);
172            }
173    
174            /**
175            * Returns the group ID of this group.
176            *
177            * @return the group ID of this group
178            */
179            public long getGroupId() {
180                    return _group.getGroupId();
181            }
182    
183            /**
184            * Sets the group ID of this group.
185            *
186            * @param groupId the group ID of this group
187            */
188            public void setGroupId(long groupId) {
189                    _group.setGroupId(groupId);
190            }
191    
192            /**
193            * Returns the company ID of this group.
194            *
195            * @return the company ID of this group
196            */
197            public long getCompanyId() {
198                    return _group.getCompanyId();
199            }
200    
201            /**
202            * Sets the company ID of this group.
203            *
204            * @param companyId the company ID of this group
205            */
206            public void setCompanyId(long companyId) {
207                    _group.setCompanyId(companyId);
208            }
209    
210            /**
211            * Returns the creator user ID of this group.
212            *
213            * @return the creator user ID of this group
214            */
215            public long getCreatorUserId() {
216                    return _group.getCreatorUserId();
217            }
218    
219            /**
220            * Sets the creator user ID of this group.
221            *
222            * @param creatorUserId the creator user ID of this group
223            */
224            public void setCreatorUserId(long creatorUserId) {
225                    _group.setCreatorUserId(creatorUserId);
226            }
227    
228            /**
229            * Returns the creator user uuid of this group.
230            *
231            * @return the creator user uuid of this group
232            * @throws SystemException if a system exception occurred
233            */
234            public java.lang.String getCreatorUserUuid()
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _group.getCreatorUserUuid();
237            }
238    
239            /**
240            * Sets the creator user uuid of this group.
241            *
242            * @param creatorUserUuid the creator user uuid of this group
243            */
244            public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
245                    _group.setCreatorUserUuid(creatorUserUuid);
246            }
247    
248            /**
249            * Returns the fully qualified class name of this group.
250            *
251            * @return the fully qualified class name of this group
252            */
253            public java.lang.String getClassName() {
254                    return _group.getClassName();
255            }
256    
257            public void setClassName(java.lang.String className) {
258                    _group.setClassName(className);
259            }
260    
261            /**
262            * Returns the class name ID of this group.
263            *
264            * @return the class name ID of this group
265            */
266            public long getClassNameId() {
267                    return _group.getClassNameId();
268            }
269    
270            /**
271            * Sets the class name ID of this group.
272            *
273            * @param classNameId the class name ID of this group
274            */
275            public void setClassNameId(long classNameId) {
276                    _group.setClassNameId(classNameId);
277            }
278    
279            /**
280            * Returns the class p k of this group.
281            *
282            * @return the class p k of this group
283            */
284            public long getClassPK() {
285                    return _group.getClassPK();
286            }
287    
288            /**
289            * Sets the class p k of this group.
290            *
291            * @param classPK the class p k of this group
292            */
293            public void setClassPK(long classPK) {
294                    _group.setClassPK(classPK);
295            }
296    
297            /**
298            * Returns the parent group ID of this group.
299            *
300            * @return the parent group ID of this group
301            */
302            public long getParentGroupId() {
303                    return _group.getParentGroupId();
304            }
305    
306            /**
307            * Sets the parent group ID of this group.
308            *
309            * @param parentGroupId the parent group ID of this group
310            */
311            public void setParentGroupId(long parentGroupId) {
312                    _group.setParentGroupId(parentGroupId);
313            }
314    
315            /**
316            * Returns the live group ID of this group.
317            *
318            * @return the live group ID of this group
319            */
320            public long getLiveGroupId() {
321                    return _group.getLiveGroupId();
322            }
323    
324            /**
325            * Sets the live group ID of this group.
326            *
327            * @param liveGroupId the live group ID of this group
328            */
329            public void setLiveGroupId(long liveGroupId) {
330                    _group.setLiveGroupId(liveGroupId);
331            }
332    
333            /**
334            * Returns the tree path of this group.
335            *
336            * @return the tree path of this group
337            */
338            public java.lang.String getTreePath() {
339                    return _group.getTreePath();
340            }
341    
342            /**
343            * Sets the tree path of this group.
344            *
345            * @param treePath the tree path of this group
346            */
347            public void setTreePath(java.lang.String treePath) {
348                    _group.setTreePath(treePath);
349            }
350    
351            /**
352            * Returns the name of this group.
353            *
354            * @return the name of this group
355            */
356            public java.lang.String getName() {
357                    return _group.getName();
358            }
359    
360            /**
361            * Sets the name of this group.
362            *
363            * @param name the name of this group
364            */
365            public void setName(java.lang.String name) {
366                    _group.setName(name);
367            }
368    
369            /**
370            * Returns the description of this group.
371            *
372            * @return the description of this group
373            */
374            public java.lang.String getDescription() {
375                    return _group.getDescription();
376            }
377    
378            /**
379            * Sets the description of this group.
380            *
381            * @param description the description of this group
382            */
383            public void setDescription(java.lang.String description) {
384                    _group.setDescription(description);
385            }
386    
387            /**
388            * Returns the type of this group.
389            *
390            * @return the type of this group
391            */
392            public int getType() {
393                    return _group.getType();
394            }
395    
396            /**
397            * Sets the type of this group.
398            *
399            * @param type the type of this group
400            */
401            public void setType(int type) {
402                    _group.setType(type);
403            }
404    
405            /**
406            * Returns the type settings of this group.
407            *
408            * @return the type settings of this group
409            */
410            public java.lang.String getTypeSettings() {
411                    return _group.getTypeSettings();
412            }
413    
414            /**
415            * Sets the type settings of this group.
416            *
417            * @param typeSettings the type settings of this group
418            */
419            public void setTypeSettings(java.lang.String typeSettings) {
420                    _group.setTypeSettings(typeSettings);
421            }
422    
423            /**
424            * Returns the friendly u r l of this group.
425            *
426            * @return the friendly u r l of this group
427            */
428            public java.lang.String getFriendlyURL() {
429                    return _group.getFriendlyURL();
430            }
431    
432            /**
433            * Sets the friendly u r l of this group.
434            *
435            * @param friendlyURL the friendly u r l of this group
436            */
437            public void setFriendlyURL(java.lang.String friendlyURL) {
438                    _group.setFriendlyURL(friendlyURL);
439            }
440    
441            /**
442            * Returns the site of this group.
443            *
444            * @return the site of this group
445            */
446            public boolean getSite() {
447                    return _group.getSite();
448            }
449    
450            /**
451            * Returns <code>true</code> if this group is site.
452            *
453            * @return <code>true</code> if this group is site; <code>false</code> otherwise
454            */
455            public boolean isSite() {
456                    return _group.isSite();
457            }
458    
459            /**
460            * Sets whether this group is site.
461            *
462            * @param site the site of this group
463            */
464            public void setSite(boolean site) {
465                    _group.setSite(site);
466            }
467    
468            /**
469            * Returns the active of this group.
470            *
471            * @return the active of this group
472            */
473            public boolean getActive() {
474                    return _group.getActive();
475            }
476    
477            /**
478            * Returns <code>true</code> if this group is active.
479            *
480            * @return <code>true</code> if this group is active; <code>false</code> otherwise
481            */
482            public boolean isActive() {
483                    return _group.isActive();
484            }
485    
486            /**
487            * Sets whether this group is active.
488            *
489            * @param active the active of this group
490            */
491            public void setActive(boolean active) {
492                    _group.setActive(active);
493            }
494    
495            public boolean isNew() {
496                    return _group.isNew();
497            }
498    
499            public void setNew(boolean n) {
500                    _group.setNew(n);
501            }
502    
503            public boolean isCachedModel() {
504                    return _group.isCachedModel();
505            }
506    
507            public void setCachedModel(boolean cachedModel) {
508                    _group.setCachedModel(cachedModel);
509            }
510    
511            public boolean isEscapedModel() {
512                    return _group.isEscapedModel();
513            }
514    
515            public java.io.Serializable getPrimaryKeyObj() {
516                    return _group.getPrimaryKeyObj();
517            }
518    
519            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
520                    _group.setPrimaryKeyObj(primaryKeyObj);
521            }
522    
523            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
524                    return _group.getExpandoBridge();
525            }
526    
527            public void setExpandoBridgeAttributes(
528                    com.liferay.portal.service.ServiceContext serviceContext) {
529                    _group.setExpandoBridgeAttributes(serviceContext);
530            }
531    
532            @Override
533            public java.lang.Object clone() {
534                    return new GroupWrapper((Group)_group.clone());
535            }
536    
537            public int compareTo(com.liferay.portal.model.Group group) {
538                    return _group.compareTo(group);
539            }
540    
541            @Override
542            public int hashCode() {
543                    return _group.hashCode();
544            }
545    
546            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Group> toCacheModel() {
547                    return _group.toCacheModel();
548            }
549    
550            public com.liferay.portal.model.Group toEscapedModel() {
551                    return new GroupWrapper(_group.toEscapedModel());
552            }
553    
554            public com.liferay.portal.model.Group toUnescapedModel() {
555                    return new GroupWrapper(_group.toUnescapedModel());
556            }
557    
558            @Override
559            public java.lang.String toString() {
560                    return _group.toString();
561            }
562    
563            public java.lang.String toXmlString() {
564                    return _group.toXmlString();
565            }
566    
567            public void persist()
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    _group.persist();
570            }
571    
572            public java.lang.String buildTreePath()
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException {
575                    return _group.buildTreePath();
576            }
577    
578            public java.util.List<com.liferay.portal.model.Group> getAncestors()
579                    throws com.liferay.portal.kernel.exception.PortalException,
580                            com.liferay.portal.kernel.exception.SystemException {
581                    return _group.getAncestors();
582            }
583    
584            public java.util.List<com.liferay.portal.model.Group> getChildren(
585                    boolean site)
586                    throws com.liferay.portal.kernel.exception.SystemException {
587                    return _group.getChildren(site);
588            }
589    
590            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
591                    boolean site, int start, int end)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return _group.getChildrenWithLayouts(site, start, end);
594            }
595    
596            public int getChildrenWithLayoutsCount(boolean site)
597                    throws com.liferay.portal.kernel.exception.SystemException {
598                    return _group.getChildrenWithLayoutsCount(site);
599            }
600    
601            public long getDefaultPrivatePlid() {
602                    return _group.getDefaultPrivatePlid();
603            }
604    
605            public long getDefaultPublicPlid() {
606                    return _group.getDefaultPublicPlid();
607            }
608    
609            public java.lang.String getDescriptiveName()
610                    throws com.liferay.portal.kernel.exception.PortalException,
611                            com.liferay.portal.kernel.exception.SystemException {
612                    return _group.getDescriptiveName();
613            }
614    
615            public java.lang.String getDescriptiveName(java.util.Locale locale)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    return _group.getDescriptiveName(locale);
619            }
620    
621            public java.lang.String getIconURL(
622                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
623                    return _group.getIconURL(themeDisplay);
624            }
625    
626            public com.liferay.portal.model.Group getLiveGroup() {
627                    return _group.getLiveGroup();
628            }
629    
630            public java.lang.String getLiveParentTypeSettingsProperty(
631                    java.lang.String key) {
632                    return _group.getLiveParentTypeSettingsProperty(key);
633            }
634    
635            public long getOrganizationId() {
636                    return _group.getOrganizationId();
637            }
638    
639            public com.liferay.portal.model.Group getParentGroup()
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    return _group.getParentGroup();
643            }
644    
645            public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties() {
646                    return _group.getParentLiveGroupTypeSettingsProperties();
647            }
648    
649            public java.lang.String getPathFriendlyURL(boolean privateLayout,
650                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
651                    return _group.getPathFriendlyURL(privateLayout, themeDisplay);
652            }
653    
654            public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
655                    return _group.getPrivateLayoutSet();
656            }
657    
658            public int getPrivateLayoutsPageCount() {
659                    return _group.getPrivateLayoutsPageCount();
660            }
661    
662            public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
663                    return _group.getPublicLayoutSet();
664            }
665    
666            public int getPublicLayoutsPageCount() {
667                    return _group.getPublicLayoutsPageCount();
668            }
669    
670            public com.liferay.portal.model.Group getStagingGroup() {
671                    return _group.getStagingGroup();
672            }
673    
674            public java.lang.String getTypeLabel() {
675                    return _group.getTypeLabel();
676            }
677    
678            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
679                    return _group.getTypeSettingsProperties();
680            }
681    
682            public java.lang.String getTypeSettingsProperty(java.lang.String key) {
683                    return _group.getTypeSettingsProperty(key);
684            }
685    
686            public boolean hasAncestor(long groupId) {
687                    return _group.hasAncestor(groupId);
688            }
689    
690            public boolean hasPrivateLayouts() {
691                    return _group.hasPrivateLayouts();
692            }
693    
694            public boolean hasPublicLayouts() {
695                    return _group.hasPublicLayouts();
696            }
697    
698            public boolean hasStagingGroup() {
699                    return _group.hasStagingGroup();
700            }
701    
702            /**
703            * @deprecated As of 6.1, renamed to {@link #isRegularSite}
704            */
705            public boolean isCommunity() {
706                    return _group.isCommunity();
707            }
708    
709            public boolean isCompany() {
710                    return _group.isCompany();
711            }
712    
713            public boolean isControlPanel() {
714                    return _group.isControlPanel();
715            }
716    
717            public boolean isGuest() {
718                    return _group.isGuest();
719            }
720    
721            public boolean isInStagingPortlet(java.lang.String portletId) {
722                    return _group.isInStagingPortlet(portletId);
723            }
724    
725            public boolean isLayout() {
726                    return _group.isLayout();
727            }
728    
729            public boolean isLayoutPrototype() {
730                    return _group.isLayoutPrototype();
731            }
732    
733            public boolean isLayoutSetPrototype() {
734                    return _group.isLayoutSetPrototype();
735            }
736    
737            public boolean isOrganization() {
738                    return _group.isOrganization();
739            }
740    
741            public boolean isRegularSite() {
742                    return _group.isRegularSite();
743            }
744    
745            public boolean isRoot() {
746                    return _group.isRoot();
747            }
748    
749            public boolean isShowSite(
750                    com.liferay.portal.security.permission.PermissionChecker permissionChecker,
751                    boolean privateSite)
752                    throws com.liferay.portal.kernel.exception.PortalException,
753                            com.liferay.portal.kernel.exception.SystemException {
754                    return _group.isShowSite(permissionChecker, privateSite);
755            }
756    
757            public boolean isStaged() {
758                    return _group.isStaged();
759            }
760    
761            public boolean isStagedPortlet(java.lang.String portletId) {
762                    return _group.isStagedPortlet(portletId);
763            }
764    
765            public boolean isStagedRemotely() {
766                    return _group.isStagedRemotely();
767            }
768    
769            public boolean isStagingGroup() {
770                    return _group.isStagingGroup();
771            }
772    
773            public boolean isUser() {
774                    return _group.isUser();
775            }
776    
777            public boolean isUserGroup() {
778                    return _group.isUserGroup();
779            }
780    
781            public boolean isUserPersonalSite() {
782                    return _group.isUserPersonalSite();
783            }
784    
785            public void setTypeSettingsProperties(
786                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
787                    _group.setTypeSettingsProperties(typeSettingsProperties);
788            }
789    
790            /**
791             * @deprecated Renamed to {@link #getWrappedModel}
792             */
793            public Group getWrappedGroup() {
794                    return _group;
795            }
796    
797            public Group getWrappedModel() {
798                    return _group;
799            }
800    
801            public void resetOriginalValues() {
802                    _group.resetOriginalValues();
803            }
804    
805            private Group _group;
806    }