001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Determines 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 void setEscapedModel(boolean escapedModel) {
195                    _userGroup.setEscapedModel(escapedModel);
196            }
197    
198            public java.io.Serializable getPrimaryKeyObj() {
199                    return _userGroup.getPrimaryKeyObj();
200            }
201    
202            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
203                    _userGroup.setPrimaryKeyObj(primaryKeyObj);
204            }
205    
206            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
207                    return _userGroup.getExpandoBridge();
208            }
209    
210            public void setExpandoBridgeAttributes(
211                    com.liferay.portal.service.ServiceContext serviceContext) {
212                    _userGroup.setExpandoBridgeAttributes(serviceContext);
213            }
214    
215            @Override
216            public java.lang.Object clone() {
217                    return new UserGroupWrapper((UserGroup)_userGroup.clone());
218            }
219    
220            public int compareTo(com.liferay.portal.model.UserGroup userGroup) {
221                    return _userGroup.compareTo(userGroup);
222            }
223    
224            @Override
225            public int hashCode() {
226                    return _userGroup.hashCode();
227            }
228    
229            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroup> toCacheModel() {
230                    return _userGroup.toCacheModel();
231            }
232    
233            public com.liferay.portal.model.UserGroup toEscapedModel() {
234                    return new UserGroupWrapper(_userGroup.toEscapedModel());
235            }
236    
237            @Override
238            public java.lang.String toString() {
239                    return _userGroup.toString();
240            }
241    
242            public java.lang.String toXmlString() {
243                    return _userGroup.toXmlString();
244            }
245    
246            public void persist()
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    _userGroup.persist();
249            }
250    
251            public com.liferay.portal.model.Group getGroup()
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    return _userGroup.getGroup();
255            }
256    
257            public int getPrivateLayoutsPageCount()
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _userGroup.getPrivateLayoutsPageCount();
261            }
262    
263            public boolean hasPrivateLayouts()
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    return _userGroup.hasPrivateLayouts();
267            }
268    
269            public int getPublicLayoutsPageCount()
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _userGroup.getPublicLayoutsPageCount();
273            }
274    
275            public boolean hasPublicLayouts()
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return _userGroup.hasPublicLayouts();
279            }
280    
281            public UserGroup getWrappedUserGroup() {
282                    return _userGroup;
283            }
284    
285            public void resetOriginalValues() {
286                    _userGroup.resetOriginalValues();
287            }
288    
289            private UserGroup _userGroup;
290    }