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