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