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