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            @Override
223            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
224                    return _userNotificationDeliveryLocalService.getIndexableActionableDynamicQuery();
225            }
226    
227            /**
228            * Returns the OSGi service identifier.
229            *
230            * @return the OSGi service identifier
231            */
232            @Override
233            public java.lang.String getOSGiServiceIdentifier() {
234                    return _userNotificationDeliveryLocalService.getOSGiServiceIdentifier();
235            }
236    
237            @Override
238            public com.liferay.portal.model.PersistedModel getPersistedModel(
239                    java.io.Serializable primaryKeyObj)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return _userNotificationDeliveryLocalService.getPersistedModel(primaryKeyObj);
242            }
243    
244            /**
245            * Returns a range of all the user notification deliveries.
246            *
247            * <p>
248            * 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.
249            * </p>
250            *
251            * @param start the lower bound of the range of user notification deliveries
252            * @param end the upper bound of the range of user notification deliveries (not inclusive)
253            * @return the range of user notification deliveries
254            */
255            @Override
256            public java.util.List<com.liferay.portal.model.UserNotificationDelivery> getUserNotificationDeliveries(
257                    int start, int end) {
258                    return _userNotificationDeliveryLocalService.getUserNotificationDeliveries(start,
259                            end);
260            }
261    
262            /**
263            * Returns the number of user notification deliveries.
264            *
265            * @return the number of user notification deliveries
266            */
267            @Override
268            public int getUserNotificationDeliveriesCount() {
269                    return _userNotificationDeliveryLocalService.getUserNotificationDeliveriesCount();
270            }
271    
272            @Override
273            public com.liferay.portal.model.UserNotificationDelivery getUserNotificationDelivery(
274                    long userId, java.lang.String portletId, long classNameId,
275                    int notificationType, int deliveryType, boolean deliver)
276                    throws com.liferay.portal.kernel.exception.PortalException {
277                    return _userNotificationDeliveryLocalService.getUserNotificationDelivery(userId,
278                            portletId, classNameId, notificationType, deliveryType, deliver);
279            }
280    
281            /**
282            * Returns the user notification delivery with the primary key.
283            *
284            * @param userNotificationDeliveryId the primary key of the user notification delivery
285            * @return the user notification delivery
286            * @throws PortalException if a user notification delivery with the primary key could not be found
287            */
288            @Override
289            public com.liferay.portal.model.UserNotificationDelivery getUserNotificationDelivery(
290                    long userNotificationDeliveryId)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return _userNotificationDeliveryLocalService.getUserNotificationDelivery(userNotificationDeliveryId);
293            }
294    
295            /**
296            * Updates the user notification delivery in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
297            *
298            * @param userNotificationDelivery the user notification delivery
299            * @return the user notification delivery that was updated
300            */
301            @Override
302            public com.liferay.portal.model.UserNotificationDelivery updateUserNotificationDelivery(
303                    com.liferay.portal.model.UserNotificationDelivery userNotificationDelivery) {
304                    return _userNotificationDeliveryLocalService.updateUserNotificationDelivery(userNotificationDelivery);
305            }
306    
307            @Override
308            public com.liferay.portal.model.UserNotificationDelivery updateUserNotificationDelivery(
309                    long userNotificationDeliveryId, boolean deliver) {
310                    return _userNotificationDeliveryLocalService.updateUserNotificationDelivery(userNotificationDeliveryId,
311                            deliver);
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    }