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     * <p>
019     * This class is a wrapper for {@link UserNotificationEventLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserNotificationEventLocalService
024     * @generated
025     */
026    public class UserNotificationEventLocalServiceWrapper
027            implements UserNotificationEventLocalService,
028                    ServiceWrapper<UserNotificationEventLocalService> {
029            public UserNotificationEventLocalServiceWrapper(
030                    UserNotificationEventLocalService userNotificationEventLocalService) {
031                    _userNotificationEventLocalService = userNotificationEventLocalService;
032            }
033    
034            /**
035            * Adds the user notification event to the database. Also notifies the appropriate model listeners.
036            *
037            * @param userNotificationEvent the user notification event
038            * @return the user notification event that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
042                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _userNotificationEventLocalService.addUserNotificationEvent(userNotificationEvent);
045            }
046    
047            /**
048            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
049            *
050            * @param userNotificationEventId the primary key for the new user notification event
051            * @return the new user notification event
052            */
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            public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
067                    long userNotificationEventId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _userNotificationEventLocalService.deleteUserNotificationEvent(userNotificationEventId);
071            }
072    
073            /**
074            * Deletes the user notification event from the database. Also notifies the appropriate model listeners.
075            *
076            * @param userNotificationEvent the user notification event
077            * @return the user notification event that was removed
078            * @throws SystemException if a system exception occurred
079            */
080            public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
081                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _userNotificationEventLocalService.deleteUserNotificationEvent(userNotificationEvent);
084            }
085    
086            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
087                    return _userNotificationEventLocalService.dynamicQuery();
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _userNotificationEventLocalService.dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * 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.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return _userNotificationEventLocalService.dynamicQuery(dynamicQuery,
122                            start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _userNotificationEventLocalService.dynamicQuery(dynamicQuery,
146                            start, end, orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _userNotificationEventLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
163                    long userNotificationEventId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _userNotificationEventLocalService.fetchUserNotificationEvent(userNotificationEventId);
166            }
167    
168            /**
169            * Returns the user notification event with the primary key.
170            *
171            * @param userNotificationEventId the primary key of the user notification event
172            * @return the user notification event
173            * @throws PortalException if a user notification event with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
177                    long userNotificationEventId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _userNotificationEventLocalService.getUserNotificationEvent(userNotificationEventId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _userNotificationEventLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the user notification events.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of user notification events
198            * @param end the upper bound of the range of user notification events (not inclusive)
199            * @return the range of user notification events
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _userNotificationEventLocalService.getUserNotificationEvents(start,
206                            end);
207            }
208    
209            /**
210            * Returns the number of user notification events.
211            *
212            * @return the number of user notification events
213            * @throws SystemException if a system exception occurred
214            */
215            public int getUserNotificationEventsCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _userNotificationEventLocalService.getUserNotificationEventsCount();
218            }
219    
220            /**
221            * Updates the user notification event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param userNotificationEvent the user notification event
224            * @return the user notification event that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
228                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _userNotificationEventLocalService.updateUserNotificationEvent(userNotificationEvent);
231            }
232    
233            /**
234            * Updates the user notification event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param userNotificationEvent the user notification event
237            * @param merge whether to merge the user notification event with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
238            * @return the user notification event that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
242                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _userNotificationEventLocalService.updateUserNotificationEvent(userNotificationEvent,
246                            merge);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _userNotificationEventLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _userNotificationEventLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
268                    long userId,
269                    com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _userNotificationEventLocalService.addUserNotificationEvent(userId,
273                            notificationEvent);
274            }
275    
276            public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
277                    long userId, java.lang.String type, long timestamp, long deliverBy,
278                    java.lang.String payload, boolean archived,
279                    com.liferay.portal.service.ServiceContext serviceContext)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _userNotificationEventLocalService.addUserNotificationEvent(userId,
283                            type, timestamp, deliverBy, payload, archived, serviceContext);
284            }
285    
286            public java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
287                    long userId,
288                    java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _userNotificationEventLocalService.addUserNotificationEvents(userId,
292                            notificationEvents);
293            }
294    
295            public void deleteUserNotificationEvent(java.lang.String uuid)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    _userNotificationEventLocalService.deleteUserNotificationEvent(uuid);
298            }
299    
300            public void deleteUserNotificationEvents(
301                    java.util.Collection<java.lang.String> uuids)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _userNotificationEventLocalService.deleteUserNotificationEvents(uuids);
304            }
305    
306            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
307                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
308                    return _userNotificationEventLocalService.getUserNotificationEvents(userId);
309            }
310    
311            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
312                    long userId, boolean archived)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _userNotificationEventLocalService.getUserNotificationEvents(userId,
315                            archived);
316            }
317    
318            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
319                    long userId, boolean archived, int start, int end)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _userNotificationEventLocalService.getUserNotificationEvents(userId,
322                            archived, start, end);
323            }
324    
325            public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
326                    long userId, int start, int end)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _userNotificationEventLocalService.getUserNotificationEvents(userId,
329                            start, end);
330            }
331    
332            public int getUserNotificationEventsCount(long userId)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _userNotificationEventLocalService.getUserNotificationEventsCount(userId);
335            }
336    
337            public int getUserNotificationEventsCount(long userId, boolean archived)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _userNotificationEventLocalService.getUserNotificationEventsCount(userId,
340                            archived);
341            }
342    
343            public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
344                    java.lang.String uuid, boolean archive)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _userNotificationEventLocalService.updateUserNotificationEvent(uuid,
347                            archive);
348            }
349    
350            public java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
351                    java.util.Collection<java.lang.String> uuids, boolean archive)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _userNotificationEventLocalService.updateUserNotificationEvents(uuids,
354                            archive);
355            }
356    
357            /**
358             * @deprecated Renamed to {@link #getWrappedService}
359             */
360            public UserNotificationEventLocalService getWrappedUserNotificationEventLocalService() {
361                    return _userNotificationEventLocalService;
362            }
363    
364            /**
365             * @deprecated Renamed to {@link #setWrappedService}
366             */
367            public void setWrappedUserNotificationEventLocalService(
368                    UserNotificationEventLocalService userNotificationEventLocalService) {
369                    _userNotificationEventLocalService = userNotificationEventLocalService;
370            }
371    
372            public UserNotificationEventLocalService getWrappedService() {
373                    return _userNotificationEventLocalService;
374            }
375    
376            public void setWrappedService(
377                    UserNotificationEventLocalService userNotificationEventLocalService) {
378                    _userNotificationEventLocalService = userNotificationEventLocalService;
379            }
380    
381            private UserNotificationEventLocalService _userNotificationEventLocalService;
382    }