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