001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
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("name", getName());
053 attributes.put("description", getDescription());
054 attributes.put("type", getType());
055 attributes.put("typeSettings", getTypeSettings());
056 attributes.put("friendlyURL", getFriendlyURL());
057 attributes.put("site", getSite());
058 attributes.put("active", getActive());
059
060 return attributes;
061 }
062
063 public void setModelAttributes(Map<String, Object> attributes) {
064 Long groupId = (Long)attributes.get("groupId");
065
066 if (groupId != null) {
067 setGroupId(groupId);
068 }
069
070 Long companyId = (Long)attributes.get("companyId");
071
072 if (companyId != null) {
073 setCompanyId(companyId);
074 }
075
076 Long creatorUserId = (Long)attributes.get("creatorUserId");
077
078 if (creatorUserId != null) {
079 setCreatorUserId(creatorUserId);
080 }
081
082 Long classNameId = (Long)attributes.get("classNameId");
083
084 if (classNameId != null) {
085 setClassNameId(classNameId);
086 }
087
088 Long classPK = (Long)attributes.get("classPK");
089
090 if (classPK != null) {
091 setClassPK(classPK);
092 }
093
094 Long parentGroupId = (Long)attributes.get("parentGroupId");
095
096 if (parentGroupId != null) {
097 setParentGroupId(parentGroupId);
098 }
099
100 Long liveGroupId = (Long)attributes.get("liveGroupId");
101
102 if (liveGroupId != null) {
103 setLiveGroupId(liveGroupId);
104 }
105
106 String name = (String)attributes.get("name");
107
108 if (name != null) {
109 setName(name);
110 }
111
112 String description = (String)attributes.get("description");
113
114 if (description != null) {
115 setDescription(description);
116 }
117
118 Integer type = (Integer)attributes.get("type");
119
120 if (type != null) {
121 setType(type);
122 }
123
124 String typeSettings = (String)attributes.get("typeSettings");
125
126 if (typeSettings != null) {
127 setTypeSettings(typeSettings);
128 }
129
130 String friendlyURL = (String)attributes.get("friendlyURL");
131
132 if (friendlyURL != null) {
133 setFriendlyURL(friendlyURL);
134 }
135
136 Boolean site = (Boolean)attributes.get("site");
137
138 if (site != null) {
139 setSite(site);
140 }
141
142 Boolean active = (Boolean)attributes.get("active");
143
144 if (active != null) {
145 setActive(active);
146 }
147 }
148
149
154 public long getPrimaryKey() {
155 return _group.getPrimaryKey();
156 }
157
158
163 public void setPrimaryKey(long primaryKey) {
164 _group.setPrimaryKey(primaryKey);
165 }
166
167
172 public long getGroupId() {
173 return _group.getGroupId();
174 }
175
176
181 public void setGroupId(long groupId) {
182 _group.setGroupId(groupId);
183 }
184
185
190 public long getCompanyId() {
191 return _group.getCompanyId();
192 }
193
194
199 public void setCompanyId(long companyId) {
200 _group.setCompanyId(companyId);
201 }
202
203
208 public long getCreatorUserId() {
209 return _group.getCreatorUserId();
210 }
211
212
217 public void setCreatorUserId(long creatorUserId) {
218 _group.setCreatorUserId(creatorUserId);
219 }
220
221
227 public java.lang.String getCreatorUserUuid()
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return _group.getCreatorUserUuid();
230 }
231
232
237 public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
238 _group.setCreatorUserUuid(creatorUserUuid);
239 }
240
241
246 public java.lang.String getClassName() {
247 return _group.getClassName();
248 }
249
250 public void setClassName(java.lang.String className) {
251 _group.setClassName(className);
252 }
253
254
259 public long getClassNameId() {
260 return _group.getClassNameId();
261 }
262
263
268 public void setClassNameId(long classNameId) {
269 _group.setClassNameId(classNameId);
270 }
271
272
277 public long getClassPK() {
278 return _group.getClassPK();
279 }
280
281
286 public void setClassPK(long classPK) {
287 _group.setClassPK(classPK);
288 }
289
290
295 public long getParentGroupId() {
296 return _group.getParentGroupId();
297 }
298
299
304 public void setParentGroupId(long parentGroupId) {
305 _group.setParentGroupId(parentGroupId);
306 }
307
308
313 public long getLiveGroupId() {
314 return _group.getLiveGroupId();
315 }
316
317
322 public void setLiveGroupId(long liveGroupId) {
323 _group.setLiveGroupId(liveGroupId);
324 }
325
326
331 public java.lang.String getName() {
332 return _group.getName();
333 }
334
335
340 public void setName(java.lang.String name) {
341 _group.setName(name);
342 }
343
344
349 public java.lang.String getDescription() {
350 return _group.getDescription();
351 }
352
353
358 public void setDescription(java.lang.String description) {
359 _group.setDescription(description);
360 }
361
362
367 public int getType() {
368 return _group.getType();
369 }
370
371
376 public void setType(int type) {
377 _group.setType(type);
378 }
379
380
385 public java.lang.String getTypeSettings() {
386 return _group.getTypeSettings();
387 }
388
389
394 public void setTypeSettings(java.lang.String typeSettings) {
395 _group.setTypeSettings(typeSettings);
396 }
397
398
403 public java.lang.String getFriendlyURL() {
404 return _group.getFriendlyURL();
405 }
406
407
412 public void setFriendlyURL(java.lang.String friendlyURL) {
413 _group.setFriendlyURL(friendlyURL);
414 }
415
416
421 public boolean getSite() {
422 return _group.getSite();
423 }
424
425
430 public boolean isSite() {
431 return _group.isSite();
432 }
433
434
439 public void setSite(boolean site) {
440 _group.setSite(site);
441 }
442
443
448 public boolean getActive() {
449 return _group.getActive();
450 }
451
452
457 public boolean isActive() {
458 return _group.isActive();
459 }
460
461
466 public void setActive(boolean active) {
467 _group.setActive(active);
468 }
469
470 public boolean isNew() {
471 return _group.isNew();
472 }
473
474 public void setNew(boolean n) {
475 _group.setNew(n);
476 }
477
478 public boolean isCachedModel() {
479 return _group.isCachedModel();
480 }
481
482 public void setCachedModel(boolean cachedModel) {
483 _group.setCachedModel(cachedModel);
484 }
485
486 public boolean isEscapedModel() {
487 return _group.isEscapedModel();
488 }
489
490 public java.io.Serializable getPrimaryKeyObj() {
491 return _group.getPrimaryKeyObj();
492 }
493
494 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
495 _group.setPrimaryKeyObj(primaryKeyObj);
496 }
497
498 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
499 return _group.getExpandoBridge();
500 }
501
502 public void setExpandoBridgeAttributes(
503 com.liferay.portal.service.ServiceContext serviceContext) {
504 _group.setExpandoBridgeAttributes(serviceContext);
505 }
506
507 @Override
508 public java.lang.Object clone() {
509 return new GroupWrapper((Group)_group.clone());
510 }
511
512 public int compareTo(com.liferay.portal.model.Group group) {
513 return _group.compareTo(group);
514 }
515
516 @Override
517 public int hashCode() {
518 return _group.hashCode();
519 }
520
521 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Group> toCacheModel() {
522 return _group.toCacheModel();
523 }
524
525 public com.liferay.portal.model.Group toEscapedModel() {
526 return new GroupWrapper(_group.toEscapedModel());
527 }
528
529 public com.liferay.portal.model.Group toUnescapedModel() {
530 return new GroupWrapper(_group.toUnescapedModel());
531 }
532
533 @Override
534 public java.lang.String toString() {
535 return _group.toString();
536 }
537
538 public java.lang.String toXmlString() {
539 return _group.toXmlString();
540 }
541
542 public void persist()
543 throws com.liferay.portal.kernel.exception.SystemException {
544 _group.persist();
545 }
546
547 public java.util.List<com.liferay.portal.model.Group> getAncestors()
548 throws com.liferay.portal.kernel.exception.PortalException,
549 com.liferay.portal.kernel.exception.SystemException {
550 return _group.getAncestors();
551 }
552
553 public java.util.List<com.liferay.portal.model.Group> getChildren(
554 boolean site)
555 throws com.liferay.portal.kernel.exception.SystemException {
556 return _group.getChildren(site);
557 }
558
559 public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
560 boolean site, int start, int end)
561 throws com.liferay.portal.kernel.exception.SystemException {
562 return _group.getChildrenWithLayouts(site, start, end);
563 }
564
565 public int getChildrenWithLayoutsCount(boolean site)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 return _group.getChildrenWithLayoutsCount(site);
568 }
569
570 public long getDefaultPrivatePlid() {
571 return _group.getDefaultPrivatePlid();
572 }
573
574 public long getDefaultPublicPlid() {
575 return _group.getDefaultPublicPlid();
576 }
577
578 public java.lang.String getDescriptiveName()
579 throws com.liferay.portal.kernel.exception.PortalException,
580 com.liferay.portal.kernel.exception.SystemException {
581 return _group.getDescriptiveName();
582 }
583
584 public java.lang.String getDescriptiveName(java.util.Locale locale)
585 throws com.liferay.portal.kernel.exception.PortalException,
586 com.liferay.portal.kernel.exception.SystemException {
587 return _group.getDescriptiveName(locale);
588 }
589
590 public com.liferay.portal.model.Group getLiveGroup() {
591 return _group.getLiveGroup();
592 }
593
594 public java.lang.String getLiveParentTypeSettingsProperty(
595 java.lang.String key) {
596 return _group.getLiveParentTypeSettingsProperty(key);
597 }
598
599 public long getOrganizationId() {
600 return _group.getOrganizationId();
601 }
602
603 public com.liferay.portal.model.Group getParentGroup()
604 throws com.liferay.portal.kernel.exception.PortalException,
605 com.liferay.portal.kernel.exception.SystemException {
606 return _group.getParentGroup();
607 }
608
609 public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties() {
610 return _group.getParentLiveGroupTypeSettingsProperties();
611 }
612
613 public java.lang.String getPathFriendlyURL(boolean privateLayout,
614 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
615 return _group.getPathFriendlyURL(privateLayout, themeDisplay);
616 }
617
618 public com.liferay.portal.model.LayoutSet getPrivateLayoutSet() {
619 return _group.getPrivateLayoutSet();
620 }
621
622 public int getPrivateLayoutsPageCount() {
623 return _group.getPrivateLayoutsPageCount();
624 }
625
626 public com.liferay.portal.model.LayoutSet getPublicLayoutSet() {
627 return _group.getPublicLayoutSet();
628 }
629
630 public int getPublicLayoutsPageCount() {
631 return _group.getPublicLayoutsPageCount();
632 }
633
634 public com.liferay.portal.model.Group getStagingGroup() {
635 return _group.getStagingGroup();
636 }
637
638 public java.lang.String getTypeLabel() {
639 return _group.getTypeLabel();
640 }
641
642 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
643 return _group.getTypeSettingsProperties();
644 }
645
646 public java.lang.String getTypeSettingsProperty(java.lang.String key) {
647 return _group.getTypeSettingsProperty(key);
648 }
649
650 public boolean hasPrivateLayouts() {
651 return _group.hasPrivateLayouts();
652 }
653
654 public boolean hasPublicLayouts() {
655 return _group.hasPublicLayouts();
656 }
657
658 public boolean hasStagingGroup() {
659 return _group.hasStagingGroup();
660 }
661
662
665 public boolean isCommunity() {
666 return _group.isCommunity();
667 }
668
669 public boolean isCompany() {
670 return _group.isCompany();
671 }
672
673 public boolean isControlPanel() {
674 return _group.isControlPanel();
675 }
676
677 public boolean isGuest() {
678 return _group.isGuest();
679 }
680
681 public boolean isInStagingPortlet(java.lang.String portletId) {
682 return _group.isInStagingPortlet(portletId);
683 }
684
685 public boolean isLayout() {
686 return _group.isLayout();
687 }
688
689 public boolean isLayoutPrototype() {
690 return _group.isLayoutPrototype();
691 }
692
693 public boolean isLayoutSetPrototype() {
694 return _group.isLayoutSetPrototype();
695 }
696
697 public boolean isOrganization() {
698 return _group.isOrganization();
699 }
700
701 public boolean isRegularSite() {
702 return _group.isRegularSite();
703 }
704
705 public boolean isRoot() {
706 return _group.isRoot();
707 }
708
709 public boolean isShowSite(
710 com.liferay.portal.security.permission.PermissionChecker permissionChecker,
711 boolean privateSite)
712 throws com.liferay.portal.kernel.exception.PortalException,
713 com.liferay.portal.kernel.exception.SystemException {
714 return _group.isShowSite(permissionChecker, privateSite);
715 }
716
717 public boolean isStaged() {
718 return _group.isStaged();
719 }
720
721 public boolean isStagedPortlet(java.lang.String portletId) {
722 return _group.isStagedPortlet(portletId);
723 }
724
725 public boolean isStagedRemotely() {
726 return _group.isStagedRemotely();
727 }
728
729 public boolean isStagingGroup() {
730 return _group.isStagingGroup();
731 }
732
733 public boolean isUser() {
734 return _group.isUser();
735 }
736
737 public boolean isUserGroup() {
738 return _group.isUserGroup();
739 }
740
741 public boolean isUserPersonalSite() {
742 return _group.isUserPersonalSite();
743 }
744
745 public void setTypeSettingsProperties(
746 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
747 _group.setTypeSettingsProperties(typeSettingsProperties);
748 }
749
750
753 public Group getWrappedGroup() {
754 return _group;
755 }
756
757 public Group getWrappedModel() {
758 return _group;
759 }
760
761 public void resetOriginalValues() {
762 _group.resetOriginalValues();
763 }
764
765 private Group _group;
766 }