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            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            @Override
239            public java.lang.String getBeanIdentifier() {
240                    return _portletPreferencesLocalService.getBeanIdentifier();
241            }
242    
243            @Override
244            public javax.portlet.PortletPreferences getDefaultPreferences(
245                    long companyId, java.lang.String portletId) {
246                    return _portletPreferencesLocalService.getDefaultPreferences(companyId,
247                            portletId);
248            }
249    
250            @Override
251            public com.liferay.portal.model.PersistedModel getPersistedModel(
252                    java.io.Serializable primaryKeyObj)
253                    throws com.liferay.portal.kernel.exception.PortalException {
254                    return _portletPreferencesLocalService.getPersistedModel(primaryKeyObj);
255            }
256    
257            @Override
258            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences() {
259                    return _portletPreferencesLocalService.getPortletPreferences();
260            }
261    
262            @Override
263            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
264                    long companyId, long groupId, long ownerId, int ownerType,
265                    java.lang.String portletId, boolean privateLayout) {
266                    return _portletPreferencesLocalService.getPortletPreferences(companyId,
267                            groupId, ownerId, ownerType, portletId, privateLayout);
268            }
269    
270            @Override
271            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
272                    long ownerId, int ownerType, long plid) {
273                    return _portletPreferencesLocalService.getPortletPreferences(ownerId,
274                            ownerType, plid);
275            }
276    
277            @Override
278            public com.liferay.portal.model.PortletPreferences getPortletPreferences(
279                    long ownerId, int ownerType, long plid, java.lang.String portletId)
280                    throws com.liferay.portal.kernel.exception.PortalException {
281                    return _portletPreferencesLocalService.getPortletPreferences(ownerId,
282                            ownerType, plid, portletId);
283            }
284    
285            @Override
286            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
287                    int ownerType, long plid, java.lang.String portletId) {
288                    return _portletPreferencesLocalService.getPortletPreferences(ownerType,
289                            plid, portletId);
290            }
291    
292            @Override
293            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
294                    long plid, java.lang.String portletId) {
295                    return _portletPreferencesLocalService.getPortletPreferences(plid,
296                            portletId);
297            }
298    
299            /**
300            * Returns the portlet preferences with the primary key.
301            *
302            * @param portletPreferencesId the primary key of the portlet preferences
303            * @return the portlet preferences
304            * @throws PortalException if a portlet preferences with the primary key could not be found
305            */
306            @Override
307            public com.liferay.portal.model.PortletPreferences getPortletPreferences(
308                    long portletPreferencesId)
309                    throws com.liferay.portal.kernel.exception.PortalException {
310                    return _portletPreferencesLocalService.getPortletPreferences(portletPreferencesId);
311            }
312    
313            @Override
314            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
315                    long plid) {
316                    return _portletPreferencesLocalService.getPortletPreferencesByPlid(plid);
317            }
318    
319            @Override
320            public long getPortletPreferencesCount(long ownerId, int ownerType,
321                    long plid, com.liferay.portal.model.Portlet portlet,
322                    boolean excludeDefaultPreferences) {
323                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerId,
324                            ownerType, plid, portlet, excludeDefaultPreferences);
325            }
326    
327            @Override
328            public long getPortletPreferencesCount(long ownerId, int ownerType,
329                    java.lang.String portletId, boolean excludeDefaultPreferences) {
330                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerId,
331                            ownerType, portletId, excludeDefaultPreferences);
332            }
333    
334            @Override
335            public long getPortletPreferencesCount(int ownerType, long plid,
336                    java.lang.String portletId) {
337                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerType,
338                            plid, portletId);
339            }
340    
341            @Override
342            public long getPortletPreferencesCount(int ownerType,
343                    java.lang.String portletId) {
344                    return _portletPreferencesLocalService.getPortletPreferencesCount(ownerType,
345                            portletId);
346            }
347    
348            /**
349            * Returns a range of all the portlet preferenceses.
350            *
351            * <p>
352            * 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.
353            * </p>
354            *
355            * @param start the lower bound of the range of portlet preferenceses
356            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
357            * @return the range of portlet preferenceses
358            */
359            @Override
360            public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
361                    int start, int end) {
362                    return _portletPreferencesLocalService.getPortletPreferenceses(start,
363                            end);
364            }
365    
366            /**
367            * Returns the number of portlet preferenceses.
368            *
369            * @return the number of portlet preferenceses
370            */
371            @Override
372            public int getPortletPreferencesesCount() {
373                    return _portletPreferencesLocalService.getPortletPreferencesesCount();
374            }
375    
376            @Override
377            public javax.portlet.PortletPreferences getPreferences(long companyId,
378                    long ownerId, int ownerType, long plid, java.lang.String portletId) {
379                    return _portletPreferencesLocalService.getPreferences(companyId,
380                            ownerId, ownerType, plid, portletId);
381            }
382    
383            @Override
384            public javax.portlet.PortletPreferences getPreferences(long companyId,
385                    long ownerId, int ownerType, long plid, java.lang.String portletId,
386                    java.lang.String defaultPreferences) {
387                    return _portletPreferencesLocalService.getPreferences(companyId,
388                            ownerId, ownerType, plid, portletId, defaultPreferences);
389            }
390    
391            @Override
392            public javax.portlet.PortletPreferences getPreferences(
393                    com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds) {
394                    return _portletPreferencesLocalService.getPreferences(portletPreferencesIds);
395            }
396    
397            @Override
398            public javax.portlet.PortletPreferences getStrictPreferences(
399                    long companyId, long ownerId, int ownerType, long plid,
400                    java.lang.String portletId) {
401                    return _portletPreferencesLocalService.getStrictPreferences(companyId,
402                            ownerId, ownerType, plid, portletId);
403            }
404    
405            @Override
406            public javax.portlet.PortletPreferences getStrictPreferences(
407                    com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds) {
408                    return _portletPreferencesLocalService.getStrictPreferences(portletPreferencesIds);
409            }
410    
411            /**
412            * Sets the Spring bean ID for this bean.
413            *
414            * @param beanIdentifier the Spring bean ID for this bean
415            */
416            @Override
417            public void setBeanIdentifier(java.lang.String beanIdentifier) {
418                    _portletPreferencesLocalService.setBeanIdentifier(beanIdentifier);
419            }
420    
421            /**
422            * Updates the portlet preferences in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
423            *
424            * @param portletPreferences the portlet preferences
425            * @return the portlet preferences that was updated
426            */
427            @Override
428            public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
429                    com.liferay.portal.model.PortletPreferences portletPreferences) {
430                    return _portletPreferencesLocalService.updatePortletPreferences(portletPreferences);
431            }
432    
433            @Override
434            public com.liferay.portal.model.PortletPreferences updatePreferences(
435                    long ownerId, int ownerType, long plid, java.lang.String portletId,
436                    javax.portlet.PortletPreferences portletPreferences) {
437                    return _portletPreferencesLocalService.updatePreferences(ownerId,
438                            ownerType, plid, portletId, portletPreferences);
439            }
440    
441            @Override
442            public com.liferay.portal.model.PortletPreferences updatePreferences(
443                    long ownerId, int ownerType, long plid, java.lang.String portletId,
444                    java.lang.String xml) {
445                    return _portletPreferencesLocalService.updatePreferences(ownerId,
446                            ownerType, plid, portletId, xml);
447            }
448    
449            /**
450             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
451             */
452            @Deprecated
453            public PortletPreferencesLocalService getWrappedPortletPreferencesLocalService() {
454                    return _portletPreferencesLocalService;
455            }
456    
457            /**
458             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
459             */
460            @Deprecated
461            public void setWrappedPortletPreferencesLocalService(
462                    PortletPreferencesLocalService portletPreferencesLocalService) {
463                    _portletPreferencesLocalService = portletPreferencesLocalService;
464            }
465    
466            @Override
467            public PortletPreferencesLocalService getWrappedService() {
468                    return _portletPreferencesLocalService;
469            }
470    
471            @Override
472            public void setWrappedService(
473                    PortletPreferencesLocalService portletPreferencesLocalService) {
474                    _portletPreferencesLocalService = portletPreferencesLocalService;
475            }
476    
477            private PortletPreferencesLocalService _portletPreferencesLocalService;
478    }