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