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