001    /**
002     * Copyright (c) 2000-present 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            * @deprecated As of 6.2.0, replaced by {@link #addPortalPreferences(long,
037            int, String)}
038            */
039            @Deprecated
040            @Override
041            public com.liferay.portal.model.PortalPreferences addPortalPreferences(
042                    long companyId, long ownerId, int ownerType,
043                    java.lang.String defaultPreferences) {
044                    return _portalPreferencesLocalService.addPortalPreferences(companyId,
045                            ownerId, ownerType, defaultPreferences);
046            }
047    
048            @Override
049            public com.liferay.portal.model.PortalPreferences addPortalPreferences(
050                    long ownerId, int ownerType, java.lang.String defaultPreferences) {
051                    return _portalPreferencesLocalService.addPortalPreferences(ownerId,
052                            ownerType, defaultPreferences);
053            }
054    
055            /**
056            * Adds the portal preferences to the database. Also notifies the appropriate model listeners.
057            *
058            * @param portalPreferences the portal preferences
059            * @return the portal preferences that was added
060            */
061            @Override
062            public com.liferay.portal.model.PortalPreferences addPortalPreferences(
063                    com.liferay.portal.model.PortalPreferences portalPreferences) {
064                    return _portalPreferencesLocalService.addPortalPreferences(portalPreferences);
065            }
066    
067            /**
068            * Creates a new portal preferences with the primary key. Does not add the portal preferences to the database.
069            *
070            * @param portalPreferencesId the primary key for the new portal preferences
071            * @return the new portal preferences
072            */
073            @Override
074            public com.liferay.portal.model.PortalPreferences createPortalPreferences(
075                    long portalPreferencesId) {
076                    return _portalPreferencesLocalService.createPortalPreferences(portalPreferencesId);
077            }
078    
079            /**
080            * @throws PortalException
081            */
082            @Override
083            public com.liferay.portal.model.PersistedModel deletePersistedModel(
084                    com.liferay.portal.model.PersistedModel persistedModel)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    return _portalPreferencesLocalService.deletePersistedModel(persistedModel);
087            }
088    
089            /**
090            * Deletes the portal preferences from the database. Also notifies the appropriate model listeners.
091            *
092            * @param portalPreferences the portal preferences
093            * @return the portal preferences that was removed
094            */
095            @Override
096            public com.liferay.portal.model.PortalPreferences deletePortalPreferences(
097                    com.liferay.portal.model.PortalPreferences portalPreferences) {
098                    return _portalPreferencesLocalService.deletePortalPreferences(portalPreferences);
099            }
100    
101            /**
102            * Deletes the portal preferences with the primary key from the database. Also notifies the appropriate model listeners.
103            *
104            * @param portalPreferencesId the primary key of the portal preferences
105            * @return the portal preferences that was removed
106            * @throws PortalException if a portal preferences with the primary key could not be found
107            */
108            @Override
109            public com.liferay.portal.model.PortalPreferences deletePortalPreferences(
110                    long portalPreferencesId)
111                    throws com.liferay.portal.kernel.exception.PortalException {
112                    return _portalPreferencesLocalService.deletePortalPreferences(portalPreferencesId);
113            }
114    
115            @Override
116            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
117                    return _portalPreferencesLocalService.dynamicQuery();
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns the matching rows.
122            *
123            * @param dynamicQuery the dynamic query
124            * @return the matching rows
125            */
126            @Override
127            public <T> java.util.List<T> dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
129                    return _portalPreferencesLocalService.dynamicQuery(dynamicQuery);
130            }
131    
132            /**
133            * Performs a dynamic query on the database and returns a range of the matching rows.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param dynamicQuery the dynamic query
140            * @param start the lower bound of the range of model instances
141            * @param end the upper bound of the range of model instances (not inclusive)
142            * @return the range of matching rows
143            */
144            @Override
145            public <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end) {
148                    return _portalPreferencesLocalService.dynamicQuery(dynamicQuery, start,
149                            end);
150            }
151    
152            /**
153            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param dynamicQuery the dynamic query
160            * @param start the lower bound of the range of model instances
161            * @param end the upper bound of the range of model instances (not inclusive)
162            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
163            * @return the ordered range of matching rows
164            */
165            @Override
166            public <T> java.util.List<T> dynamicQuery(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
168                    int end,
169                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
170                    return _portalPreferencesLocalService.dynamicQuery(dynamicQuery, start,
171                            end, orderByComparator);
172            }
173    
174            /**
175            * Returns the number of rows matching the dynamic query.
176            *
177            * @param dynamicQuery the dynamic query
178            * @return the number of rows matching the dynamic query
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
183                    return _portalPreferencesLocalService.dynamicQueryCount(dynamicQuery);
184            }
185    
186            /**
187            * Returns the number of rows matching the dynamic query.
188            *
189            * @param dynamicQuery the dynamic query
190            * @param projection the projection to apply to the query
191            * @return the number of rows matching the dynamic query
192            */
193            @Override
194            public long dynamicQueryCount(
195                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
196                    com.liferay.portal.kernel.dao.orm.Projection projection) {
197                    return _portalPreferencesLocalService.dynamicQueryCount(dynamicQuery,
198                            projection);
199            }
200    
201            @Override
202            public com.liferay.portal.model.PortalPreferences fetchPortalPreferences(
203                    long portalPreferencesId) {
204                    return _portalPreferencesLocalService.fetchPortalPreferences(portalPreferencesId);
205            }
206    
207            @Override
208            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
209                    return _portalPreferencesLocalService.getActionableDynamicQuery();
210            }
211    
212            @Override
213            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
214                    return _portalPreferencesLocalService.getIndexableActionableDynamicQuery();
215            }
216    
217            /**
218            * Returns the OSGi service identifier.
219            *
220            * @return the OSGi service identifier
221            */
222            @Override
223            public java.lang.String getOSGiServiceIdentifier() {
224                    return _portalPreferencesLocalService.getOSGiServiceIdentifier();
225            }
226    
227            @Override
228            public com.liferay.portal.model.PersistedModel getPersistedModel(
229                    java.io.Serializable primaryKeyObj)
230                    throws com.liferay.portal.kernel.exception.PortalException {
231                    return _portalPreferencesLocalService.getPersistedModel(primaryKeyObj);
232            }
233    
234            /**
235            * Returns the portal preferences with the primary key.
236            *
237            * @param portalPreferencesId the primary key of the portal preferences
238            * @return the portal preferences
239            * @throws PortalException if a portal preferences with the primary key could not be found
240            */
241            @Override
242            public com.liferay.portal.model.PortalPreferences getPortalPreferences(
243                    long portalPreferencesId)
244                    throws com.liferay.portal.kernel.exception.PortalException {
245                    return _portalPreferencesLocalService.getPortalPreferences(portalPreferencesId);
246            }
247    
248            /**
249            * Returns a range of all the portal preferenceses.
250            *
251            * <p>
252            * 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.
253            * </p>
254            *
255            * @param start the lower bound of the range of portal preferenceses
256            * @param end the upper bound of the range of portal preferenceses (not inclusive)
257            * @return the range of portal preferenceses
258            */
259            @Override
260            public java.util.List<com.liferay.portal.model.PortalPreferences> getPortalPreferenceses(
261                    int start, int end) {
262                    return _portalPreferencesLocalService.getPortalPreferenceses(start, end);
263            }
264    
265            /**
266            * Returns the number of portal preferenceses.
267            *
268            * @return the number of portal preferenceses
269            */
270            @Override
271            public int getPortalPreferencesesCount() {
272                    return _portalPreferencesLocalService.getPortalPreferencesesCount();
273            }
274    
275            /**
276            * @deprecated As of 6.2.0, replaced by {@link #getPreferences(long, int)}
277            */
278            @Deprecated
279            @Override
280            public javax.portlet.PortletPreferences getPreferences(long companyId,
281                    long ownerId, int ownerType) {
282                    return _portalPreferencesLocalService.getPreferences(companyId,
283                            ownerId, ownerType);
284            }
285    
286            /**
287            * @deprecated As of 6.2.0, replaced by {@link #getPreferences(long, int,
288            String)}
289            */
290            @Deprecated
291            @Override
292            public javax.portlet.PortletPreferences getPreferences(long companyId,
293                    long ownerId, int ownerType, java.lang.String defaultPreferences) {
294                    return _portalPreferencesLocalService.getPreferences(companyId,
295                            ownerId, ownerType, defaultPreferences);
296            }
297    
298            @Override
299            public javax.portlet.PortletPreferences getPreferences(long ownerId,
300                    int ownerType) {
301                    return _portalPreferencesLocalService.getPreferences(ownerId, ownerType);
302            }
303    
304            @Override
305            public javax.portlet.PortletPreferences getPreferences(long ownerId,
306                    int ownerType, java.lang.String defaultPreferences) {
307                    return _portalPreferencesLocalService.getPreferences(ownerId,
308                            ownerType, defaultPreferences);
309            }
310    
311            /**
312            * Updates the portal preferences in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
313            *
314            * @param portalPreferences the portal preferences
315            * @return the portal preferences that was updated
316            */
317            @Override
318            public com.liferay.portal.model.PortalPreferences updatePortalPreferences(
319                    com.liferay.portal.model.PortalPreferences portalPreferences) {
320                    return _portalPreferencesLocalService.updatePortalPreferences(portalPreferences);
321            }
322    
323            @Override
324            public com.liferay.portal.model.PortalPreferences updatePreferences(
325                    long ownerId, int ownerType,
326                    com.liferay.portlet.PortalPreferences portalPreferences) {
327                    return _portalPreferencesLocalService.updatePreferences(ownerId,
328                            ownerType, portalPreferences);
329            }
330    
331            @Override
332            public com.liferay.portal.model.PortalPreferences updatePreferences(
333                    long ownerId, int ownerType, java.lang.String xml) {
334                    return _portalPreferencesLocalService.updatePreferences(ownerId,
335                            ownerType, xml);
336            }
337    
338            @Override
339            public PortalPreferencesLocalService getWrappedService() {
340                    return _portalPreferencesLocalService;
341            }
342    
343            @Override
344            public void setWrappedService(
345                    PortalPreferencesLocalService portalPreferencesLocalService) {
346                    _portalPreferencesLocalService = portalPreferencesLocalService;
347            }
348    
349            private PortalPreferencesLocalService _portalPreferencesLocalService;
350    }