001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link PortalPreferencesLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PortalPreferencesLocalService
024     * @generated
025     */
026    @ProviderType
027    public class PortalPreferencesLocalServiceWrapper
028            implements PortalPreferencesLocalService,
029                    ServiceWrapper<PortalPreferencesLocalService> {
030            public PortalPreferencesLocalServiceWrapper(
031                    PortalPreferencesLocalService portalPreferencesLocalService) {
032                    _portalPreferencesLocalService = portalPreferencesLocalService;
033            }
034    
035            /**
036            * Adds the portal preferences to the database. Also notifies the appropriate model listeners.
037            *
038            * @param portalPreferences the portal preferences
039            * @return the portal preferences that was added
040            * @throws SystemException if a system exception occurred
041            */
042            @Override
043            public com.liferay.portal.model.PortalPreferences addPortalPreferences(
044                    com.liferay.portal.model.PortalPreferences portalPreferences)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _portalPreferencesLocalService.addPortalPreferences(portalPreferences);
047            }
048    
049            /**
050            * Creates a new portal preferences with the primary key. Does not add the portal preferences to the database.
051            *
052            * @param portalPreferencesId the primary key for the new portal preferences
053            * @return the new portal preferences
054            */
055            @Override
056            public com.liferay.portal.model.PortalPreferences createPortalPreferences(
057                    long portalPreferencesId) {
058                    return _portalPreferencesLocalService.createPortalPreferences(portalPreferencesId);
059            }
060    
061            /**
062            * Deletes the portal preferences with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param portalPreferencesId the primary key of the portal preferences
065            * @return the portal preferences that was removed
066            * @throws PortalException if a portal preferences with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            @Override
070            public com.liferay.portal.model.PortalPreferences deletePortalPreferences(
071                    long portalPreferencesId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _portalPreferencesLocalService.deletePortalPreferences(portalPreferencesId);
075            }
076    
077            /**
078            * Deletes the portal preferences from the database. Also notifies the appropriate model listeners.
079            *
080            * @param portalPreferences the portal preferences
081            * @return the portal preferences that was removed
082            * @throws SystemException if a system exception occurred
083            */
084            @Override
085            public com.liferay.portal.model.PortalPreferences deletePortalPreferences(
086                    com.liferay.portal.model.PortalPreferences portalPreferences)
087                    throws com.liferay.portal.kernel.exception.SystemException {
088                    return _portalPreferencesLocalService.deletePortalPreferences(portalPreferences);
089            }
090    
091            @Override
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return _portalPreferencesLocalService.dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @Override
104            @SuppressWarnings("rawtypes")
105            public java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _portalPreferencesLocalService.dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortalPreferencesModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @Override
125            @SuppressWarnings("rawtypes")
126            public java.util.List dynamicQuery(
127                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException {
129                    return _portalPreferencesLocalService.dynamicQuery(dynamicQuery, start,
130                            end);
131            }
132    
133            /**
134            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
135            *
136            * <p>
137            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortalPreferencesModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
138            * </p>
139            *
140            * @param dynamicQuery the dynamic query
141            * @param start the lower bound of the range of model instances
142            * @param end the upper bound of the range of model instances (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching rows
145            * @throws SystemException if a system exception occurred
146            */
147            @Override
148            @SuppressWarnings("rawtypes")
149            public java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _portalPreferencesLocalService.dynamicQuery(dynamicQuery, start,
155                            end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            @Override
166            public long dynamicQueryCount(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return _portalPreferencesLocalService.dynamicQueryCount(dynamicQuery);
170            }
171    
172            /**
173            * Returns the number of rows that match the dynamic query.
174            *
175            * @param dynamicQuery the dynamic query
176            * @param projection the projection to apply to the query
177            * @return the number of rows that match the dynamic query
178            * @throws SystemException if a system exception occurred
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _portalPreferencesLocalService.dynamicQueryCount(dynamicQuery,
186                            projection);
187            }
188    
189            @Override
190            public com.liferay.portal.model.PortalPreferences fetchPortalPreferences(
191                    long portalPreferencesId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _portalPreferencesLocalService.fetchPortalPreferences(portalPreferencesId);
194            }
195    
196            /**
197            * Returns the portal preferences with the primary key.
198            *
199            * @param portalPreferencesId the primary key of the portal preferences
200            * @return the portal preferences
201            * @throws PortalException if a portal preferences with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            @Override
205            public com.liferay.portal.model.PortalPreferences getPortalPreferences(
206                    long portalPreferencesId)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return _portalPreferencesLocalService.getPortalPreferences(portalPreferencesId);
210            }
211    
212            @Override
213            public com.liferay.portal.model.PersistedModel getPersistedModel(
214                    java.io.Serializable primaryKeyObj)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return _portalPreferencesLocalService.getPersistedModel(primaryKeyObj);
218            }
219    
220            /**
221            * Returns a range of all the portal preferenceses.
222            *
223            * <p>
224            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortalPreferencesModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
225            * </p>
226            *
227            * @param start the lower bound of the range of portal preferenceses
228            * @param end the upper bound of the range of portal preferenceses (not inclusive)
229            * @return the range of portal preferenceses
230            * @throws SystemException if a system exception occurred
231            */
232            @Override
233            public java.util.List<com.liferay.portal.model.PortalPreferences> getPortalPreferenceses(
234                    int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _portalPreferencesLocalService.getPortalPreferenceses(start, end);
237            }
238    
239            /**
240            * Returns the number of portal preferenceses.
241            *
242            * @return the number of portal preferenceses
243            * @throws SystemException if a system exception occurred
244            */
245            @Override
246            public int getPortalPreferencesesCount()
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return _portalPreferencesLocalService.getPortalPreferencesesCount();
249            }
250    
251            /**
252            * Updates the portal preferences in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
253            *
254            * @param portalPreferences the portal preferences
255            * @return the portal preferences that was updated
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public com.liferay.portal.model.PortalPreferences updatePortalPreferences(
260                    com.liferay.portal.model.PortalPreferences portalPreferences)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _portalPreferencesLocalService.updatePortalPreferences(portalPreferences);
263            }
264    
265            /**
266            * Returns the Spring bean ID for this bean.
267            *
268            * @return the Spring bean ID for this bean
269            */
270            @Override
271            public java.lang.String getBeanIdentifier() {
272                    return _portalPreferencesLocalService.getBeanIdentifier();
273            }
274    
275            /**
276            * Sets the Spring bean ID for this bean.
277            *
278            * @param beanIdentifier the Spring bean ID for this bean
279            */
280            @Override
281            public void setBeanIdentifier(java.lang.String beanIdentifier) {
282                    _portalPreferencesLocalService.setBeanIdentifier(beanIdentifier);
283            }
284    
285            @Override
286            public com.liferay.portal.model.PortalPreferences addPortalPreferences(
287                    long ownerId, int ownerType, java.lang.String defaultPreferences)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return _portalPreferencesLocalService.addPortalPreferences(ownerId,
290                            ownerType, defaultPreferences);
291            }
292    
293            /**
294            * @deprecated As of 6.2.0, replaced by {@link #addPortalPreferences(long,
295            int, String)}
296            */
297            @Override
298            public com.liferay.portal.model.PortalPreferences addPortalPreferences(
299                    long companyId, long ownerId, int ownerType,
300                    java.lang.String defaultPreferences)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _portalPreferencesLocalService.addPortalPreferences(companyId,
303                            ownerId, ownerType, defaultPreferences);
304            }
305    
306            @Override
307            public javax.portlet.PortletPreferences getPreferences(long ownerId,
308                    int ownerType)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _portalPreferencesLocalService.getPreferences(ownerId, ownerType);
311            }
312    
313            @Override
314            public javax.portlet.PortletPreferences getPreferences(long ownerId,
315                    int ownerType, java.lang.String defaultPreferences)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _portalPreferencesLocalService.getPreferences(ownerId,
318                            ownerType, defaultPreferences);
319            }
320    
321            /**
322            * @deprecated As of 6.2.0, replaced by {@link #getPreferences(long, int)}
323            */
324            @Override
325            public javax.portlet.PortletPreferences getPreferences(long companyId,
326                    long ownerId, int ownerType)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _portalPreferencesLocalService.getPreferences(companyId,
329                            ownerId, ownerType);
330            }
331    
332            /**
333            * @deprecated As of 6.2.0, replaced by {@link #getPreferences(long, int,
334            String)}
335            */
336            @Override
337            public javax.portlet.PortletPreferences getPreferences(long companyId,
338                    long ownerId, int ownerType, java.lang.String defaultPreferences)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _portalPreferencesLocalService.getPreferences(companyId,
341                            ownerId, ownerType, defaultPreferences);
342            }
343    
344            @Override
345            public com.liferay.portal.model.PortalPreferences updatePreferences(
346                    long ownerId, int ownerType,
347                    com.liferay.portlet.PortalPreferences portalPreferences)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _portalPreferencesLocalService.updatePreferences(ownerId,
350                            ownerType, portalPreferences);
351            }
352    
353            @Override
354            public com.liferay.portal.model.PortalPreferences updatePreferences(
355                    long ownerId, int ownerType, java.lang.String xml)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _portalPreferencesLocalService.updatePreferences(ownerId,
358                            ownerType, xml);
359            }
360    
361            /**
362             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
363             */
364            public PortalPreferencesLocalService getWrappedPortalPreferencesLocalService() {
365                    return _portalPreferencesLocalService;
366            }
367    
368            /**
369             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
370             */
371            public void setWrappedPortalPreferencesLocalService(
372                    PortalPreferencesLocalService portalPreferencesLocalService) {
373                    _portalPreferencesLocalService = portalPreferencesLocalService;
374            }
375    
376            @Override
377            public PortalPreferencesLocalService getWrappedService() {
378                    return _portalPreferencesLocalService;
379            }
380    
381            @Override
382            public void setWrappedService(
383                    PortalPreferencesLocalService portalPreferencesLocalService) {
384                    _portalPreferencesLocalService = portalPreferencesLocalService;
385            }
386    
387            private PortalPreferencesLocalService _portalPreferencesLocalService;
388    }