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