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.portlet.announcements.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.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.portlet.announcements.model.AnnouncementsDelivery addAnnouncementsDelivery(
045                    com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery) {
046                    return _announcementsDeliveryLocalService.addAnnouncementsDelivery(announcementsDelivery);
047            }
048    
049            @Override
050            public com.liferay.portlet.announcements.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.portlet.announcements.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.portlet.announcements.model.AnnouncementsDelivery deleteAnnouncementsDelivery(
076                    com.liferay.portlet.announcements.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.portlet.announcements.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 void deleteDeliveries(long userId) {
096                    _announcementsDeliveryLocalService.deleteDeliveries(userId);
097            }
098    
099            @Override
100            public void deleteDelivery(
101                    com.liferay.portlet.announcements.model.AnnouncementsDelivery delivery) {
102                    _announcementsDeliveryLocalService.deleteDelivery(delivery);
103            }
104    
105            @Override
106            public void deleteDelivery(long deliveryId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    _announcementsDeliveryLocalService.deleteDelivery(deliveryId);
109            }
110    
111            @Override
112            public void deleteDelivery(long userId, java.lang.String type) {
113                    _announcementsDeliveryLocalService.deleteDelivery(userId, type);
114            }
115    
116            /**
117            * @throws PortalException
118            */
119            @Override
120            public com.liferay.portal.model.PersistedModel deletePersistedModel(
121                    com.liferay.portal.model.PersistedModel persistedModel)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return _announcementsDeliveryLocalService.deletePersistedModel(persistedModel);
124            }
125    
126            @Override
127            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
128                    return _announcementsDeliveryLocalService.dynamicQuery();
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns the matching rows.
133            *
134            * @param dynamicQuery the dynamic query
135            * @return the matching rows
136            */
137            @Override
138            public <T> java.util.List<T> dynamicQuery(
139                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
140                    return _announcementsDeliveryLocalService.dynamicQuery(dynamicQuery);
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns a range of the matching rows.
145            *
146            * <p>
147            * 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.
148            * </p>
149            *
150            * @param dynamicQuery the dynamic query
151            * @param start the lower bound of the range of model instances
152            * @param end the upper bound of the range of model instances (not inclusive)
153            * @return the range of matching rows
154            */
155            @Override
156            public <T> java.util.List<T> dynamicQuery(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158                    int end) {
159                    return _announcementsDeliveryLocalService.dynamicQuery(dynamicQuery,
160                            start, end);
161            }
162    
163            /**
164            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param dynamicQuery the dynamic query
171            * @param start the lower bound of the range of model instances
172            * @param end the upper bound of the range of model instances (not inclusive)
173            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
174            * @return the ordered range of matching rows
175            */
176            @Override
177            public <T> java.util.List<T> dynamicQuery(
178                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
179                    int end,
180                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
181                    return _announcementsDeliveryLocalService.dynamicQuery(dynamicQuery,
182                            start, end, orderByComparator);
183            }
184    
185            /**
186            * Returns the number of rows matching the dynamic query.
187            *
188            * @param dynamicQuery the dynamic query
189            * @return the number of rows matching the dynamic query
190            */
191            @Override
192            public long dynamicQueryCount(
193                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
194                    return _announcementsDeliveryLocalService.dynamicQueryCount(dynamicQuery);
195            }
196    
197            /**
198            * Returns the number of rows matching the dynamic query.
199            *
200            * @param dynamicQuery the dynamic query
201            * @param projection the projection to apply to the query
202            * @return the number of rows matching the dynamic query
203            */
204            @Override
205            public long dynamicQueryCount(
206                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
207                    com.liferay.portal.kernel.dao.orm.Projection projection) {
208                    return _announcementsDeliveryLocalService.dynamicQueryCount(dynamicQuery,
209                            projection);
210            }
211    
212            @Override
213            public com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchAnnouncementsDelivery(
214                    long deliveryId) {
215                    return _announcementsDeliveryLocalService.fetchAnnouncementsDelivery(deliveryId);
216            }
217    
218            @Override
219            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
220                    return _announcementsDeliveryLocalService.getActionableDynamicQuery();
221            }
222    
223            /**
224            * Returns a range of all the announcements deliveries.
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.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.
228            * </p>
229            *
230            * @param start the lower bound of the range of announcements deliveries
231            * @param end the upper bound of the range of announcements deliveries (not inclusive)
232            * @return the range of announcements deliveries
233            */
234            @Override
235            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> getAnnouncementsDeliveries(
236                    int start, int end) {
237                    return _announcementsDeliveryLocalService.getAnnouncementsDeliveries(start,
238                            end);
239            }
240    
241            /**
242            * Returns the number of announcements deliveries.
243            *
244            * @return the number of announcements deliveries
245            */
246            @Override
247            public int getAnnouncementsDeliveriesCount() {
248                    return _announcementsDeliveryLocalService.getAnnouncementsDeliveriesCount();
249            }
250    
251            /**
252            * Returns the announcements delivery with the primary key.
253            *
254            * @param deliveryId the primary key of the announcements delivery
255            * @return the announcements delivery
256            * @throws PortalException if a announcements delivery with the primary key could not be found
257            */
258            @Override
259            public com.liferay.portlet.announcements.model.AnnouncementsDelivery getAnnouncementsDelivery(
260                    long deliveryId)
261                    throws com.liferay.portal.kernel.exception.PortalException {
262                    return _announcementsDeliveryLocalService.getAnnouncementsDelivery(deliveryId);
263            }
264    
265            @Override
266            public com.liferay.portlet.announcements.model.AnnouncementsDelivery getDelivery(
267                    long deliveryId)
268                    throws com.liferay.portal.kernel.exception.PortalException {
269                    return _announcementsDeliveryLocalService.getDelivery(deliveryId);
270            }
271    
272            @Override
273            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
274                    return _announcementsDeliveryLocalService.getIndexableActionableDynamicQuery();
275            }
276    
277            /**
278            * Returns the OSGi service identifier.
279            *
280            * @return the OSGi service identifier
281            */
282            @Override
283            public java.lang.String getOSGiServiceIdentifier() {
284                    return _announcementsDeliveryLocalService.getOSGiServiceIdentifier();
285            }
286    
287            @Override
288            public com.liferay.portal.model.PersistedModel getPersistedModel(
289                    java.io.Serializable primaryKeyObj)
290                    throws com.liferay.portal.kernel.exception.PortalException {
291                    return _announcementsDeliveryLocalService.getPersistedModel(primaryKeyObj);
292            }
293    
294            @Override
295            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> getUserDeliveries(
296                    long userId) throws com.liferay.portal.kernel.exception.PortalException {
297                    return _announcementsDeliveryLocalService.getUserDeliveries(userId);
298            }
299    
300            @Override
301            public com.liferay.portlet.announcements.model.AnnouncementsDelivery getUserDelivery(
302                    long userId, java.lang.String type)
303                    throws com.liferay.portal.kernel.exception.PortalException {
304                    return _announcementsDeliveryLocalService.getUserDelivery(userId, type);
305            }
306    
307            /**
308            * Updates the announcements delivery in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
309            *
310            * @param announcementsDelivery the announcements delivery
311            * @return the announcements delivery that was updated
312            */
313            @Override
314            public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateAnnouncementsDelivery(
315                    com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery) {
316                    return _announcementsDeliveryLocalService.updateAnnouncementsDelivery(announcementsDelivery);
317            }
318    
319            @Override
320            public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateDelivery(
321                    long userId, java.lang.String type, boolean email, boolean sms,
322                    boolean website)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return _announcementsDeliveryLocalService.updateDelivery(userId, type,
325                            email, sms, website);
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    }