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 PluginSetting}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PluginSetting
024     * @generated
025     */
026    public class PluginSettingWrapper implements PluginSetting {
027            public PluginSettingWrapper(PluginSetting pluginSetting) {
028                    _pluginSetting = pluginSetting;
029            }
030    
031            /**
032            * Gets the primary key of this plugin setting.
033            *
034            * @return the primary key of this plugin setting
035            */
036            public long getPrimaryKey() {
037                    return _pluginSetting.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this plugin setting
042            *
043            * @param pk the primary key of this plugin setting
044            */
045            public void setPrimaryKey(long pk) {
046                    _pluginSetting.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the plugin setting id of this plugin setting.
051            *
052            * @return the plugin setting id of this plugin setting
053            */
054            public long getPluginSettingId() {
055                    return _pluginSetting.getPluginSettingId();
056            }
057    
058            /**
059            * Sets the plugin setting id of this plugin setting.
060            *
061            * @param pluginSettingId the plugin setting id of this plugin setting
062            */
063            public void setPluginSettingId(long pluginSettingId) {
064                    _pluginSetting.setPluginSettingId(pluginSettingId);
065            }
066    
067            /**
068            * Gets the company id of this plugin setting.
069            *
070            * @return the company id of this plugin setting
071            */
072            public long getCompanyId() {
073                    return _pluginSetting.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this plugin setting.
078            *
079            * @param companyId the company id of this plugin setting
080            */
081            public void setCompanyId(long companyId) {
082                    _pluginSetting.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the plugin id of this plugin setting.
087            *
088            * @return the plugin id of this plugin setting
089            */
090            public java.lang.String getPluginId() {
091                    return _pluginSetting.getPluginId();
092            }
093    
094            /**
095            * Sets the plugin id of this plugin setting.
096            *
097            * @param pluginId the plugin id of this plugin setting
098            */
099            public void setPluginId(java.lang.String pluginId) {
100                    _pluginSetting.setPluginId(pluginId);
101            }
102    
103            /**
104            * Gets the plugin type of this plugin setting.
105            *
106            * @return the plugin type of this plugin setting
107            */
108            public java.lang.String getPluginType() {
109                    return _pluginSetting.getPluginType();
110            }
111    
112            /**
113            * Sets the plugin type of this plugin setting.
114            *
115            * @param pluginType the plugin type of this plugin setting
116            */
117            public void setPluginType(java.lang.String pluginType) {
118                    _pluginSetting.setPluginType(pluginType);
119            }
120    
121            /**
122            * Gets the roles of this plugin setting.
123            *
124            * @return the roles of this plugin setting
125            */
126            public java.lang.String getRoles() {
127                    return _pluginSetting.getRoles();
128            }
129    
130            /**
131            * Sets the roles of this plugin setting.
132            *
133            * @param roles the roles of this plugin setting
134            */
135            public void setRoles(java.lang.String roles) {
136                    _pluginSetting.setRoles(roles);
137            }
138    
139            /**
140            * Gets the active of this plugin setting.
141            *
142            * @return the active of this plugin setting
143            */
144            public boolean getActive() {
145                    return _pluginSetting.getActive();
146            }
147    
148            /**
149            * Determines whether this plugin setting is active.
150            *
151            * @return whether this plugin setting is active
152            */
153            public boolean isActive() {
154                    return _pluginSetting.isActive();
155            }
156    
157            /**
158            * Sets whether this {$entity.humanName} is active.
159            *
160            * @param active the active of this plugin setting
161            */
162            public void setActive(boolean active) {
163                    _pluginSetting.setActive(active);
164            }
165    
166            public boolean isNew() {
167                    return _pluginSetting.isNew();
168            }
169    
170            public void setNew(boolean n) {
171                    _pluginSetting.setNew(n);
172            }
173    
174            public boolean isCachedModel() {
175                    return _pluginSetting.isCachedModel();
176            }
177    
178            public void setCachedModel(boolean cachedModel) {
179                    _pluginSetting.setCachedModel(cachedModel);
180            }
181    
182            public boolean isEscapedModel() {
183                    return _pluginSetting.isEscapedModel();
184            }
185    
186            public void setEscapedModel(boolean escapedModel) {
187                    _pluginSetting.setEscapedModel(escapedModel);
188            }
189    
190            public java.io.Serializable getPrimaryKeyObj() {
191                    return _pluginSetting.getPrimaryKeyObj();
192            }
193    
194            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
195                    return _pluginSetting.getExpandoBridge();
196            }
197    
198            public void setExpandoBridgeAttributes(
199                    com.liferay.portal.service.ServiceContext serviceContext) {
200                    _pluginSetting.setExpandoBridgeAttributes(serviceContext);
201            }
202    
203            public java.lang.Object clone() {
204                    return _pluginSetting.clone();
205            }
206    
207            public int compareTo(com.liferay.portal.model.PluginSetting pluginSetting) {
208                    return _pluginSetting.compareTo(pluginSetting);
209            }
210    
211            public int hashCode() {
212                    return _pluginSetting.hashCode();
213            }
214    
215            public com.liferay.portal.model.PluginSetting toEscapedModel() {
216                    return _pluginSetting.toEscapedModel();
217            }
218    
219            public java.lang.String toString() {
220                    return _pluginSetting.toString();
221            }
222    
223            public java.lang.String toXmlString() {
224                    return _pluginSetting.toXmlString();
225            }
226    
227            /**
228            * Adds a role to the list of roles.
229            */
230            public void addRole(java.lang.String role) {
231                    _pluginSetting.addRole(role);
232            }
233    
234            /**
235            * Gets an array of required roles of the plugin.
236            *
237            * @return an array of required roles of the plugin
238            */
239            public java.lang.String[] getRolesArray() {
240                    return _pluginSetting.getRolesArray();
241            }
242    
243            /**
244            * Sets an array of required roles of the plugin.
245            */
246            public void setRolesArray(java.lang.String[] rolesArray) {
247                    _pluginSetting.setRolesArray(rolesArray);
248            }
249    
250            /**
251            * Returns <code>true</code> if the plugin has a role with the specified
252            * name.
253            *
254            * @return <code>true</code> if the plugin has a role with the specified
255            name
256            */
257            public boolean hasRoleWithName(java.lang.String roleName) {
258                    return _pluginSetting.hasRoleWithName(roleName);
259            }
260    
261            /**
262            * Returns <code>true</code> if the user has permission to use this plugin
263            *
264            * @return <code>true</code> if the user has permission to use this plugin
265            */
266            public boolean hasPermission(long userId) {
267                    return _pluginSetting.hasPermission(userId);
268            }
269    
270            public PluginSetting getWrappedPluginSetting() {
271                    return _pluginSetting;
272            }
273    
274            private PluginSetting _pluginSetting;
275    }