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