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 UserNotificationDeliveryLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see UserNotificationDeliveryLocalService
024     * @generated
025     */
026    @ProviderType
027    public class UserNotificationDeliveryLocalServiceWrapper
028            implements UserNotificationDeliveryLocalService,
029                    ServiceWrapper<UserNotificationDeliveryLocalService> {
030            public UserNotificationDeliveryLocalServiceWrapper(
031                    UserNotificationDeliveryLocalService userNotificationDeliveryLocalService) {
032                    _userNotificationDeliveryLocalService = userNotificationDeliveryLocalService;
033            }
034    
035            @Override
036            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
037                    return _userNotificationDeliveryLocalService.getActionableDynamicQuery();
038            }
039    
040            @Override
041            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
042                    return _userNotificationDeliveryLocalService.dynamicQuery();
043            }
044    
045            @Override
046            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
047                    return _userNotificationDeliveryLocalService.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 _userNotificationDeliveryLocalService.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 _userNotificationDeliveryLocalService.getPersistedModel(primaryKeyObj);
065            }
066    
067            /**
068            * Adds the user notification delivery to the database. Also notifies the appropriate model listeners.
069            *
070            * @param userNotificationDelivery the user notification delivery
071            * @return the user notification delivery that was added
072            */
073            @Override
074            public com.liferay.portal.kernel.model.UserNotificationDelivery addUserNotificationDelivery(
075                    com.liferay.portal.kernel.model.UserNotificationDelivery userNotificationDelivery) {
076                    return _userNotificationDeliveryLocalService.addUserNotificationDelivery(userNotificationDelivery);
077            }
078    
079            @Override
080            public com.liferay.portal.kernel.model.UserNotificationDelivery addUserNotificationDelivery(
081                    long userId, java.lang.String portletId, long classNameId,
082                    int notificationType, int deliveryType, boolean deliver)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _userNotificationDeliveryLocalService.addUserNotificationDelivery(userId,
085                            portletId, classNameId, notificationType, deliveryType, deliver);
086            }
087    
088            /**
089            * Creates a new user notification delivery with the primary key. Does not add the user notification delivery to the database.
090            *
091            * @param userNotificationDeliveryId the primary key for the new user notification delivery
092            * @return the new user notification delivery
093            */
094            @Override
095            public com.liferay.portal.kernel.model.UserNotificationDelivery createUserNotificationDelivery(
096                    long userNotificationDeliveryId) {
097                    return _userNotificationDeliveryLocalService.createUserNotificationDelivery(userNotificationDeliveryId);
098            }
099    
100            /**
101            * Deletes the user notification delivery from the database. Also notifies the appropriate model listeners.
102            *
103            * @param userNotificationDelivery the user notification delivery
104            * @return the user notification delivery that was removed
105            */
106            @Override
107            public com.liferay.portal.kernel.model.UserNotificationDelivery deleteUserNotificationDelivery(
108                    com.liferay.portal.kernel.model.UserNotificationDelivery userNotificationDelivery) {
109                    return _userNotificationDeliveryLocalService.deleteUserNotificationDelivery(userNotificationDelivery);
110            }
111    
112            /**
113            * Deletes the user notification delivery with the primary key from the database. Also notifies the appropriate model listeners.
114            *
115            * @param userNotificationDeliveryId the primary key of the user notification delivery
116            * @return the user notification delivery that was removed
117            * @throws PortalException if a user notification delivery with the primary key could not be found
118            */
119            @Override
120            public com.liferay.portal.kernel.model.UserNotificationDelivery deleteUserNotificationDelivery(
121                    long userNotificationDeliveryId)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return _userNotificationDeliveryLocalService.deleteUserNotificationDelivery(userNotificationDeliveryId);
124            }
125    
126            @Override
127            public com.liferay.portal.kernel.model.UserNotificationDelivery fetchUserNotificationDelivery(
128                    long userId, java.lang.String portletId, long classNameId,
129                    int notificationType, int deliveryType) {
130                    return _userNotificationDeliveryLocalService.fetchUserNotificationDelivery(userId,
131                            portletId, classNameId, notificationType, deliveryType);
132            }
133    
134            @Override
135            public com.liferay.portal.kernel.model.UserNotificationDelivery fetchUserNotificationDelivery(
136                    long userNotificationDeliveryId) {
137                    return _userNotificationDeliveryLocalService.fetchUserNotificationDelivery(userNotificationDeliveryId);
138            }
139    
140            @Override
141            public com.liferay.portal.kernel.model.UserNotificationDelivery getUserNotificationDelivery(
142                    long userId, java.lang.String portletId, long classNameId,
143                    int notificationType, int deliveryType, boolean deliver)
144                    throws com.liferay.portal.kernel.exception.PortalException {
145                    return _userNotificationDeliveryLocalService.getUserNotificationDelivery(userId,
146                            portletId, classNameId, notificationType, deliveryType, deliver);
147            }
148    
149            /**
150            * Returns the user notification delivery with the primary key.
151            *
152            * @param userNotificationDeliveryId the primary key of the user notification delivery
153            * @return the user notification delivery
154            * @throws PortalException if a user notification delivery with the primary key could not be found
155            */
156            @Override
157            public com.liferay.portal.kernel.model.UserNotificationDelivery getUserNotificationDelivery(
158                    long userNotificationDeliveryId)
159                    throws com.liferay.portal.kernel.exception.PortalException {
160                    return _userNotificationDeliveryLocalService.getUserNotificationDelivery(userNotificationDeliveryId);
161            }
162    
163            /**
164            * Updates the user notification delivery in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
165            *
166            * @param userNotificationDelivery the user notification delivery
167            * @return the user notification delivery that was updated
168            */
169            @Override
170            public com.liferay.portal.kernel.model.UserNotificationDelivery updateUserNotificationDelivery(
171                    com.liferay.portal.kernel.model.UserNotificationDelivery userNotificationDelivery) {
172                    return _userNotificationDeliveryLocalService.updateUserNotificationDelivery(userNotificationDelivery);
173            }
174    
175            @Override
176            public com.liferay.portal.kernel.model.UserNotificationDelivery updateUserNotificationDelivery(
177                    long userNotificationDeliveryId, boolean deliver) {
178                    return _userNotificationDeliveryLocalService.updateUserNotificationDelivery(userNotificationDeliveryId,
179                            deliver);
180            }
181    
182            /**
183            * Returns the number of user notification deliveries.
184            *
185            * @return the number of user notification deliveries
186            */
187            @Override
188            public int getUserNotificationDeliveriesCount() {
189                    return _userNotificationDeliveryLocalService.getUserNotificationDeliveriesCount();
190            }
191    
192            /**
193            * Returns the OSGi service identifier.
194            *
195            * @return the OSGi service identifier
196            */
197            @Override
198            public java.lang.String getOSGiServiceIdentifier() {
199                    return _userNotificationDeliveryLocalService.getOSGiServiceIdentifier();
200            }
201    
202            /**
203            * Performs a dynamic query on the database and returns the matching rows.
204            *
205            * @param dynamicQuery the dynamic query
206            * @return the matching rows
207            */
208            @Override
209            public <T> java.util.List<T> dynamicQuery(
210                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
211                    return _userNotificationDeliveryLocalService.dynamicQuery(dynamicQuery);
212            }
213    
214            /**
215            * Performs a dynamic query on the database and returns a range of the matching rows.
216            *
217            * <p>
218            * 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.UserNotificationDeliveryModelImpl}. 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.
219            * </p>
220            *
221            * @param dynamicQuery the dynamic query
222            * @param start the lower bound of the range of model instances
223            * @param end the upper bound of the range of model instances (not inclusive)
224            * @return the range of matching rows
225            */
226            @Override
227            public <T> java.util.List<T> dynamicQuery(
228                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
229                    int end) {
230                    return _userNotificationDeliveryLocalService.dynamicQuery(dynamicQuery,
231                            start, end);
232            }
233    
234            /**
235            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
236            *
237            * <p>
238            * 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.UserNotificationDeliveryModelImpl}. 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.
239            * </p>
240            *
241            * @param dynamicQuery the dynamic query
242            * @param start the lower bound of the range of model instances
243            * @param end the upper bound of the range of model instances (not inclusive)
244            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
245            * @return the ordered range of matching rows
246            */
247            @Override
248            public <T> java.util.List<T> dynamicQuery(
249                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
250                    int end,
251                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
252                    return _userNotificationDeliveryLocalService.dynamicQuery(dynamicQuery,
253                            start, end, orderByComparator);
254            }
255    
256            /**
257            * Returns a range of all the user notification deliveries.
258            *
259            * <p>
260            * 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.UserNotificationDeliveryModelImpl}. 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.
261            * </p>
262            *
263            * @param start the lower bound of the range of user notification deliveries
264            * @param end the upper bound of the range of user notification deliveries (not inclusive)
265            * @return the range of user notification deliveries
266            */
267            @Override
268            public java.util.List<com.liferay.portal.kernel.model.UserNotificationDelivery> getUserNotificationDeliveries(
269                    int start, int end) {
270                    return _userNotificationDeliveryLocalService.getUserNotificationDeliveries(start,
271                            end);
272            }
273    
274            /**
275            * Returns the number of rows matching the dynamic query.
276            *
277            * @param dynamicQuery the dynamic query
278            * @return the number of rows matching the dynamic query
279            */
280            @Override
281            public long dynamicQueryCount(
282                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
283                    return _userNotificationDeliveryLocalService.dynamicQueryCount(dynamicQuery);
284            }
285    
286            /**
287            * Returns the number of rows matching the dynamic query.
288            *
289            * @param dynamicQuery the dynamic query
290            * @param projection the projection to apply to the query
291            * @return the number of rows matching the dynamic query
292            */
293            @Override
294            public long dynamicQueryCount(
295                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
296                    com.liferay.portal.kernel.dao.orm.Projection projection) {
297                    return _userNotificationDeliveryLocalService.dynamicQueryCount(dynamicQuery,
298                            projection);
299            }
300    
301            @Override
302            public void deleteUserNotificationDeliveries(long userId) {
303                    _userNotificationDeliveryLocalService.deleteUserNotificationDeliveries(userId);
304            }
305    
306            @Override
307            public void deleteUserNotificationDelivery(long userId,
308                    java.lang.String portletId, long classNameId, int notificationType,
309                    int deliveryType) {
310                    _userNotificationDeliveryLocalService.deleteUserNotificationDelivery(userId,
311                            portletId, classNameId, notificationType, deliveryType);
312            }
313    
314            @Override
315            public UserNotificationDeliveryLocalService getWrappedService() {
316                    return _userNotificationDeliveryLocalService;
317            }
318    
319            @Override
320            public void setWrappedService(
321                    UserNotificationDeliveryLocalService userNotificationDeliveryLocalService) {
322                    _userNotificationDeliveryLocalService = userNotificationDeliveryLocalService;
323            }
324    
325            private UserNotificationDeliveryLocalService _userNotificationDeliveryLocalService;
326    }