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