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