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