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