001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link UserGroup}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroup
024     * @generated
025     */
026    public class UserGroupWrapper implements UserGroup {
027            public UserGroupWrapper(UserGroup userGroup) {
028                    _userGroup = userGroup;
029            }
030    
031            public Class<?> getModelClass() {
032                    return UserGroup.class;
033            }
034    
035            public String getModelClassName() {
036                    return UserGroup.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this user group.
041            *
042            * @return the primary key of this user group
043            */
044            public long getPrimaryKey() {
045                    return _userGroup.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this user group.
050            *
051            * @param primaryKey the primary key of this user group
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _userGroup.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the user group ID of this user group.
059            *
060            * @return the user group ID of this user group
061            */
062            public long getUserGroupId() {
063                    return _userGroup.getUserGroupId();
064            }
065    
066            /**
067            * Sets the user group ID of this user group.
068            *
069            * @param userGroupId the user group ID of this user group
070            */
071            public void setUserGroupId(long userGroupId) {
072                    _userGroup.setUserGroupId(userGroupId);
073            }
074    
075            /**
076            * Returns the company ID of this user group.
077            *
078            * @return the company ID of this user group
079            */
080            public long getCompanyId() {
081                    return _userGroup.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this user group.
086            *
087            * @param companyId the company ID of this user group
088            */
089            public void setCompanyId(long companyId) {
090                    _userGroup.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the parent user group ID of this user group.
095            *
096            * @return the parent user group ID of this user group
097            */
098            public long getParentUserGroupId() {
099                    return _userGroup.getParentUserGroupId();
100            }
101    
102            /**
103            * Sets the parent user group ID of this user group.
104            *
105            * @param parentUserGroupId the parent user group ID of this user group
106            */
107            public void setParentUserGroupId(long parentUserGroupId) {
108                    _userGroup.setParentUserGroupId(parentUserGroupId);
109            }
110    
111            /**
112            * Returns the name of this user group.
113            *
114            * @return the name of this user group
115            */
116            public java.lang.String getName() {
117                    return _userGroup.getName();
118            }
119    
120            /**
121            * Sets the name of this user group.
122            *
123            * @param name the name of this user group
124            */
125            public void setName(java.lang.String name) {
126                    _userGroup.setName(name);
127            }
128    
129            /**
130            * Returns the description of this user group.
131            *
132            * @return the description of this user group
133            */
134            public java.lang.String getDescription() {
135                    return _userGroup.getDescription();
136            }
137    
138            /**
139            * Sets the description of this user group.
140            *
141            * @param description the description of this user group
142            */
143            public void setDescription(java.lang.String description) {
144                    _userGroup.setDescription(description);
145            }
146    
147            /**
148            * Returns the public layout set prototype ID of this user group.
149            *
150            * @return the public layout set prototype ID of this user group
151            */
152            public long getPublicLayoutSetPrototypeId() {
153                    return _userGroup.getPublicLayoutSetPrototypeId();
154            }
155    
156            /**
157            * Sets the public layout set prototype ID of this user group.
158            *
159            * @param publicLayoutSetPrototypeId the public layout set prototype ID of this user group
160            */
161            public void setPublicLayoutSetPrototypeId(long publicLayoutSetPrototypeId) {
162                    _userGroup.setPublicLayoutSetPrototypeId(publicLayoutSetPrototypeId);
163            }
164    
165            /**
166            * Returns the private layout set prototype ID of this user group.
167            *
168            * @return the private layout set prototype ID of this user group
169            */
170            public long getPrivateLayoutSetPrototypeId() {
171                    return _userGroup.getPrivateLayoutSetPrototypeId();
172            }
173    
174            /**
175            * Sets the private layout set prototype ID of this user group.
176            *
177            * @param privateLayoutSetPrototypeId the private layout set prototype ID of this user group
178            */
179            public void setPrivateLayoutSetPrototypeId(long privateLayoutSetPrototypeId) {
180                    _userGroup.setPrivateLayoutSetPrototypeId(privateLayoutSetPrototypeId);
181            }
182    
183            /**
184            * Returns the added by l d a p import of this user group.
185            *
186            * @return the added by l d a p import of this user group
187            */
188            public boolean getAddedByLDAPImport() {
189                    return _userGroup.getAddedByLDAPImport();
190            }
191    
192            /**
193            * Returns <code>true</code> if this user group is added by l d a p import.
194            *
195            * @return <code>true</code> if this user group is added by l d a p import; <code>false</code> otherwise
196            */
197            public boolean isAddedByLDAPImport() {
198                    return _userGroup.isAddedByLDAPImport();
199            }
200    
201            /**
202            * Sets whether this user group is added by l d a p import.
203            *
204            * @param addedByLDAPImport the added by l d a p import of this user group
205            */
206            public void setAddedByLDAPImport(boolean addedByLDAPImport) {
207                    _userGroup.setAddedByLDAPImport(addedByLDAPImport);
208            }
209    
210            public boolean isNew() {
211                    return _userGroup.isNew();
212            }
213    
214            public void setNew(boolean n) {
215                    _userGroup.setNew(n);
216            }
217    
218            public boolean isCachedModel() {
219                    return _userGroup.isCachedModel();
220            }
221    
222            public void setCachedModel(boolean cachedModel) {
223                    _userGroup.setCachedModel(cachedModel);
224            }
225    
226            public boolean isEscapedModel() {
227                    return _userGroup.isEscapedModel();
228            }
229    
230            public java.io.Serializable getPrimaryKeyObj() {
231                    return _userGroup.getPrimaryKeyObj();
232            }
233    
234            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
235                    _userGroup.setPrimaryKeyObj(primaryKeyObj);
236            }
237    
238            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
239                    return _userGroup.getExpandoBridge();
240            }
241    
242            public void setExpandoBridgeAttributes(
243                    com.liferay.portal.service.ServiceContext serviceContext) {
244                    _userGroup.setExpandoBridgeAttributes(serviceContext);
245            }
246    
247            @Override
248            public java.lang.Object clone() {
249                    return new UserGroupWrapper((UserGroup)_userGroup.clone());
250            }
251    
252            public int compareTo(com.liferay.portal.model.UserGroup userGroup) {
253                    return _userGroup.compareTo(userGroup);
254            }
255    
256            @Override
257            public int hashCode() {
258                    return _userGroup.hashCode();
259            }
260    
261            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroup> toCacheModel() {
262                    return _userGroup.toCacheModel();
263            }
264    
265            public com.liferay.portal.model.UserGroup toEscapedModel() {
266                    return new UserGroupWrapper(_userGroup.toEscapedModel());
267            }
268    
269            @Override
270            public java.lang.String toString() {
271                    return _userGroup.toString();
272            }
273    
274            public java.lang.String toXmlString() {
275                    return _userGroup.toXmlString();
276            }
277    
278            public void persist()
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    _userGroup.persist();
281            }
282    
283            public com.liferay.portal.model.Group getGroup()
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return _userGroup.getGroup();
287            }
288    
289            public int getPrivateLayoutsPageCount()
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _userGroup.getPrivateLayoutsPageCount();
293            }
294    
295            public boolean hasPrivateLayouts()
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    return _userGroup.hasPrivateLayouts();
299            }
300    
301            public int getPublicLayoutsPageCount()
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _userGroup.getPublicLayoutsPageCount();
305            }
306    
307            public boolean hasPublicLayouts()
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    return _userGroup.hasPublicLayouts();
311            }
312    
313            public UserGroup getWrappedUserGroup() {
314                    return _userGroup;
315            }
316    
317            public void resetOriginalValues() {
318                    _userGroup.resetOriginalValues();
319            }
320    
321            private UserGroup _userGroup;
322    }