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