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