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