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