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 PortletPreferencesLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PortletPreferencesLocalService
024     * @generated
025     */
026    @ProviderType
027    public class PortletPreferencesLocalServiceWrapper
028            implements PortletPreferencesLocalService,
029                    ServiceWrapper<PortletPreferencesLocalService> {
030            public PortletPreferencesLocalServiceWrapper(
031                    PortletPreferencesLocalService portletPreferencesLocalService) {
032                    _portletPreferencesLocalService = portletPreferencesLocalService;
033            }
034    
035            @Override
036            public com.liferay.portal.kernel.model.PortletPreferences addPortletPreferences(
037                    long companyId, long ownerId, int ownerType, long plid,
038                    java.lang.String portletId,
039                    com.liferay.portal.kernel.model.Portlet portlet,
040                    java.lang.String defaultPreferences) {
041                    return _portletPreferencesLocalService.addPortletPreferences(companyId,
042                            ownerId, ownerType, plid, portletId, portlet, defaultPreferences);
043            }
044    
045            /**
046            * Adds the portlet preferences to the database. Also notifies the appropriate model listeners.
047            *
048            * @param portletPreferences the portlet preferences
049            * @return the portlet preferences that was added
050            */
051            @Override
052            public com.liferay.portal.kernel.model.PortletPreferences addPortletPreferences(
053                    com.liferay.portal.kernel.model.PortletPreferences portletPreferences) {
054                    return _portletPreferencesLocalService.addPortletPreferences(portletPreferences);
055            }
056    
057            /**
058            * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.
059            *
060            * @param portletPreferencesId the primary key for the new portlet preferences
061            * @return the new portlet preferences
062            */
063            @Override
064            public com.liferay.portal.kernel.model.PortletPreferences createPortletPreferences(
065                    long portletPreferencesId) {
066                    return _portletPreferencesLocalService.createPortletPreferences(portletPreferencesId);
067            }
068    
069            /**
070            * @throws PortalException
071            */
072            @Override
073            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
074                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return _portletPreferencesLocalService.deletePersistedModel(persistedModel);
077            }
078    
079            @Override
080            public void deletePortletPreferences(long ownerId, int ownerType, long plid) {
081                    _portletPreferencesLocalService.deletePortletPreferences(ownerId,
082                            ownerType, plid);
083            }
084    
085            @Override
086            public void deletePortletPreferences(long ownerId, int ownerType,
087                    long plid, java.lang.String portletId)
088                    throws com.liferay.portal.kernel.exception.PortalException {
089                    _portletPreferencesLocalService.deletePortletPreferences(ownerId,
090                            ownerType, plid, portletId);
091            }
092    
093            /**
094            * Deletes the portlet preferences from the database. Also notifies the appropriate model listeners.
095            *
096            * @param portletPreferences the portlet preferences
097            * @return the portlet preferences that was removed
098            */
099            @Override
100            public com.liferay.portal.kernel.model.PortletPreferences deletePortletPreferences(
101                    com.liferay.portal.kernel.model.PortletPreferences portletPreferences) {
102                    return _portletPreferencesLocalService.deletePortletPreferences(portletPreferences);
103            }
104    
105            /**
106            * Deletes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.
107            *
108            * @param portletPreferencesId the primary key of the portlet preferences
109            * @return the portlet preferences that was removed
110            * @throws PortalException if a portlet preferences with the primary key could not be found
111            */
112            @Override
113            public com.liferay.portal.kernel.model.PortletPreferences deletePortletPreferences(
114                    long portletPreferencesId)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    return _portletPreferencesLocalService.deletePortletPreferences(portletPreferencesId);
117            }
118    
119            @Override
120            public void deletePortletPreferencesByPlid(long plid) {
121                    _portletPreferencesLocalService.deletePortletPreferencesByPlid(plid);
122            }
123    
124            @Override
125            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
126                    return _portletPreferencesLocalService.dynamicQuery();
127            }
128    
129            /**
130            * Performs a dynamic query on the database and returns the matching rows.
131            *
132            * @param dynamicQuery the dynamic query
133            * @return the matching rows
134            */
135            @Override
136            public <T> java.util.List<T> dynamicQuery(
137                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
138                    return _portletPreferencesLocalService.dynamicQuery(dynamicQuery);
139            }
140    
141            /**
142            * Performs a dynamic query on the database and returns a range of the matching rows.
143            *
144            * <p>
145            * 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.PortletPreferencesModelImpl}. 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.
146            * </p>
147            *
148            * @param dynamicQuery the dynamic query
149            * @param start the lower bound of the range of model instances
150            * @param end the upper bound of the range of model instances (not inclusive)
151            * @return the range of matching rows
152            */
153            @Override
154            public <T> java.util.List<T> dynamicQuery(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
156                    int end) {
157                    return _portletPreferencesLocalService.dynamicQuery(dynamicQuery,
158                            start, end);
159            }
160    
161            /**
162            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
163            *
164            * <p>
165            * 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.PortletPreferencesModelImpl}. 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.
166            * </p>
167            *
168            * @param dynamicQuery the dynamic query
169            * @param start the lower bound of the range of model instances
170            * @param end the upper bound of the range of model instances (not inclusive)
171            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
172            * @return the ordered range of matching rows
173            */
174            @Override
175            public <T> java.util.List<T> dynamicQuery(
176                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
177                    int end,
178                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
179                    return _portletPreferencesLocalService.dynamicQuery(dynamicQuery,
180                            start, end, orderByComparator);
181            }
182    
183            /**
184            * Returns the number of rows matching the dynamic query.
185            *
186            * @param dynamicQuery the dynamic query
187            * @return the number of rows matching the dynamic query
188            */
189            @Override
190            public long dynamicQueryCount(
191                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
192                    return _portletPreferencesLocalService.dynamicQueryCount(dynamicQuery);
193            }
194    
195            /**
196            * Returns the number of rows matching the dynamic query.
197            *
198            * @param dynamicQuery the dynamic query
199            * @param projection the projection to apply to the query
200            * @return the number of rows matching the dynamic query
201            */
202            @Override
203            public long dynamicQueryCount(
204                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
205                    com.liferay.portal.kernel.dao.orm.Projection projection) {
206                    return _portletPreferencesLocalService.dynamicQueryCount(dynamicQuery,
207                            projection);
208            }
209    
210            @Override
211            public com.liferay.portal.kernel.model.PortletPreferences fetchPortletPreferences(
212                    long portletPreferencesId) {
213                    return _portletPreferencesLocalService.fetchPortletPreferences(portletPreferencesId);
214            }
215    
216            @Override
217            public javax.portlet.PortletPreferences fetchPreferences(long companyId,
218                    long ownerId, int ownerType, long plid, java.lang.String portletId) {
219                    return _portletPreferencesLocalService.fetchPreferences(companyId,
220                            ownerId, ownerType, plid, portletId);
221            }
222    
223            @Override
224            public javax.portlet.PortletPreferences fetchPreferences(
225                    com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds) {
226                    return _portletPreferencesLocalService.fetchPreferences(portletPreferencesIds);
227            }
228    
229            @Override
230            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
231                    return _portletPreferencesLocalService.getActionableDynamicQuery();
232            }
233    
234            @Override
235            public javax.portlet.PortletPreferences getDefaultPreferences(
236                    long companyId, java.lang.String portletId) {
237                    return _portletPreferencesLocalService.getDefaultPreferences(companyId,
238                            portletId);
239            }
240    
241            @Override
242            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
243                    return _portletPreferencesLocalService.getIndexableActionableDynamicQuery();
244            }
245    
246            /**
247            * Returns the OSGi service identifier.
248            *
249            * @return the OSGi service identifier
250            */
251            @Override
252            public java.lang.String getOSGiServiceIdentifier() {
253                    return _portletPreferencesLocalService.getOSGiServiceIdentifier();
254            }
255    
256            @Override
257            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
258                    java.io.Serializable primaryKeyObj)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _portletPreferencesLocalService.getPersistedModel(primaryKeyObj);
261            }
262    
263            @Override
264            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences() {
265                    return _portletPreferencesLocalService.getPortletPreferences();
266            }
267    
268            @Override
269            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
270                    long companyId, long groupId, long ownerId, int ownerType,
271                    java.lang.String portletId, boolean privateLayout) {
272                    return _portletPreferencesLocalService.getPortletPreferences(companyId,
273                            groupId, ownerId, ownerType, portletId, privateLayout);
274            }
275    
276            @Override
277            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
278                    long ownerId, int ownerType, long plid) {
279                    return _portletPreferencesLocalService.getPortletPreferences(ownerId,
280                            ownerType, plid);
281            }
282    
283            @Override
284            public com.liferay.portal.kernel.model.PortletPreferences getPortletPreferences(
285                    long ownerId, int ownerType, long plid, java.lang.String portletId)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    return _portletPreferencesLocalService.getPortletPreferences(ownerId,
288                            ownerType, plid, portletId);
289            }
290    
291            @Override
292            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
293                    int ownerType, long plid, java.lang.String portletId) {
294                    return _portletPreferencesLocalService.getPortletPreferences(ownerType,
295                            plid, portletId);
296            }
297    
298            @Override
299            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
300                    long plid, java.lang.String portletId) {
301                    return _portletPreferencesLocalService.getPortletPreferences(plid,
302                            portletId);
303            }
304    
305            /**
306            * Returns the portlet preferences with the primary key.
307            *
308            * @param portletPreferencesId the primary key of the portlet preferences
309            * @return the portlet preferences
310            * @throws PortalException if a portlet preferences with the primary key could not be found
311            */
312            @Override
313            public com.liferay.portal.kernel.model.PortletPreferences getPortletPreferences(
314                    long portletPreferencesId)
315                    throws com.liferay.portal.kernel.exception.PortalException {
316                    return _portletPreferencesLocalService.getPortletPreferences(portletPreferencesId);
317            }
318    
319            @Override
320            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferencesByPlid(
321                    long plid) {
322                    return _portletPreferencesLocalService.getPortletPreferencesByPlid(plid);
323            }
324    
325            @Override
326            public long getPortletPreferencesCount(long ownerId, int ownerType,
327                    long plid, com.liferay.portal.kernel.model.Portlet portlet,
328                    boolean excludeDefaultPreferences) {
329                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerId,
330                            ownerType, plid, portlet, excludeDefaultPreferences);
331            }
332    
333            @Override
334            public long getPortletPreferencesCount(long ownerId, int ownerType,
335                    java.lang.String portletId, boolean excludeDefaultPreferences) {
336                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerId,
337                            ownerType, portletId, excludeDefaultPreferences);
338            }
339    
340            @Override
341            public long getPortletPreferencesCount(int ownerType, long plid,
342                    java.lang.String portletId) {
343                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerType,
344                            plid, portletId);
345            }
346    
347            @Override
348            public long getPortletPreferencesCount(int ownerType,
349                    java.lang.String portletId) {
350                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerType,
351                            portletId);
352            }
353    
354            /**
355            * Returns a range of all the portlet preferenceses.
356            *
357            * <p>
358            * 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.PortletPreferencesModelImpl}. 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.
359            * </p>
360            *
361            * @param start the lower bound of the range of portlet preferenceses
362            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
363            * @return the range of portlet preferenceses
364            */
365            @Override
366            public java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferenceses(
367                    int start, int end) {
368                    return _portletPreferencesLocalService.getPortletPreferenceses(start,
369                            end);
370            }
371    
372            /**
373            * Returns the number of portlet preferenceses.
374            *
375            * @return the number of portlet preferenceses
376            */
377            @Override
378            public int getPortletPreferencesesCount() {
379                    return _portletPreferencesLocalService.getPortletPreferencesesCount();
380            }
381    
382            @Override
383            public javax.portlet.PortletPreferences getPreferences(long companyId,
384                    long ownerId, int ownerType, long plid, java.lang.String portletId) {
385                    return _portletPreferencesLocalService.getPreferences(companyId,
386                            ownerId, ownerType, plid, portletId);
387            }
388    
389            @Override
390            public javax.portlet.PortletPreferences getPreferences(long companyId,
391                    long ownerId, int ownerType, long plid, java.lang.String portletId,
392                    java.lang.String defaultPreferences) {
393                    return _portletPreferencesLocalService.getPreferences(companyId,
394                            ownerId, ownerType, plid, portletId, defaultPreferences);
395            }
396    
397            @Override
398            public javax.portlet.PortletPreferences getPreferences(
399                    com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds) {
400                    return _portletPreferencesLocalService.getPreferences(portletPreferencesIds);
401            }
402    
403            @Override
404            public javax.portlet.PortletPreferences getStrictPreferences(
405                    long companyId, long ownerId, int ownerType, long plid,
406                    java.lang.String portletId) {
407                    return _portletPreferencesLocalService.getStrictPreferences(companyId,
408                            ownerId, ownerType, plid, portletId);
409            }
410    
411            @Override
412            public javax.portlet.PortletPreferences getStrictPreferences(
413                    com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds) {
414                    return _portletPreferencesLocalService.getStrictPreferences(portletPreferencesIds);
415            }
416    
417            /**
418            * Updates the portlet preferences in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
419            *
420            * @param portletPreferences the portlet preferences
421            * @return the portlet preferences that was updated
422            */
423            @Override
424            public com.liferay.portal.kernel.model.PortletPreferences updatePortletPreferences(
425                    com.liferay.portal.kernel.model.PortletPreferences portletPreferences) {
426                    return _portletPreferencesLocalService.updatePortletPreferences(portletPreferences);
427            }
428    
429            @Override
430            public com.liferay.portal.kernel.model.PortletPreferences updatePreferences(
431                    long ownerId, int ownerType, long plid, java.lang.String portletId,
432                    javax.portlet.PortletPreferences portletPreferences) {
433                    return _portletPreferencesLocalService.updatePreferences(ownerId,
434                            ownerType, plid, portletId, portletPreferences);
435            }
436    
437            @Override
438            public com.liferay.portal.kernel.model.PortletPreferences updatePreferences(
439                    long ownerId, int ownerType, long plid, java.lang.String portletId,
440                    java.lang.String xml) {
441                    return _portletPreferencesLocalService.updatePreferences(ownerId,
442                            ownerType, plid, portletId, xml);
443            }
444    
445            @Override
446            public PortletPreferencesLocalService getWrappedService() {
447                    return _portletPreferencesLocalService;
448            }
449    
450            @Override
451            public void setWrappedService(
452                    PortletPreferencesLocalService portletPreferencesLocalService) {
453                    _portletPreferencesLocalService = portletPreferencesLocalService;
454            }
455    
456            private PortletPreferencesLocalService _portletPreferencesLocalService;
457    }