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