001    /**
002     * Copyright (c) 2000-2013 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.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link UserNotificationEventLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see UserNotificationEventLocalService
024     * @generated
025     */
026    @ProviderType
027    public class UserNotificationEventLocalServiceWrapper
028            implements UserNotificationEventLocalService,
029                    ServiceWrapper<UserNotificationEventLocalService> {
030            public UserNotificationEventLocalServiceWrapper(
031                    UserNotificationEventLocalService userNotificationEventLocalService) {
032                    _userNotificationEventLocalService = userNotificationEventLocalService;
033            }
034    
035            /**
036            * Adds the user notification event to the database. Also notifies the appropriate model listeners.
037            *
038            * @param userNotificationEvent the user notification event
039            * @return the user notification event that was added
040            * @throws SystemException if a system exception occurred
041            */
042            @Override
043            public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
044                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _userNotificationEventLocalService.addUserNotificationEvent(userNotificationEvent);
047            }
048    
049            /**
050            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
051            *
052            * @param userNotificationEventId the primary key for the new user notification event
053            * @return the new user notification event
054            */
055            @Override
056            public com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
057                    long userNotificationEventId) {
058                    return _userNotificationEventLocalService.createUserNotificationEvent(userNotificationEventId);
059            }
060    
061            /**
062            * Deletes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param userNotificationEventId the primary key of the user notification event
065            * @return the user notification event that was removed
066            * @throws PortalException if a user notification event with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            @Override
070            public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
071                    long userNotificationEventId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _userNotificationEventLocalService.deleteUserNotificationEvent(userNotificationEventId);
075            }
076    
077            /**
078            * Deletes the user notification event from the database. Also notifies the appropriate model listeners.
079            *
080            * @param userNotificationEvent the user notification event
081            * @return the user notification event that was removed
082            * @throws SystemException if a system exception occurred
083            */
084            @Override
085            public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
086                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
087                    throws com.liferay.portal.kernel.exception.SystemException {
088                    return _userNotificationEventLocalService.deleteUserNotificationEvent(userNotificationEvent);
089            }
090    
091            @Override
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return _userNotificationEventLocalService.dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @Override
104            @SuppressWarnings("rawtypes")
105            public java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _userNotificationEventLocalService.dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @Override
125            @SuppressWarnings("rawtypes")
126            public java.util.List dynamicQuery(
127                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException {
129                    return _userNotificationEventLocalService.dynamicQuery(dynamicQuery,
130                            start, end);
131            }
132    
133            /**
134            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
135            *
136            * <p>
137            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
138            * </p>
139            *
140            * @param dynamicQuery the dynamic query
141            * @param start the lower bound of the range of model instances
142            * @param end the upper bound of the range of model instances (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching rows
145            * @throws SystemException if a system exception occurred
146            */
147            @Override
148            @SuppressWarnings("rawtypes")
149            public java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _userNotificationEventLocalService.dynamicQuery(dynamicQuery,
155                            start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            @Override
166            public long dynamicQueryCount(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return _userNotificationEventLocalService.dynamicQueryCount(dynamicQuery);
170            }
171    
172            /**
173            * Returns the number of rows that match the dynamic query.
174            *
175            * @param dynamicQuery the dynamic query
176            * @param projection the projection to apply to the query
177            * @return the number of rows that match the dynamic query
178            * @throws SystemException if a system exception occurred
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _userNotificationEventLocalService.dynamicQueryCount(dynamicQuery,
186                            projection);
187            }
188    
189            @Override
190            public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
191                    long userNotificationEventId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _userNotificationEventLocalService.fetchUserNotificationEvent(userNotificationEventId);
194            }
195    
196            /**
197            * Returns the user notification event with the matching UUID and company.
198            *
199            * @param uuid the user notification event's UUID
200            * @param companyId the primary key of the company
201            * @return the matching user notification event, or <code>null</code> if a matching user notification event could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            @Override
205            public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
206                    java.lang.String uuid, long companyId)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _userNotificationEventLocalService.fetchUserNotificationEventByUuidAndCompanyId(uuid,
209                            companyId);
210            }
211    
212            /**
213            * Returns the user notification event with the primary key.
214            *
215            * @param userNotificationEventId the primary key of the user notification event
216            * @return the user notification event
217            * @throws PortalException if a user notification event with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            @Override
221            public com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
222                    long userNotificationEventId)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return _userNotificationEventLocalService.getUserNotificationEvent(userNotificationEventId);
226            }
227    
228            @Override
229            public com.liferay.portal.model.PersistedModel getPersistedModel(
230                    java.io.Serializable primaryKeyObj)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException {
233                    return _userNotificationEventLocalService.getPersistedModel(primaryKeyObj);
234            }
235    
236            /**
237            * Returns the user notification event with the matching UUID and company.
238            *
239            * @param uuid the user notification event's UUID
240            * @param companyId the primary key of the company
241            * @return the matching user notification event
242            * @throws PortalException if a matching user notification event could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            @Override
246            public com.liferay.portal.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
247                    java.lang.String uuid, long companyId)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    return _userNotificationEventLocalService.getUserNotificationEventByUuidAndCompanyId(uuid,
251                            companyId);
252            }
253    
254            /**
255            * Returns a range of all the user notification events.
256            *
257            * <p>
258            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
259            * </p>
260            *
261            * @param start the lower bound of the range of user notification events
262            * @param end the upper bound of the range of user notification events (not inclusive)
263            * @return the range of user notification events
264            * @throws SystemException if a system exception occurred
265            */
266            @Override
267            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
268                    int start, int end)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return _userNotificationEventLocalService.getUserNotificationEvents(start,
271                            end);
272            }
273    
274            /**
275            * Returns the number of user notification events.
276            *
277            * @return the number of user notification events
278            * @throws SystemException if a system exception occurred
279            */
280            @Override
281            public int getUserNotificationEventsCount()
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _userNotificationEventLocalService.getUserNotificationEventsCount();
284            }
285    
286            /**
287            * Updates the user notification event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
288            *
289            * @param userNotificationEvent the user notification event
290            * @return the user notification event that was updated
291            * @throws SystemException if a system exception occurred
292            */
293            @Override
294            public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
295                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return _userNotificationEventLocalService.updateUserNotificationEvent(userNotificationEvent);
298            }
299    
300            /**
301            * Returns the Spring bean ID for this bean.
302            *
303            * @return the Spring bean ID for this bean
304            */
305            @Override
306            public java.lang.String getBeanIdentifier() {
307                    return _userNotificationEventLocalService.getBeanIdentifier();
308            }
309    
310            /**
311            * Sets the Spring bean ID for this bean.
312            *
313            * @param beanIdentifier the Spring bean ID for this bean
314            */
315            @Override
316            public void setBeanIdentifier(java.lang.String beanIdentifier) {
317                    _userNotificationEventLocalService.setBeanIdentifier(beanIdentifier);
318            }
319    
320            @Override
321            public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
322                    long userId,
323                    com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _userNotificationEventLocalService.addUserNotificationEvent(userId,
327                            notificationEvent);
328            }
329    
330            @Override
331            public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
332                    long userId, java.lang.String type, long timestamp, long deliverBy,
333                    java.lang.String payload, boolean archived,
334                    com.liferay.portal.service.ServiceContext serviceContext)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    return _userNotificationEventLocalService.addUserNotificationEvent(userId,
338                            type, timestamp, deliverBy, payload, archived, serviceContext);
339            }
340    
341            @Override
342            public java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
343                    long userId,
344                    java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _userNotificationEventLocalService.addUserNotificationEvents(userId,
348                            notificationEvents);
349            }
350    
351            @Override
352            public void deleteUserNotificationEvent(java.lang.String uuid,
353                    long companyId)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    _userNotificationEventLocalService.deleteUserNotificationEvent(uuid,
356                            companyId);
357            }
358    
359            @Override
360            public void deleteUserNotificationEvents(
361                    java.util.Collection<java.lang.String> uuids, long companyId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    _userNotificationEventLocalService.deleteUserNotificationEvents(uuids,
364                            companyId);
365            }
366    
367            @Override
368            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
369                    long userId, boolean archived)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _userNotificationEventLocalService.getArchivedUserNotificationEvents(userId,
372                            archived);
373            }
374    
375            @Override
376            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
377                    long userId, boolean archived, int start, int end)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _userNotificationEventLocalService.getArchivedUserNotificationEvents(userId,
380                            archived, start, end);
381            }
382    
383            @Override
384            public int getArchivedUserNotificationEventsCount(long userId,
385                    boolean archived)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return _userNotificationEventLocalService.getArchivedUserNotificationEventsCount(userId,
388                            archived);
389            }
390    
391            @Override
392            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
393                    long userId, boolean delivered)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _userNotificationEventLocalService.getDeliveredUserNotificationEvents(userId,
396                            delivered);
397            }
398    
399            @Override
400            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
401                    long userId, boolean delivered, int start, int end)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _userNotificationEventLocalService.getDeliveredUserNotificationEvents(userId,
404                            delivered, start, end);
405            }
406    
407            @Override
408            public int getDeliveredUserNotificationEventsCount(long userId,
409                    boolean delivered)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _userNotificationEventLocalService.getDeliveredUserNotificationEventsCount(userId,
412                            delivered);
413            }
414    
415            @Override
416            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
417                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
418                    return _userNotificationEventLocalService.getUserNotificationEvents(userId);
419            }
420    
421            /**
422            * @deprecated As of 6.2.0 {@link #getArchivedUserNotificationEvents(long,
423            boolean)}
424            */
425            @Override
426            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
427                    long userId, boolean archived)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _userNotificationEventLocalService.getUserNotificationEvents(userId,
430                            archived);
431            }
432    
433            /**
434            * @deprecated As of 6.2.0 {@link #getArchivedUserNotificationEvents(long,
435            boolean, int, int)}
436            */
437            @Override
438            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
439                    long userId, boolean archived, int start, int end)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    return _userNotificationEventLocalService.getUserNotificationEvents(userId,
442                            archived, start, end);
443            }
444    
445            @Override
446            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
447                    long userId, int start, int end)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return _userNotificationEventLocalService.getUserNotificationEvents(userId,
450                            start, end);
451            }
452    
453            @Override
454            public int getUserNotificationEventsCount(long userId)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return _userNotificationEventLocalService.getUserNotificationEventsCount(userId);
457            }
458    
459            /**
460            * @deprecated As of 6.2.0 {@link
461            #getArchivedUserNotificationEventsCount(long, boolean)}
462            */
463            @Override
464            public int getUserNotificationEventsCount(long userId, boolean archived)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return _userNotificationEventLocalService.getUserNotificationEventsCount(userId,
467                            archived);
468            }
469    
470            @Override
471            public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
472                    java.lang.String uuid, long companyId, boolean archive)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return _userNotificationEventLocalService.updateUserNotificationEvent(uuid,
475                            companyId, archive);
476            }
477    
478            @Override
479            public java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
480                    java.util.Collection<java.lang.String> uuids, long companyId,
481                    boolean archive)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return _userNotificationEventLocalService.updateUserNotificationEvents(uuids,
484                            companyId, archive);
485            }
486    
487            /**
488             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
489             */
490            public UserNotificationEventLocalService getWrappedUserNotificationEventLocalService() {
491                    return _userNotificationEventLocalService;
492            }
493    
494            /**
495             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
496             */
497            public void setWrappedUserNotificationEventLocalService(
498                    UserNotificationEventLocalService userNotificationEventLocalService) {
499                    _userNotificationEventLocalService = userNotificationEventLocalService;
500            }
501    
502            @Override
503            public UserNotificationEventLocalService getWrappedService() {
504                    return _userNotificationEventLocalService;
505            }
506    
507            @Override
508            public void setWrappedService(
509                    UserNotificationEventLocalService userNotificationEventLocalService) {
510                    _userNotificationEventLocalService = userNotificationEventLocalService;
511            }
512    
513            private UserNotificationEventLocalService _userNotificationEventLocalService;
514    }