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