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