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