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 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
153                    _userGroupRole.setEscapedModel(escapedModel);
154            }
155    
156            public java.io.Serializable getPrimaryKeyObj() {
157                    return _userGroupRole.getPrimaryKeyObj();
158            }
159    
160            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
161                    _userGroupRole.setPrimaryKeyObj(primaryKeyObj);
162            }
163    
164            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
165                    return _userGroupRole.getExpandoBridge();
166            }
167    
168            public void setExpandoBridgeAttributes(
169                    com.liferay.portal.service.ServiceContext serviceContext) {
170                    _userGroupRole.setExpandoBridgeAttributes(serviceContext);
171            }
172    
173            @Override
174            public java.lang.Object clone() {
175                    return new UserGroupRoleWrapper((UserGroupRole)_userGroupRole.clone());
176            }
177    
178            public int compareTo(com.liferay.portal.model.UserGroupRole userGroupRole) {
179                    return _userGroupRole.compareTo(userGroupRole);
180            }
181    
182            @Override
183            public int hashCode() {
184                    return _userGroupRole.hashCode();
185            }
186    
187            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserGroupRole> toCacheModel() {
188                    return _userGroupRole.toCacheModel();
189            }
190    
191            public com.liferay.portal.model.UserGroupRole toEscapedModel() {
192                    return new UserGroupRoleWrapper(_userGroupRole.toEscapedModel());
193            }
194    
195            @Override
196            public java.lang.String toString() {
197                    return _userGroupRole.toString();
198            }
199    
200            public java.lang.String toXmlString() {
201                    return _userGroupRole.toXmlString();
202            }
203    
204            public void persist()
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    _userGroupRole.persist();
207            }
208    
209            public com.liferay.portal.model.Group getGroup()
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return _userGroupRole.getGroup();
213            }
214    
215            public com.liferay.portal.model.Role getRole()
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    return _userGroupRole.getRole();
219            }
220    
221            public com.liferay.portal.model.User getUser()
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return _userGroupRole.getUser();
225            }
226    
227            public UserGroupRole getWrappedUserGroupRole() {
228                    return _userGroupRole;
229            }
230    
231            public void resetOriginalValues() {
232                    _userGroupRole.resetOriginalValues();
233            }
234    
235            private UserGroupRole _userGroupRole;
236    }