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