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