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 Permission}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Permission
024     * @generated
025     */
026    public class PermissionWrapper implements Permission, ModelWrapper<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            * Returns 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            * Returns 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            * Returns 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            * Returns 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            * Returns 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 java.io.Serializable getPrimaryKeyObj() {
150                    return _permission.getPrimaryKeyObj();
151            }
152    
153            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
154                    _permission.setPrimaryKeyObj(primaryKeyObj);
155            }
156    
157            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
158                    return _permission.getExpandoBridge();
159            }
160    
161            public void setExpandoBridgeAttributes(
162                    com.liferay.portal.service.ServiceContext serviceContext) {
163                    _permission.setExpandoBridgeAttributes(serviceContext);
164            }
165    
166            @Override
167            public java.lang.Object clone() {
168                    return new PermissionWrapper((Permission)_permission.clone());
169            }
170    
171            public int compareTo(com.liferay.portal.model.Permission permission) {
172                    return _permission.compareTo(permission);
173            }
174    
175            @Override
176            public int hashCode() {
177                    return _permission.hashCode();
178            }
179    
180            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Permission> toCacheModel() {
181                    return _permission.toCacheModel();
182            }
183    
184            public com.liferay.portal.model.Permission toEscapedModel() {
185                    return new PermissionWrapper(_permission.toEscapedModel());
186            }
187    
188            @Override
189            public java.lang.String toString() {
190                    return _permission.toString();
191            }
192    
193            public java.lang.String toXmlString() {
194                    return _permission.toXmlString();
195            }
196    
197            public void persist()
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    _permission.persist();
200            }
201    
202            public java.lang.String getName() {
203                    return _permission.getName();
204            }
205    
206            public java.lang.String getPrimKey() {
207                    return _permission.getPrimKey();
208            }
209    
210            public int getScope() {
211                    return _permission.getScope();
212            }
213    
214            public void setName(java.lang.String name) {
215                    _permission.setName(name);
216            }
217    
218            public void setPrimKey(java.lang.String primKey) {
219                    _permission.setPrimKey(primKey);
220            }
221    
222            public void setScope(int scope) {
223                    _permission.setScope(scope);
224            }
225    
226            /**
227             * @deprecated Renamed to {@link #getWrappedModel}
228             */
229            public Permission getWrappedPermission() {
230                    return _permission;
231            }
232    
233            public Permission getWrappedModel() {
234                    return _permission;
235            }
236    
237            public void resetOriginalValues() {
238                    _permission.resetOriginalValues();
239            }
240    
241            private Permission _permission;
242    }