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