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 UserGroupRole}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserGroupRole
024     * @generated
025     */
026    public class UserGroupRoleWrapper implements UserGroupRole {
027            public UserGroupRoleWrapper(UserGroupRole userGroupRole) {
028                    _userGroupRole = userGroupRole;
029            }
030    
031            public Class<?> getModelClass() {
032                    return UserGroupRole.class;
033            }
034    
035            public String getModelClassName() {
036                    return UserGroupRole.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this user group role.
041            *
042            * @return the primary key of this user group role
043            */
044            public com.liferay.portal.service.persistence.UserGroupRolePK getPrimaryKey() {
045                    return _userGroupRole.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this user group role.
050            *
051            * @param primaryKey the primary key of this user group role
052            */
053            public void setPrimaryKey(
054                    com.liferay.portal.service.persistence.UserGroupRolePK primaryKey) {
055                    _userGroupRole.setPrimaryKey(primaryKey);
056            }
057    
058            /**
059            * Returns the user ID of this user group role.
060            *
061            * @return the user ID of this user group role
062            */
063            public long getUserId() {
064                    return _userGroupRole.getUserId();
065            }
066    
067            /**
068            * Sets the user ID of this user group role.
069            *
070            * @param userId the user ID of this user group role
071            */
072            public void setUserId(long userId) {
073                    _userGroupRole.setUserId(userId);
074            }
075    
076            /**
077            * Returns the user uuid of this user group role.
078            *
079            * @return the user uuid of this user group role
080            * @throws SystemException if a system exception occurred
081            */
082            public java.lang.String getUserUuid()
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _userGroupRole.getUserUuid();
085            }
086    
087            /**
088            * Sets the user uuid of this user group role.
089            *
090            * @param userUuid the user uuid of this user group role
091            */
092            public void setUserUuid(java.lang.String userUuid) {
093                    _userGroupRole.setUserUuid(userUuid);
094            }
095    
096            /**
097            * Returns the group ID of this user group role.
098            *
099            * @return the group ID of this user group role
100            */
101            public long getGroupId() {
102                    return _userGroupRole.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this user group role.
107            *
108            * @param groupId the group ID of this user group role
109            */
110            public void setGroupId(long groupId) {
111                    _userGroupRole.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the role ID of this user group role.
116            *
117            * @return the role ID of this user group role
118            */
119            public long getRoleId() {
120                    return _userGroupRole.getRoleId();
121            }
122    
123            /**
124            * Sets the role ID of this user group role.
125            *
126            * @param roleId the role ID of this user group role
127            */
128            public void setRoleId(long roleId) {
129                    _userGroupRole.setRoleId(roleId);
130            }
131    
132            public boolean isNew() {
133                    return _userGroupRole.isNew();
134            }
135    
136            public void setNew(boolean n) {
137                    _userGroupRole.setNew(n);
138            }
139    
140            public boolean isCachedModel() {
141                    return _userGroupRole.isCachedModel();
142            }
143    
144            public void setCachedModel(boolean cachedModel) {
145                    _userGroupRole.setCachedModel(cachedModel);
146            }
147    
148            public boolean isEscapedModel() {
149                    return _userGroupRole.isEscapedModel();
150            }
151    
152            public java.io.Serializable getPrimaryKeyObj() {
153                    return _userGroupRole.getPrimaryKeyObj();
154            }
155    
156            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
157                    _userGroupRole.setPrimaryKeyObj(primaryKeyObj);
158            }
159    
160            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
161                    return _userGroupRole.getExpandoBridge();
162            }
163    
164            public void setExpandoBridgeAttributes(
165                    com.liferay.portal.service.ServiceContext serviceContext) {
166                    _userGroupRole.setExpandoBridgeAttributes(serviceContext);
167            }
168    
169            @Override
170            public java.lang.Object clone() {
171                    return new UserGroupRoleWrapper((UserGroupRole)_userGroupRole.clone());
172            }
173    
174            public int compareTo(com.liferay.portal.model.UserGroupRole userGroupRole) {
175                    return _userGroupRole.compareTo(userGroupRole);
176            }
177    
178            @Override
179            public int hashCode() {
180                    return _userGroupRole.hashCode();
181            }
182    
183            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroupRole> toCacheModel() {
184                    return _userGroupRole.toCacheModel();
185            }
186    
187            public com.liferay.portal.model.UserGroupRole toEscapedModel() {
188                    return new UserGroupRoleWrapper(_userGroupRole.toEscapedModel());
189            }
190    
191            @Override
192            public java.lang.String toString() {
193                    return _userGroupRole.toString();
194            }
195    
196            public java.lang.String toXmlString() {
197                    return _userGroupRole.toXmlString();
198            }
199    
200            public void persist()
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    _userGroupRole.persist();
203            }
204    
205            public com.liferay.portal.model.Group getGroup()
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return _userGroupRole.getGroup();
209            }
210    
211            public com.liferay.portal.model.Role getRole()
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return _userGroupRole.getRole();
215            }
216    
217            public com.liferay.portal.model.User getUser()
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    return _userGroupRole.getUser();
221            }
222    
223            public UserGroupRole getWrappedUserGroupRole() {
224                    return _userGroupRole;
225            }
226    
227            public void resetOriginalValues() {
228                    _userGroupRole.resetOriginalValues();
229            }
230    
231            private UserGroupRole _userGroupRole;
232    }