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.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PluginSettingLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PluginSettingLocalService
024     * @generated
025     */
026    public class PluginSettingLocalServiceWrapper
027            implements PluginSettingLocalService,
028                    ServiceWrapper<PluginSettingLocalService> {
029            public PluginSettingLocalServiceWrapper(
030                    PluginSettingLocalService pluginSettingLocalService) {
031                    _pluginSettingLocalService = pluginSettingLocalService;
032            }
033    
034            /**
035            * Adds the plugin setting to the database. Also notifies the appropriate model listeners.
036            *
037            * @param pluginSetting the plugin setting
038            * @return the plugin setting that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.PluginSetting addPluginSetting(
042                    com.liferay.portal.model.PluginSetting pluginSetting)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _pluginSettingLocalService.addPluginSetting(pluginSetting);
045            }
046    
047            /**
048            * Creates a new plugin setting with the primary key. Does not add the plugin setting to the database.
049            *
050            * @param pluginSettingId the primary key for the new plugin setting
051            * @return the new plugin setting
052            */
053            public com.liferay.portal.model.PluginSetting createPluginSetting(
054                    long pluginSettingId) {
055                    return _pluginSettingLocalService.createPluginSetting(pluginSettingId);
056            }
057    
058            /**
059            * Deletes the plugin setting with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param pluginSettingId the primary key of the plugin setting
062            * @throws PortalException if a plugin setting with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deletePluginSetting(long pluginSettingId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _pluginSettingLocalService.deletePluginSetting(pluginSettingId);
069            }
070    
071            /**
072            * Deletes the plugin setting from the database. Also notifies the appropriate model listeners.
073            *
074            * @param pluginSetting the plugin setting
075            * @throws SystemException if a system exception occurred
076            */
077            public void deletePluginSetting(
078                    com.liferay.portal.model.PluginSetting pluginSetting)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _pluginSettingLocalService.deletePluginSetting(pluginSetting);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _pluginSettingLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _pluginSettingLocalService.dynamicQuery(dynamicQuery, start, end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _pluginSettingLocalService.dynamicQuery(dynamicQuery, start,
138                            end, orderByComparator);
139            }
140    
141            /**
142            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _pluginSettingLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            public com.liferay.portal.model.PluginSetting fetchPluginSetting(
155                    long pluginSettingId)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _pluginSettingLocalService.fetchPluginSetting(pluginSettingId);
158            }
159    
160            /**
161            * Returns the plugin setting with the primary key.
162            *
163            * @param pluginSettingId the primary key of the plugin setting
164            * @return the plugin setting
165            * @throws PortalException if a plugin setting with the primary key could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portal.model.PluginSetting getPluginSetting(
169                    long pluginSettingId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _pluginSettingLocalService.getPluginSetting(pluginSettingId);
173            }
174    
175            public com.liferay.portal.model.PersistedModel getPersistedModel(
176                    java.io.Serializable primaryKeyObj)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _pluginSettingLocalService.getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns a range of all the plugin settings.
184            *
185            * <p>
186            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
187            * </p>
188            *
189            * @param start the lower bound of the range of plugin settings
190            * @param end the upper bound of the range of plugin settings (not inclusive)
191            * @return the range of plugin settings
192            * @throws SystemException if a system exception occurred
193            */
194            public java.util.List<com.liferay.portal.model.PluginSetting> getPluginSettings(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _pluginSettingLocalService.getPluginSettings(start, end);
198            }
199    
200            /**
201            * Returns the number of plugin settings.
202            *
203            * @return the number of plugin settings
204            * @throws SystemException if a system exception occurred
205            */
206            public int getPluginSettingsCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _pluginSettingLocalService.getPluginSettingsCount();
209            }
210    
211            /**
212            * Updates the plugin setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param pluginSetting the plugin setting
215            * @return the plugin setting that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.PluginSetting updatePluginSetting(
219                    com.liferay.portal.model.PluginSetting pluginSetting)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _pluginSettingLocalService.updatePluginSetting(pluginSetting);
222            }
223    
224            /**
225            * Updates the plugin setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param pluginSetting the plugin setting
228            * @param merge whether to merge the plugin setting with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
229            * @return the plugin setting that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.PluginSetting updatePluginSetting(
233                    com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _pluginSettingLocalService.updatePluginSetting(pluginSetting,
236                            merge);
237            }
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier() {
245                    return _pluginSettingLocalService.getBeanIdentifier();
246            }
247    
248            /**
249            * Sets the Spring bean ID for this bean.
250            *
251            * @param beanIdentifier the Spring bean ID for this bean
252            */
253            public void setBeanIdentifier(java.lang.String beanIdentifier) {
254                    _pluginSettingLocalService.setBeanIdentifier(beanIdentifier);
255            }
256    
257            public void checkPermission(long userId, java.lang.String pluginId,
258                    java.lang.String pluginType)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    _pluginSettingLocalService.checkPermission(userId, pluginId, pluginType);
261            }
262    
263            public com.liferay.portal.model.PluginSetting getDefaultPluginSetting() {
264                    return _pluginSettingLocalService.getDefaultPluginSetting();
265            }
266    
267            public com.liferay.portal.model.PluginSetting getPluginSetting(
268                    long companyId, java.lang.String pluginId, java.lang.String pluginType)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return _pluginSettingLocalService.getPluginSetting(companyId, pluginId,
271                            pluginType);
272            }
273    
274            public boolean hasPermission(long userId, java.lang.String pluginId,
275                    java.lang.String pluginType) {
276                    return _pluginSettingLocalService.hasPermission(userId, pluginId,
277                            pluginType);
278            }
279    
280            public com.liferay.portal.model.PluginSetting updatePluginSetting(
281                    long companyId, java.lang.String pluginId, java.lang.String pluginType,
282                    java.lang.String roles, boolean active)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _pluginSettingLocalService.updatePluginSetting(companyId,
285                            pluginId, pluginType, roles, active);
286            }
287    
288            /**
289             * @deprecated Renamed to {@link #getWrappedService}
290             */
291            public PluginSettingLocalService getWrappedPluginSettingLocalService() {
292                    return _pluginSettingLocalService;
293            }
294    
295            /**
296             * @deprecated Renamed to {@link #setWrappedService}
297             */
298            public void setWrappedPluginSettingLocalService(
299                    PluginSettingLocalService pluginSettingLocalService) {
300                    _pluginSettingLocalService = pluginSettingLocalService;
301            }
302    
303            public PluginSettingLocalService getWrappedService() {
304                    return _pluginSettingLocalService;
305            }
306    
307            public void setWrappedService(
308                    PluginSettingLocalService pluginSettingLocalService) {
309                    _pluginSettingLocalService = pluginSettingLocalService;
310            }
311    
312            private PluginSettingLocalService _pluginSettingLocalService;
313    }