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            @Override
327            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
328                    long classNameId, long classPK, boolean alert, int start, int end) {
329                    return _announcementsEntryLocalService.getEntries(classNameId, classPK,
330                            alert, start, end);
331            }
332    
333            @Override
334            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
335                    long userId, long classNameId, long[] classPKs, int displayDateMonth,
336                    int displayDateDay, int displayDateYear, int displayDateHour,
337                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
338                    int expirationDateYear, int expirationDateHour,
339                    int expirationDateMinute, boolean alert, int flagValue, int start,
340                    int end) {
341                    return _announcementsEntryLocalService.getEntries(userId, classNameId,
342                            classPKs, displayDateMonth, displayDateDay, displayDateYear,
343                            displayDateHour, displayDateMinute, expirationDateMonth,
344                            expirationDateDay, expirationDateYear, expirationDateHour,
345                            expirationDateMinute, alert, flagValue, start, end);
346            }
347    
348            @Override
349            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
350                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
351                    boolean alert, int flagValue, int start, int end) {
352                    return _announcementsEntryLocalService.getEntries(userId, scopes,
353                            alert, flagValue, start, end);
354            }
355    
356            @Override
357            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
358                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
359                    int displayDateMonth, int displayDateDay, int displayDateYear,
360                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
361                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
362                    int expirationDateMinute, boolean alert, int flagValue, int start,
363                    int end) {
364                    return _announcementsEntryLocalService.getEntries(userId, scopes,
365                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
366                            displayDateMinute, expirationDateMonth, expirationDateDay,
367                            expirationDateYear, expirationDateHour, expirationDateMinute,
368                            alert, flagValue, start, end);
369            }
370    
371            @Override
372            public int getEntriesCount(long classNameId, long classPK, boolean alert) {
373                    return _announcementsEntryLocalService.getEntriesCount(classNameId,
374                            classPK, alert);
375            }
376    
377            @Override
378            public int getEntriesCount(long userId, long classNameId, long[] classPKs,
379                    boolean alert, int flagValue) {
380                    return _announcementsEntryLocalService.getEntriesCount(userId,
381                            classNameId, classPKs, alert, flagValue);
382            }
383    
384            @Override
385            public int getEntriesCount(long userId, long classNameId, long[] classPKs,
386                    int displayDateMonth, int displayDateDay, int displayDateYear,
387                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
388                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
389                    int expirationDateMinute, boolean alert, int flagValue) {
390                    return _announcementsEntryLocalService.getEntriesCount(userId,
391                            classNameId, classPKs, displayDateMonth, displayDateDay,
392                            displayDateYear, displayDateHour, displayDateMinute,
393                            expirationDateMonth, expirationDateDay, expirationDateYear,
394                            expirationDateHour, expirationDateMinute, alert, flagValue);
395            }
396    
397            @Override
398            public int getEntriesCount(long userId,
399                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes, boolean alert,
400                    int flagValue) {
401                    return _announcementsEntryLocalService.getEntriesCount(userId, scopes,
402                            alert, flagValue);
403            }
404    
405            @Override
406            public int getEntriesCount(long userId,
407                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
408                    int displayDateMonth, int displayDateDay, int displayDateYear,
409                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
410                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
411                    int expirationDateMinute, boolean alert, int flagValue) {
412                    return _announcementsEntryLocalService.getEntriesCount(userId, scopes,
413                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
414                            displayDateMinute, expirationDateMonth, expirationDateDay,
415                            expirationDateYear, expirationDateHour, expirationDateMinute,
416                            alert, flagValue);
417            }
418    
419            @Override
420            public com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
421                    long entryId)
422                    throws com.liferay.portal.kernel.exception.PortalException {
423                    return _announcementsEntryLocalService.getEntry(entryId);
424            }
425    
426            @Override
427            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
428                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
429                    return _announcementsEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
430            }
431    
432            @Override
433            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
434                    return _announcementsEntryLocalService.getIndexableActionableDynamicQuery();
435            }
436    
437            /**
438            * Returns the OSGi service identifier.
439            *
440            * @return the OSGi service identifier
441            */
442            @Override
443            public java.lang.String getOSGiServiceIdentifier() {
444                    return _announcementsEntryLocalService.getOSGiServiceIdentifier();
445            }
446    
447            @Override
448            public com.liferay.portal.model.PersistedModel getPersistedModel(
449                    java.io.Serializable primaryKeyObj)
450                    throws com.liferay.portal.kernel.exception.PortalException {
451                    return _announcementsEntryLocalService.getPersistedModel(primaryKeyObj);
452            }
453    
454            @Override
455            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getUserEntries(
456                    long userId, int start, int end) {
457                    return _announcementsEntryLocalService.getUserEntries(userId, start, end);
458            }
459    
460            @Override
461            public int getUserEntriesCount(long userId) {
462                    return _announcementsEntryLocalService.getUserEntriesCount(userId);
463            }
464    
465            /**
466            * Updates the announcements entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
467            *
468            * @param announcementsEntry the announcements entry
469            * @return the announcements entry that was updated
470            */
471            @Override
472            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateAnnouncementsEntry(
473                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
474                    return _announcementsEntryLocalService.updateAnnouncementsEntry(announcementsEntry);
475            }
476    
477            @Override
478            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
479                    long userId, long entryId, java.lang.String title,
480                    java.lang.String content, java.lang.String url, java.lang.String type,
481                    int displayDateMonth, int displayDateDay, int displayDateYear,
482                    int displayDateHour, int displayDateMinute, boolean displayImmediately,
483                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
484                    int expirationDateHour, int expirationDateMinute, int priority)
485                    throws com.liferay.portal.kernel.exception.PortalException {
486                    return _announcementsEntryLocalService.updateEntry(userId, entryId,
487                            title, content, url, type, displayDateMonth, displayDateDay,
488                            displayDateYear, displayDateHour, displayDateMinute,
489                            displayImmediately, expirationDateMonth, expirationDateDay,
490                            expirationDateYear, expirationDateHour, expirationDateMinute,
491                            priority);
492            }
493    
494            @Override
495            public AnnouncementsEntryLocalService getWrappedService() {
496                    return _announcementsEntryLocalService;
497            }
498    
499            @Override
500            public void setWrappedService(
501                    AnnouncementsEntryLocalService announcementsEntryLocalService) {
502                    _announcementsEntryLocalService = announcementsEntryLocalService;
503            }
504    
505            private AnnouncementsEntryLocalService _announcementsEntryLocalService;
506    }