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