001    /**
002     * Copyright (c) 2000-2010 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            /**
032            * Gets the primary key of this permission.
033            *
034            * @return the primary key of this permission
035            */
036            public long getPrimaryKey() {
037                    return _permission.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this permission
042            *
043            * @param pk the primary key of this permission
044            */
045            public void setPrimaryKey(long pk) {
046                    _permission.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the permission id of this permission.
051            *
052            * @return the permission id of this permission
053            */
054            public long getPermissionId() {
055                    return _permission.getPermissionId();
056            }
057    
058            /**
059            * Sets the permission id of this permission.
060            *
061            * @param permissionId the permission id of this permission
062            */
063            public void setPermissionId(long permissionId) {
064                    _permission.setPermissionId(permissionId);
065            }
066    
067            /**
068            * Gets the company id of this permission.
069            *
070            * @return the company id of this permission
071            */
072            public long getCompanyId() {
073                    return _permission.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this permission.
078            *
079            * @param companyId the company id of this permission
080            */
081            public void setCompanyId(long companyId) {
082                    _permission.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the action id of this permission.
087            *
088            * @return the action id of this permission
089            */
090            public java.lang.String getActionId() {
091                    return _permission.getActionId();
092            }
093    
094            /**
095            * Sets the action id of this permission.
096            *
097            * @param actionId the action id of this permission
098            */
099            public void setActionId(java.lang.String actionId) {
100                    _permission.setActionId(actionId);
101            }
102    
103            /**
104            * Gets the resource id of this permission.
105            *
106            * @return the resource id of this permission
107            */
108            public long getResourceId() {
109                    return _permission.getResourceId();
110            }
111    
112            /**
113            * Sets the resource id of this permission.
114            *
115            * @param resourceId the resource id of this permission
116            */
117            public void setResourceId(long resourceId) {
118                    _permission.setResourceId(resourceId);
119            }
120    
121            public boolean isNew() {
122                    return _permission.isNew();
123            }
124    
125            public void setNew(boolean n) {
126                    _permission.setNew(n);
127            }
128    
129            public boolean isCachedModel() {
130                    return _permission.isCachedModel();
131            }
132    
133            public void setCachedModel(boolean cachedModel) {
134                    _permission.setCachedModel(cachedModel);
135            }
136    
137            public boolean isEscapedModel() {
138                    return _permission.isEscapedModel();
139            }
140    
141            public void setEscapedModel(boolean escapedModel) {
142                    _permission.setEscapedModel(escapedModel);
143            }
144    
145            public java.io.Serializable getPrimaryKeyObj() {
146                    return _permission.getPrimaryKeyObj();
147            }
148    
149            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
150                    return _permission.getExpandoBridge();
151            }
152    
153            public void setExpandoBridgeAttributes(
154                    com.liferay.portal.service.ServiceContext serviceContext) {
155                    _permission.setExpandoBridgeAttributes(serviceContext);
156            }
157    
158            public java.lang.Object clone() {
159                    return _permission.clone();
160            }
161    
162            public int compareTo(com.liferay.portal.model.Permission permission) {
163                    return _permission.compareTo(permission);
164            }
165    
166            public int hashCode() {
167                    return _permission.hashCode();
168            }
169    
170            public com.liferay.portal.model.Permission toEscapedModel() {
171                    return _permission.toEscapedModel();
172            }
173    
174            public java.lang.String toString() {
175                    return _permission.toString();
176            }
177    
178            public java.lang.String toXmlString() {
179                    return _permission.toXmlString();
180            }
181    
182            public java.lang.String getName() {
183                    return _permission.getName();
184            }
185    
186            public java.lang.String getPrimKey() {
187                    return _permission.getPrimKey();
188            }
189    
190            public int getScope() {
191                    return _permission.getScope();
192            }
193    
194            public void setName(java.lang.String name) {
195                    _permission.setName(name);
196            }
197    
198            public void setPrimKey(java.lang.String primKey) {
199                    _permission.setPrimKey(primKey);
200            }
201    
202            public void setScope(int scope) {
203                    _permission.setScope(scope);
204            }
205    
206            public Permission getWrappedPermission() {
207                    return _permission;
208            }
209    
210            private Permission _permission;
211    }