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 AnnouncementsEntryLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AnnouncementsEntryLocalService
026     * @generated
027     */
028    @ProviderType
029    public class AnnouncementsEntryLocalServiceWrapper
030            implements AnnouncementsEntryLocalService,
031                    ServiceWrapper<AnnouncementsEntryLocalService> {
032            public AnnouncementsEntryLocalServiceWrapper(
033                    AnnouncementsEntryLocalService announcementsEntryLocalService) {
034                    _announcementsEntryLocalService = announcementsEntryLocalService;
035            }
036    
037            /**
038            * Adds the announcements entry to the database. Also notifies the appropriate model listeners.
039            *
040            * @param announcementsEntry the announcements entry
041            * @return the announcements entry that was added
042            */
043            @Override
044            public com.liferay.announcements.kernel.model.AnnouncementsEntry addAnnouncementsEntry(
045                    com.liferay.announcements.kernel.model.AnnouncementsEntry announcementsEntry) {
046                    return _announcementsEntryLocalService.addAnnouncementsEntry(announcementsEntry);
047            }
048    
049            @Override
050            public com.liferay.announcements.kernel.model.AnnouncementsEntry addEntry(
051                    long userId, long classNameId, long classPK, java.lang.String title,
052                    java.lang.String content, java.lang.String url, java.lang.String type,
053                    int displayDateMonth, int displayDateDay, int displayDateYear,
054                    int displayDateHour, int displayDateMinute, boolean displayImmediately,
055                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
056                    int expirationDateHour, int expirationDateMinute, int priority,
057                    boolean alert)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return _announcementsEntryLocalService.addEntry(userId, classNameId,
060                            classPK, title, content, url, type, displayDateMonth,
061                            displayDateDay, displayDateYear, displayDateHour,
062                            displayDateMinute, displayImmediately, expirationDateMonth,
063                            expirationDateDay, expirationDateYear, expirationDateHour,
064                            expirationDateMinute, priority, alert);
065            }
066    
067            /**
068            * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.
069            *
070            * @param entryId the primary key for the new announcements entry
071            * @return the new announcements entry
072            */
073            @Override
074            public com.liferay.announcements.kernel.model.AnnouncementsEntry createAnnouncementsEntry(
075                    long entryId) {
076                    return _announcementsEntryLocalService.createAnnouncementsEntry(entryId);
077            }
078    
079            /**
080            * Deletes the announcements entry from the database. Also notifies the appropriate model listeners.
081            *
082            * @param announcementsEntry the announcements entry
083            * @return the announcements entry that was removed
084            */
085            @Override
086            public com.liferay.announcements.kernel.model.AnnouncementsEntry deleteAnnouncementsEntry(
087                    com.liferay.announcements.kernel.model.AnnouncementsEntry announcementsEntry) {
088                    return _announcementsEntryLocalService.deleteAnnouncementsEntry(announcementsEntry);
089            }
090    
091            /**
092            * Deletes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners.
093            *
094            * @param entryId the primary key of the announcements entry
095            * @return the announcements entry that was removed
096            * @throws PortalException if a announcements entry with the primary key could not be found
097            */
098            @Override
099            public com.liferay.announcements.kernel.model.AnnouncementsEntry deleteAnnouncementsEntry(
100                    long entryId)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return _announcementsEntryLocalService.deleteAnnouncementsEntry(entryId);
103            }
104    
105            @Override
106            public com.liferay.announcements.kernel.model.AnnouncementsEntry fetchAnnouncementsEntry(
107                    long entryId) {
108                    return _announcementsEntryLocalService.fetchAnnouncementsEntry(entryId);
109            }
110    
111            /**
112            * Returns the announcements entry with the matching UUID and company.
113            *
114            * @param uuid the announcements entry's UUID
115            * @param companyId the primary key of the company
116            * @return the matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
117            */
118            @Override
119            public com.liferay.announcements.kernel.model.AnnouncementsEntry fetchAnnouncementsEntryByUuidAndCompanyId(
120                    java.lang.String uuid, long companyId) {
121                    return _announcementsEntryLocalService.fetchAnnouncementsEntryByUuidAndCompanyId(uuid,
122                            companyId);
123            }
124    
125            /**
126            * Returns the announcements entry with the primary key.
127            *
128            * @param entryId the primary key of the announcements entry
129            * @return the announcements entry
130            * @throws PortalException if a announcements entry with the primary key could not be found
131            */
132            @Override
133            public com.liferay.announcements.kernel.model.AnnouncementsEntry getAnnouncementsEntry(
134                    long entryId)
135                    throws com.liferay.portal.kernel.exception.PortalException {
136                    return _announcementsEntryLocalService.getAnnouncementsEntry(entryId);
137            }
138    
139            /**
140            * Returns the announcements entry with the matching UUID and company.
141            *
142            * @param uuid the announcements entry's UUID
143            * @param companyId the primary key of the company
144            * @return the matching announcements entry
145            * @throws PortalException if a matching announcements entry could not be found
146            */
147            @Override
148            public com.liferay.announcements.kernel.model.AnnouncementsEntry getAnnouncementsEntryByUuidAndCompanyId(
149                    java.lang.String uuid, long companyId)
150                    throws com.liferay.portal.kernel.exception.PortalException {
151                    return _announcementsEntryLocalService.getAnnouncementsEntryByUuidAndCompanyId(uuid,
152                            companyId);
153            }
154    
155            @Override
156            public com.liferay.announcements.kernel.model.AnnouncementsEntry getEntry(
157                    long entryId)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    return _announcementsEntryLocalService.getEntry(entryId);
160            }
161    
162            /**
163            * Updates the announcements entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
164            *
165            * @param announcementsEntry the announcements entry
166            * @return the announcements entry that was updated
167            */
168            @Override
169            public com.liferay.announcements.kernel.model.AnnouncementsEntry updateAnnouncementsEntry(
170                    com.liferay.announcements.kernel.model.AnnouncementsEntry announcementsEntry) {
171                    return _announcementsEntryLocalService.updateAnnouncementsEntry(announcementsEntry);
172            }
173    
174            @Override
175            public com.liferay.announcements.kernel.model.AnnouncementsEntry updateEntry(
176                    long userId, long entryId, java.lang.String title,
177                    java.lang.String content, java.lang.String url, java.lang.String type,
178                    int displayDateMonth, int displayDateDay, int displayDateYear,
179                    int displayDateHour, int displayDateMinute, boolean displayImmediately,
180                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
181                    int expirationDateHour, int expirationDateMinute, int priority)
182                    throws com.liferay.portal.kernel.exception.PortalException {
183                    return _announcementsEntryLocalService.updateEntry(userId, entryId,
184                            title, content, url, type, displayDateMonth, displayDateDay,
185                            displayDateYear, displayDateHour, displayDateMinute,
186                            displayImmediately, expirationDateMonth, expirationDateDay,
187                            expirationDateYear, expirationDateHour, expirationDateMinute,
188                            priority);
189            }
190    
191            @Override
192            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
193                    return _announcementsEntryLocalService.getActionableDynamicQuery();
194            }
195    
196            @Override
197            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
198                    return _announcementsEntryLocalService.dynamicQuery();
199            }
200    
201            @Override
202            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
203                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
204                    return _announcementsEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
205            }
206    
207            @Override
208            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
209                    return _announcementsEntryLocalService.getIndexableActionableDynamicQuery();
210            }
211    
212            /**
213            * @throws PortalException
214            */
215            @Override
216            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
217                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return _announcementsEntryLocalService.deletePersistedModel(persistedModel);
220            }
221    
222            @Override
223            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
224                    java.io.Serializable primaryKeyObj)
225                    throws com.liferay.portal.kernel.exception.PortalException {
226                    return _announcementsEntryLocalService.getPersistedModel(primaryKeyObj);
227            }
228    
229            /**
230            * Returns the number of announcements entries.
231            *
232            * @return the number of announcements entries
233            */
234            @Override
235            public int getAnnouncementsEntriesCount() {
236                    return _announcementsEntryLocalService.getAnnouncementsEntriesCount();
237            }
238    
239            @Override
240            public int getEntriesCount(long classNameId, long classPK, boolean alert) {
241                    return _announcementsEntryLocalService.getEntriesCount(classNameId,
242                            classPK, alert);
243            }
244    
245            @Override
246            public int getEntriesCount(long userId,
247                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes, boolean alert,
248                    int flagValue) {
249                    return _announcementsEntryLocalService.getEntriesCount(userId, scopes,
250                            alert, flagValue);
251            }
252    
253            @Override
254            public int getEntriesCount(long userId,
255                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
256                    int displayDateMonth, int displayDateDay, int displayDateYear,
257                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
258                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
259                    int expirationDateMinute, boolean alert, int flagValue) {
260                    return _announcementsEntryLocalService.getEntriesCount(userId, scopes,
261                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
262                            displayDateMinute, expirationDateMonth, expirationDateDay,
263                            expirationDateYear, expirationDateHour, expirationDateMinute,
264                            alert, flagValue);
265            }
266    
267            @Override
268            public int getEntriesCount(long userId, long classNameId, long[] classPKs,
269                    boolean alert, int flagValue) {
270                    return _announcementsEntryLocalService.getEntriesCount(userId,
271                            classNameId, classPKs, alert, flagValue);
272            }
273    
274            @Override
275            public int getEntriesCount(long userId, long classNameId, long[] classPKs,
276                    int displayDateMonth, int displayDateDay, int displayDateYear,
277                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
278                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
279                    int expirationDateMinute, boolean alert, int flagValue) {
280                    return _announcementsEntryLocalService.getEntriesCount(userId,
281                            classNameId, classPKs, displayDateMonth, displayDateDay,
282                            displayDateYear, displayDateHour, displayDateMinute,
283                            expirationDateMonth, expirationDateDay, expirationDateYear,
284                            expirationDateHour, expirationDateMinute, alert, flagValue);
285            }
286    
287            @Override
288            public int getUserEntriesCount(long userId) {
289                    return _announcementsEntryLocalService.getUserEntriesCount(userId);
290            }
291    
292            /**
293            * Returns the OSGi service identifier.
294            *
295            * @return the OSGi service identifier
296            */
297            @Override
298            public java.lang.String getOSGiServiceIdentifier() {
299                    return _announcementsEntryLocalService.getOSGiServiceIdentifier();
300            }
301    
302            /**
303            * Performs a dynamic query on the database and returns the matching rows.
304            *
305            * @param dynamicQuery the dynamic query
306            * @return the matching rows
307            */
308            @Override
309            public <T> java.util.List<T> dynamicQuery(
310                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
311                    return _announcementsEntryLocalService.dynamicQuery(dynamicQuery);
312            }
313    
314            /**
315            * Performs a dynamic query on the database and returns a range of the matching rows.
316            *
317            * <p>
318            * 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.AnnouncementsEntryModelImpl}. 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.
319            * </p>
320            *
321            * @param dynamicQuery the dynamic query
322            * @param start the lower bound of the range of model instances
323            * @param end the upper bound of the range of model instances (not inclusive)
324            * @return the range of matching rows
325            */
326            @Override
327            public <T> java.util.List<T> dynamicQuery(
328                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
329                    int end) {
330                    return _announcementsEntryLocalService.dynamicQuery(dynamicQuery,
331                            start, end);
332            }
333    
334            /**
335            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
336            *
337            * <p>
338            * 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.AnnouncementsEntryModelImpl}. 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.
339            * </p>
340            *
341            * @param dynamicQuery the dynamic query
342            * @param start the lower bound of the range of model instances
343            * @param end the upper bound of the range of model instances (not inclusive)
344            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
345            * @return the ordered range of matching rows
346            */
347            @Override
348            public <T> java.util.List<T> dynamicQuery(
349                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
350                    int end,
351                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
352                    return _announcementsEntryLocalService.dynamicQuery(dynamicQuery,
353                            start, end, orderByComparator);
354            }
355    
356            /**
357            * Returns a range of all the announcements entries.
358            *
359            * <p>
360            * 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.AnnouncementsEntryModelImpl}. 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.
361            * </p>
362            *
363            * @param start the lower bound of the range of announcements entries
364            * @param end the upper bound of the range of announcements entries (not inclusive)
365            * @return the range of announcements entries
366            */
367            @Override
368            public java.util.List<com.liferay.announcements.kernel.model.AnnouncementsEntry> getAnnouncementsEntries(
369                    int start, int end) {
370                    return _announcementsEntryLocalService.getAnnouncementsEntries(start,
371                            end);
372            }
373    
374            @Override
375            public java.util.List<com.liferay.announcements.kernel.model.AnnouncementsEntry> getEntries(
376                    long classNameId, long classPK, boolean alert, int start, int end) {
377                    return _announcementsEntryLocalService.getEntries(classNameId, classPK,
378                            alert, start, end);
379            }
380    
381            @Override
382            public java.util.List<com.liferay.announcements.kernel.model.AnnouncementsEntry> getEntries(
383                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
384                    boolean alert, int flagValue, int start, int end) {
385                    return _announcementsEntryLocalService.getEntries(userId, scopes,
386                            alert, flagValue, start, end);
387            }
388    
389            @Override
390            public java.util.List<com.liferay.announcements.kernel.model.AnnouncementsEntry> getEntries(
391                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
392                    int displayDateMonth, int displayDateDay, int displayDateYear,
393                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
394                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
395                    int expirationDateMinute, boolean alert, int flagValue, int start,
396                    int end) {
397                    return _announcementsEntryLocalService.getEntries(userId, scopes,
398                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
399                            displayDateMinute, expirationDateMonth, expirationDateDay,
400                            expirationDateYear, expirationDateHour, expirationDateMinute,
401                            alert, flagValue, start, end);
402            }
403    
404            @Override
405            public java.util.List<com.liferay.announcements.kernel.model.AnnouncementsEntry> getEntries(
406                    long userId, long classNameId, long[] classPKs, int displayDateMonth,
407                    int displayDateDay, int displayDateYear, int displayDateHour,
408                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
409                    int expirationDateYear, int expirationDateHour,
410                    int expirationDateMinute, boolean alert, int flagValue, int start,
411                    int end) {
412                    return _announcementsEntryLocalService.getEntries(userId, classNameId,
413                            classPKs, displayDateMonth, displayDateDay, displayDateYear,
414                            displayDateHour, displayDateMinute, expirationDateMonth,
415                            expirationDateDay, expirationDateYear, expirationDateHour,
416                            expirationDateMinute, alert, flagValue, start, end);
417            }
418    
419            @Override
420            public java.util.List<com.liferay.announcements.kernel.model.AnnouncementsEntry> getUserEntries(
421                    long userId, int start, int end) {
422                    return _announcementsEntryLocalService.getUserEntries(userId, start, end);
423            }
424    
425            /**
426            * Returns the number of rows matching the dynamic query.
427            *
428            * @param dynamicQuery the dynamic query
429            * @return the number of rows matching the dynamic query
430            */
431            @Override
432            public long dynamicQueryCount(
433                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
434                    return _announcementsEntryLocalService.dynamicQueryCount(dynamicQuery);
435            }
436    
437            /**
438            * Returns the number of rows matching the dynamic query.
439            *
440            * @param dynamicQuery the dynamic query
441            * @param projection the projection to apply to the query
442            * @return the number of rows matching the dynamic query
443            */
444            @Override
445            public long dynamicQueryCount(
446                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
447                    com.liferay.portal.kernel.dao.orm.Projection projection) {
448                    return _announcementsEntryLocalService.dynamicQueryCount(dynamicQuery,
449                            projection);
450            }
451    
452            @Override
453            public void checkEntries()
454                    throws com.liferay.portal.kernel.exception.PortalException {
455                    _announcementsEntryLocalService.checkEntries();
456            }
457    
458            @Override
459            public void deleteEntry(
460                    com.liferay.announcements.kernel.model.AnnouncementsEntry entry)
461                    throws com.liferay.portal.kernel.exception.PortalException {
462                    _announcementsEntryLocalService.deleteEntry(entry);
463            }
464    
465            @Override
466            public void deleteEntry(long entryId)
467                    throws com.liferay.portal.kernel.exception.PortalException {
468                    _announcementsEntryLocalService.deleteEntry(entryId);
469            }
470    
471            @Override
472            public AnnouncementsEntryLocalService getWrappedService() {
473                    return _announcementsEntryLocalService;
474            }
475    
476            @Override
477            public void setWrappedService(
478                    AnnouncementsEntryLocalService announcementsEntryLocalService) {
479                    _announcementsEntryLocalService = announcementsEntryLocalService;
480            }
481    
482            private AnnouncementsEntryLocalService _announcementsEntryLocalService;
483    }