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