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