001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for UserNotificationEvent. This utility wraps
024     * {@link com.liferay.portal.service.impl.UserNotificationEventLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see UserNotificationEventLocalService
032     * @see com.liferay.portal.service.base.UserNotificationEventLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.UserNotificationEventLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class UserNotificationEventLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.UserNotificationEventLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
044                    return getService().getActionableDynamicQuery();
045            }
046    
047            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
048                    return getService().dynamicQuery();
049            }
050    
051            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
052                    return getService().getIndexableActionableDynamicQuery();
053            }
054    
055            /**
056            * @throws PortalException
057            */
058            public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
059                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return getService().deletePersistedModel(persistedModel);
062            }
063    
064            public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
065                    java.io.Serializable primaryKeyObj)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return getService().getPersistedModel(primaryKeyObj);
068            }
069    
070            /**
071            * Adds the user notification event to the database. Also notifies the appropriate model listeners.
072            *
073            * @param userNotificationEvent the user notification event
074            * @return the user notification event that was added
075            */
076            public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
077                    com.liferay.portal.kernel.model.UserNotificationEvent userNotificationEvent) {
078                    return getService().addUserNotificationEvent(userNotificationEvent);
079            }
080    
081            public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
082                    long userId, boolean actionRequired,
083                    com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    return getService()
086                                       .addUserNotificationEvent(userId, actionRequired,
087                            notificationEvent);
088            }
089    
090            public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
091                    long userId,
092                    com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return getService().addUserNotificationEvent(userId, notificationEvent);
095            }
096    
097            public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
098                    long userId, java.lang.String type, long timestamp, int deliveryType,
099                    long deliverBy, java.lang.String payload, boolean actionRequired,
100                    boolean archived, ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return getService()
103                                       .addUserNotificationEvent(userId, type, timestamp,
104                            deliveryType, deliverBy, payload, actionRequired, archived,
105                            serviceContext);
106            }
107    
108            public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
109                    long userId, java.lang.String type, long timestamp, int deliveryType,
110                    long deliverBy, java.lang.String payload, boolean archived,
111                    ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return getService()
114                                       .addUserNotificationEvent(userId, type, timestamp,
115                            deliveryType, deliverBy, payload, archived, serviceContext);
116            }
117    
118            /**
119            * @deprecated As of 7.0.0 {@link #addUserNotificationEvent(long, String,
120            long, int, long, String, boolean, ServiceContext)}
121            */
122            @Deprecated
123            public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
124                    long userId, java.lang.String type, long timestamp, long deliverBy,
125                    java.lang.String payload, boolean archived,
126                    ServiceContext serviceContext)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    return getService()
129                                       .addUserNotificationEvent(userId, type, timestamp,
130                            deliverBy, payload, archived, serviceContext);
131            }
132    
133            /**
134            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
135            *
136            * @param userNotificationEventId the primary key for the new user notification event
137            * @return the new user notification event
138            */
139            public static com.liferay.portal.kernel.model.UserNotificationEvent createUserNotificationEvent(
140                    long userNotificationEventId) {
141                    return getService().createUserNotificationEvent(userNotificationEventId);
142            }
143    
144            /**
145            * Deletes the user notification event from the database. Also notifies the appropriate model listeners.
146            *
147            * @param userNotificationEvent the user notification event
148            * @return the user notification event that was removed
149            */
150            public static com.liferay.portal.kernel.model.UserNotificationEvent deleteUserNotificationEvent(
151                    com.liferay.portal.kernel.model.UserNotificationEvent userNotificationEvent) {
152                    return getService().deleteUserNotificationEvent(userNotificationEvent);
153            }
154    
155            /**
156            * Deletes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
157            *
158            * @param userNotificationEventId the primary key of the user notification event
159            * @return the user notification event that was removed
160            * @throws PortalException if a user notification event with the primary key could not be found
161            */
162            public static com.liferay.portal.kernel.model.UserNotificationEvent deleteUserNotificationEvent(
163                    long userNotificationEventId)
164                    throws com.liferay.portal.kernel.exception.PortalException {
165                    return getService().deleteUserNotificationEvent(userNotificationEventId);
166            }
167    
168            public static com.liferay.portal.kernel.model.UserNotificationEvent fetchUserNotificationEvent(
169                    long userNotificationEventId) {
170                    return getService().fetchUserNotificationEvent(userNotificationEventId);
171            }
172    
173            /**
174            * Returns the user notification event with the matching UUID and company.
175            *
176            * @param uuid the user notification event's UUID
177            * @param companyId the primary key of the company
178            * @return the matching user notification event, or <code>null</code> if a matching user notification event could not be found
179            */
180            public static com.liferay.portal.kernel.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
181                    java.lang.String uuid, long companyId) {
182                    return getService()
183                                       .fetchUserNotificationEventByUuidAndCompanyId(uuid, companyId);
184            }
185    
186            /**
187            * Returns the user notification event with the primary key.
188            *
189            * @param userNotificationEventId the primary key of the user notification event
190            * @return the user notification event
191            * @throws PortalException if a user notification event with the primary key could not be found
192            */
193            public static com.liferay.portal.kernel.model.UserNotificationEvent getUserNotificationEvent(
194                    long userNotificationEventId)
195                    throws com.liferay.portal.kernel.exception.PortalException {
196                    return getService().getUserNotificationEvent(userNotificationEventId);
197            }
198    
199            /**
200            * Returns the user notification event with the matching UUID and company.
201            *
202            * @param uuid the user notification event's UUID
203            * @param companyId the primary key of the company
204            * @return the matching user notification event
205            * @throws PortalException if a matching user notification event could not be found
206            */
207            public static com.liferay.portal.kernel.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
208                    java.lang.String uuid, long companyId)
209                    throws com.liferay.portal.kernel.exception.PortalException {
210                    return getService()
211                                       .getUserNotificationEventByUuidAndCompanyId(uuid, companyId);
212            }
213    
214            public static com.liferay.portal.kernel.model.UserNotificationEvent sendUserNotificationEvents(
215                    long userId, java.lang.String portletId, int deliveryType,
216                    boolean actionRequired,
217                    com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return getService()
220                                       .sendUserNotificationEvents(userId, portletId, deliveryType,
221                            actionRequired, notificationEventJSONObject);
222            }
223    
224            public static com.liferay.portal.kernel.model.UserNotificationEvent sendUserNotificationEvents(
225                    long userId, java.lang.String portletId, int deliveryType,
226                    com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return getService()
229                                       .sendUserNotificationEvents(userId, portletId, deliveryType,
230                            notificationEventJSONObject);
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            * @return the user notification event that was updated
238            */
239            public static com.liferay.portal.kernel.model.UserNotificationEvent updateUserNotificationEvent(
240                    com.liferay.portal.kernel.model.UserNotificationEvent userNotificationEvent) {
241                    return getService().updateUserNotificationEvent(userNotificationEvent);
242            }
243    
244            public static com.liferay.portal.kernel.model.UserNotificationEvent updateUserNotificationEvent(
245                    java.lang.String uuid, long companyId, boolean archive) {
246                    return getService().updateUserNotificationEvent(uuid, companyId, archive);
247            }
248    
249            public static int getArchivedUserNotificationEventsCount(long userId,
250                    boolean actionRequired, boolean archived) {
251                    return getService()
252                                       .getArchivedUserNotificationEventsCount(userId,
253                            actionRequired, archived);
254            }
255    
256            public static int getArchivedUserNotificationEventsCount(long userId,
257                    boolean archived) {
258                    return getService()
259                                       .getArchivedUserNotificationEventsCount(userId, archived);
260            }
261    
262            public static int getArchivedUserNotificationEventsCount(long userId,
263                    int deliveryType, boolean actionRequired, boolean archived) {
264                    return getService()
265                                       .getArchivedUserNotificationEventsCount(userId,
266                            deliveryType, actionRequired, archived);
267            }
268    
269            public static int getArchivedUserNotificationEventsCount(long userId,
270                    int deliveryType, boolean archived) {
271                    return getService()
272                                       .getArchivedUserNotificationEventsCount(userId,
273                            deliveryType, archived);
274            }
275    
276            public static int getDeliveredUserNotificationEventsCount(long userId,
277                    boolean delivered) {
278                    return getService()
279                                       .getDeliveredUserNotificationEventsCount(userId, delivered);
280            }
281    
282            public static int getDeliveredUserNotificationEventsCount(long userId,
283                    boolean delivered, boolean actionRequired) {
284                    return getService()
285                                       .getDeliveredUserNotificationEventsCount(userId, delivered,
286                            actionRequired);
287            }
288    
289            public static int getDeliveredUserNotificationEventsCount(long userId,
290                    int deliveryType, boolean delivered) {
291                    return getService()
292                                       .getDeliveredUserNotificationEventsCount(userId,
293                            deliveryType, delivered);
294            }
295    
296            public static int getDeliveredUserNotificationEventsCount(long userId,
297                    int deliveryType, boolean delivered, boolean actionRequired) {
298                    return getService()
299                                       .getDeliveredUserNotificationEventsCount(userId,
300                            deliveryType, delivered, actionRequired);
301            }
302    
303            /**
304            * Returns the number of user notification events.
305            *
306            * @return the number of user notification events
307            */
308            public static int getUserNotificationEventsCount() {
309                    return getService().getUserNotificationEventsCount();
310            }
311    
312            public static int getUserNotificationEventsCount(long userId) {
313                    return getService().getUserNotificationEventsCount(userId);
314            }
315    
316            public static int getUserNotificationEventsCount(long userId,
317                    int deliveryType) {
318                    return getService().getUserNotificationEventsCount(userId, deliveryType);
319            }
320    
321            public static int getUserNotificationEventsCount(long userId,
322                    java.lang.String type, int deliveryType, boolean archived) {
323                    return getService()
324                                       .getUserNotificationEventsCount(userId, type, deliveryType,
325                            archived);
326            }
327    
328            /**
329            * Returns the OSGi service identifier.
330            *
331            * @return the OSGi service identifier
332            */
333            public static java.lang.String getOSGiServiceIdentifier() {
334                    return getService().getOSGiServiceIdentifier();
335            }
336    
337            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> addUserNotificationEvents(
338                    long userId,
339                    java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
340                    throws com.liferay.portal.kernel.exception.PortalException {
341                    return getService().addUserNotificationEvents(userId, notificationEvents);
342            }
343    
344            /**
345            * Performs a dynamic query on the database and returns the matching rows.
346            *
347            * @param dynamicQuery the dynamic query
348            * @return the matching rows
349            */
350            public static <T> java.util.List<T> dynamicQuery(
351                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
352                    return getService().dynamicQuery(dynamicQuery);
353            }
354    
355            /**
356            * Performs a dynamic query on the database and returns a range of the matching rows.
357            *
358            * <p>
359            * 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.
360            * </p>
361            *
362            * @param dynamicQuery the dynamic query
363            * @param start the lower bound of the range of model instances
364            * @param end the upper bound of the range of model instances (not inclusive)
365            * @return the range of matching rows
366            */
367            public static <T> java.util.List<T> dynamicQuery(
368                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
369                    int end) {
370                    return getService().dynamicQuery(dynamicQuery, start, end);
371            }
372    
373            /**
374            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
375            *
376            * <p>
377            * 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.
378            * </p>
379            *
380            * @param dynamicQuery the dynamic query
381            * @param start the lower bound of the range of model instances
382            * @param end the upper bound of the range of model instances (not inclusive)
383            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
384            * @return the ordered range of matching rows
385            */
386            public static <T> java.util.List<T> dynamicQuery(
387                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
388                    int end,
389                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
390                    return getService()
391                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
392            }
393    
394            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
395                    long userId, boolean actionRequired, boolean archived) {
396                    return getService()
397                                       .getArchivedUserNotificationEvents(userId, actionRequired,
398                            archived);
399            }
400    
401            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
402                    long userId, boolean actionRequired, boolean archived, int start,
403                    int end) {
404                    return getService()
405                                       .getArchivedUserNotificationEvents(userId, actionRequired,
406                            archived, start, end);
407            }
408    
409            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
410                    long userId, boolean archived) {
411                    return getService().getArchivedUserNotificationEvents(userId, archived);
412            }
413    
414            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
415                    long userId, boolean archived, int start, int end) {
416                    return getService()
417                                       .getArchivedUserNotificationEvents(userId, archived, start,
418                            end);
419            }
420    
421            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
422                    long userId, int deliveryType, boolean actionRequired, boolean archived) {
423                    return getService()
424                                       .getArchivedUserNotificationEvents(userId, deliveryType,
425                            actionRequired, archived);
426            }
427    
428            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
429                    long userId, int deliveryType, boolean actionRequired,
430                    boolean archived, int start, int end) {
431                    return getService()
432                                       .getArchivedUserNotificationEvents(userId, deliveryType,
433                            actionRequired, archived, start, end);
434            }
435    
436            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
437                    long userId, int deliveryType, boolean archived) {
438                    return getService()
439                                       .getArchivedUserNotificationEvents(userId, deliveryType,
440                            archived);
441            }
442    
443            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
444                    long userId, int deliveryType, boolean archived, int start, int end) {
445                    return getService()
446                                       .getArchivedUserNotificationEvents(userId, deliveryType,
447                            archived, start, end);
448            }
449    
450            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
451                    long userId, boolean delivered) {
452                    return getService().getDeliveredUserNotificationEvents(userId, delivered);
453            }
454    
455            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
456                    long userId, boolean delivered, boolean actionRequired) {
457                    return getService()
458                                       .getDeliveredUserNotificationEvents(userId, delivered,
459                            actionRequired);
460            }
461    
462            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
463                    long userId, boolean delivered, boolean actionRequired, int start,
464                    int end) {
465                    return getService()
466                                       .getDeliveredUserNotificationEvents(userId, delivered,
467                            actionRequired, start, end);
468            }
469    
470            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
471                    long userId, boolean delivered, int start, int end) {
472                    return getService()
473                                       .getDeliveredUserNotificationEvents(userId, delivered,
474                            start, end);
475            }
476    
477            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
478                    long userId, int deliveryType, boolean delivered) {
479                    return getService()
480                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
481                            delivered);
482            }
483    
484            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
485                    long userId, int deliveryType, boolean delivered, boolean actionRequired) {
486                    return getService()
487                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
488                            delivered, actionRequired);
489            }
490    
491            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
492                    long userId, int deliveryType, boolean delivered,
493                    boolean actionRequired, int start, int end) {
494                    return getService()
495                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
496                            delivered, actionRequired, start, end);
497            }
498    
499            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
500                    long userId, int deliveryType, boolean delivered, int start, int end) {
501                    return getService()
502                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
503                            delivered, start, end);
504            }
505    
506            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getTypeNotificationEvents(
507                    java.lang.String type) {
508                    return getService().getTypeNotificationEvents(type);
509            }
510    
511            /**
512            * Returns a range of all the user notification events.
513            *
514            * <p>
515            * 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.
516            * </p>
517            *
518            * @param start the lower bound of the range of user notification events
519            * @param end the upper bound of the range of user notification events (not inclusive)
520            * @return the range of user notification events
521            */
522            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
523                    int start, int end) {
524                    return getService().getUserNotificationEvents(start, end);
525            }
526    
527            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
528                    long userId) {
529                    return getService().getUserNotificationEvents(userId);
530            }
531    
532            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
533                    long userId, int deliveryType) {
534                    return getService().getUserNotificationEvents(userId, deliveryType);
535            }
536    
537            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
538                    long userId, int deliveryType, int start, int end) {
539                    return getService()
540                                       .getUserNotificationEvents(userId, deliveryType, start, end);
541            }
542    
543            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
544                    long userId, int start, int end) {
545                    return getService().getUserNotificationEvents(userId, start, end);
546            }
547    
548            public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> updateUserNotificationEvents(
549                    java.util.Collection<java.lang.String> uuids, long companyId,
550                    boolean archive) {
551                    return getService()
552                                       .updateUserNotificationEvents(uuids, companyId, archive);
553            }
554    
555            /**
556            * Returns the number of rows matching the dynamic query.
557            *
558            * @param dynamicQuery the dynamic query
559            * @return the number of rows matching the dynamic query
560            */
561            public static long dynamicQueryCount(
562                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
563                    return getService().dynamicQueryCount(dynamicQuery);
564            }
565    
566            /**
567            * Returns the number of rows matching the dynamic query.
568            *
569            * @param dynamicQuery the dynamic query
570            * @param projection the projection to apply to the query
571            * @return the number of rows matching the dynamic query
572            */
573            public static long dynamicQueryCount(
574                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
575                    com.liferay.portal.kernel.dao.orm.Projection projection) {
576                    return getService().dynamicQueryCount(dynamicQuery, projection);
577            }
578    
579            public static void deleteUserNotificationEvent(java.lang.String uuid,
580                    long companyId) {
581                    getService().deleteUserNotificationEvent(uuid, companyId);
582            }
583    
584            public static void deleteUserNotificationEvents(
585                    java.util.Collection<java.lang.String> uuids, long companyId) {
586                    getService().deleteUserNotificationEvents(uuids, companyId);
587            }
588    
589            public static UserNotificationEventLocalService getService() {
590                    if (_service == null) {
591                            _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
592    
593                            ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
594                                    "_service");
595                    }
596    
597                    return _service;
598            }
599    
600            private static UserNotificationEventLocalService _service;
601    }