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    /**
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, ModelWrapper<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 added by l d a p import of this user group.
149            *
150            * @return the added by l d a p import of this user group
151            */
152            public boolean getAddedByLDAPImport() {
153                    return _userGroup.getAddedByLDAPImport();
154            }
155    
156            /**
157            * Returns <code>true</code> if this user group is added by l d a p import.
158            *
159            * @return <code>true</code> if this user group is added by l d a p import; <code>false</code> otherwise
160            */
161            public boolean isAddedByLDAPImport() {
162                    return _userGroup.isAddedByLDAPImport();
163            }
164    
165            /**
166            * Sets whether this user group is added by l d a p import.
167            *
168            * @param addedByLDAPImport the added by l d a p import of this user group
169            */
170            public void setAddedByLDAPImport(boolean addedByLDAPImport) {
171                    _userGroup.setAddedByLDAPImport(addedByLDAPImport);
172            }
173    
174            public boolean isNew() {
175                    return _userGroup.isNew();
176            }
177    
178            public void setNew(boolean n) {
179                    _userGroup.setNew(n);
180            }
181    
182            public boolean isCachedModel() {
183                    return _userGroup.isCachedModel();
184            }
185    
186            public void setCachedModel(boolean cachedModel) {
187                    _userGroup.setCachedModel(cachedModel);
188            }
189    
190            public boolean isEscapedModel() {
191                    return _userGroup.isEscapedModel();
192            }
193    
194            public java.io.Serializable getPrimaryKeyObj() {
195                    return _userGroup.getPrimaryKeyObj();
196            }
197    
198            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
199                    _userGroup.setPrimaryKeyObj(primaryKeyObj);
200            }
201    
202            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
203                    return _userGroup.getExpandoBridge();
204            }
205    
206            public void setExpandoBridgeAttributes(
207                    com.liferay.portal.service.ServiceContext serviceContext) {
208                    _userGroup.setExpandoBridgeAttributes(serviceContext);
209            }
210    
211            @Override
212            public java.lang.Object clone() {
213                    return new UserGroupWrapper((UserGroup)_userGroup.clone());
214            }
215    
216            public int compareTo(com.liferay.portal.model.UserGroup userGroup) {
217                    return _userGroup.compareTo(userGroup);
218            }
219    
220            @Override
221            public int hashCode() {
222                    return _userGroup.hashCode();
223            }
224    
225            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroup> toCacheModel() {
226                    return _userGroup.toCacheModel();
227            }
228    
229            public com.liferay.portal.model.UserGroup toEscapedModel() {
230                    return new UserGroupWrapper(_userGroup.toEscapedModel());
231            }
232    
233            @Override
234            public java.lang.String toString() {
235                    return _userGroup.toString();
236            }
237    
238            public java.lang.String toXmlString() {
239                    return _userGroup.toXmlString();
240            }
241    
242            public void persist()
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    _userGroup.persist();
245            }
246    
247            public com.liferay.portal.model.Group getGroup()
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    return _userGroup.getGroup();
251            }
252    
253            public int getPrivateLayoutsPageCount()
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    return _userGroup.getPrivateLayoutsPageCount();
257            }
258    
259            public int getPublicLayoutsPageCount()
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    return _userGroup.getPublicLayoutsPageCount();
263            }
264    
265            public boolean hasPrivateLayouts()
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return _userGroup.hasPrivateLayouts();
269            }
270    
271            public boolean hasPublicLayouts()
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _userGroup.hasPublicLayouts();
275            }
276    
277            /**
278             * @deprecated Renamed to {@link #getWrappedModel}
279             */
280            public UserGroup getWrappedUserGroup() {
281                    return _userGroup;
282            }
283    
284            public UserGroup getWrappedModel() {
285                    return _userGroup;
286            }
287    
288            public void resetOriginalValues() {
289                    _userGroup.resetOriginalValues();
290            }
291    
292            private UserGroup _userGroup;
293    }