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