001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link Permission}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Permission
024     * @generated
025     */
026    public class PermissionWrapper implements Permission {
027            public PermissionWrapper(Permission permission) {
028                    _permission = permission;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Permission.class;
033            }
034    
035            public String getModelClassName() {
036                    return Permission.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this permission.
041            *
042            * @return the primary key of this permission
043            */
044            public long getPrimaryKey() {
045                    return _permission.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this permission
050            *
051            * @param primaryKey the primary key of this permission
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _permission.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the permission ID of this permission.
059            *
060            * @return the permission ID of this permission
061            */
062            public long getPermissionId() {
063                    return _permission.getPermissionId();
064            }
065    
066            /**
067            * Sets the permission ID of this permission.
068            *
069            * @param permissionId the permission ID of this permission
070            */
071            public void setPermissionId(long permissionId) {
072                    _permission.setPermissionId(permissionId);
073            }
074    
075            /**
076            * Gets the company ID of this permission.
077            *
078            * @return the company ID of this permission
079            */
080            public long getCompanyId() {
081                    return _permission.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this permission.
086            *
087            * @param companyId the company ID of this permission
088            */
089            public void setCompanyId(long companyId) {
090                    _permission.setCompanyId(companyId);
091            }
092    
093            /**
094            * Gets the action ID of this permission.
095            *
096            * @return the action ID of this permission
097            */
098            public java.lang.String getActionId() {
099                    return _permission.getActionId();
100            }
101    
102            /**
103            * Sets the action ID of this permission.
104            *
105            * @param actionId the action ID of this permission
106            */
107            public void setActionId(java.lang.String actionId) {
108                    _permission.setActionId(actionId);
109            }
110    
111            /**
112            * Gets the resource ID of this permission.
113            *
114            * @return the resource ID of this permission
115            */
116            public long getResourceId() {
117                    return _permission.getResourceId();
118            }
119    
120            /**
121            * Sets the resource ID of this permission.
122            *
123            * @param resourceId the resource ID of this permission
124            */
125            public void setResourceId(long resourceId) {
126                    _permission.setResourceId(resourceId);
127            }
128    
129            public boolean isNew() {
130                    return _permission.isNew();
131            }
132    
133            public void setNew(boolean n) {
134                    _permission.setNew(n);
135            }
136    
137            public boolean isCachedModel() {
138                    return _permission.isCachedModel();
139            }
140    
141            public void setCachedModel(boolean cachedModel) {
142                    _permission.setCachedModel(cachedModel);
143            }
144    
145            public boolean isEscapedModel() {
146                    return _permission.isEscapedModel();
147            }
148    
149            public void setEscapedModel(boolean escapedModel) {
150                    _permission.setEscapedModel(escapedModel);
151            }
152    
153            public java.io.Serializable getPrimaryKeyObj() {
154                    return _permission.getPrimaryKeyObj();
155            }
156    
157            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
158                    _permission.setPrimaryKeyObj(primaryKeyObj);
159            }
160    
161            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
162                    return _permission.getExpandoBridge();
163            }
164    
165            public void setExpandoBridgeAttributes(
166                    com.liferay.portal.service.ServiceContext serviceContext) {
167                    _permission.setExpandoBridgeAttributes(serviceContext);
168            }
169    
170            @Override
171            public java.lang.Object clone() {
172                    return new PermissionWrapper((Permission)_permission.clone());
173            }
174    
175            public int compareTo(com.liferay.portal.model.Permission permission) {
176                    return _permission.compareTo(permission);
177            }
178    
179            @Override
180            public int hashCode() {
181                    return _permission.hashCode();
182            }
183    
184            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Permission> toCacheModel() {
185                    return _permission.toCacheModel();
186            }
187    
188            public com.liferay.portal.model.Permission toEscapedModel() {
189                    return new PermissionWrapper(_permission.toEscapedModel());
190            }
191    
192            @Override
193            public java.lang.String toString() {
194                    return _permission.toString();
195            }
196    
197            public java.lang.String toXmlString() {
198                    return _permission.toXmlString();
199            }
200    
201            public void persist()
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    _permission.persist();
204            }
205    
206            public java.lang.String getName() {
207                    return _permission.getName();
208            }
209    
210            public java.lang.String getPrimKey() {
211                    return _permission.getPrimKey();
212            }
213    
214            public int getScope() {
215                    return _permission.getScope();
216            }
217    
218            public void setName(java.lang.String name) {
219                    _permission.setName(name);
220            }
221    
222            public void setPrimKey(java.lang.String primKey) {
223                    _permission.setPrimKey(primKey);
224            }
225    
226            public void setScope(int scope) {
227                    _permission.setScope(scope);
228            }
229    
230            public Permission getWrappedPermission() {
231                    return _permission;
232            }
233    
234            public void resetOriginalValues() {
235                    _permission.resetOriginalValues();
236            }
237    
238            private Permission _permission;
239    }