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.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.model.UserNotificationEvent addUserNotificationEvent(
044                    long userId, boolean actionRequired,
045                    com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService()
048                                       .addUserNotificationEvent(userId, actionRequired,
049                            notificationEvent);
050            }
051    
052            public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
053                    long userId,
054                    com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
055                    throws com.liferay.portal.kernel.exception.PortalException {
056                    return getService().addUserNotificationEvent(userId, notificationEvent);
057            }
058    
059            /**
060            * @deprecated As of 7.0.0 {@link #addUserNotificationEvent(long, String,
061            long, int, long, String, boolean, ServiceContext)}
062            */
063            @Deprecated
064            public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
065                    long userId, java.lang.String type, long timestamp, long deliverBy,
066                    java.lang.String payload, boolean archived,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    return getService()
070                                       .addUserNotificationEvent(userId, type, timestamp,
071                            deliverBy, payload, archived, serviceContext);
072            }
073    
074            public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
075                    long userId, java.lang.String type, long timestamp, int deliveryType,
076                    long deliverBy, java.lang.String payload, boolean actionRequired,
077                    boolean archived,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return getService()
081                                       .addUserNotificationEvent(userId, type, timestamp,
082                            deliveryType, deliverBy, payload, actionRequired, archived,
083                            serviceContext);
084            }
085    
086            public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
087                    long userId, java.lang.String type, long timestamp, int deliveryType,
088                    long deliverBy, java.lang.String payload, boolean archived,
089                    com.liferay.portal.service.ServiceContext serviceContext)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    return getService()
092                                       .addUserNotificationEvent(userId, type, timestamp,
093                            deliveryType, deliverBy, payload, archived, serviceContext);
094            }
095    
096            /**
097            * Adds the user notification event to the database. Also notifies the appropriate model listeners.
098            *
099            * @param userNotificationEvent the user notification event
100            * @return the user notification event that was added
101            */
102            public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
103                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
104                    return getService().addUserNotificationEvent(userNotificationEvent);
105            }
106    
107            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
108                    long userId,
109                    java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return getService().addUserNotificationEvents(userId, notificationEvents);
112            }
113    
114            /**
115            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
116            *
117            * @param userNotificationEventId the primary key for the new user notification event
118            * @return the new user notification event
119            */
120            public static com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
121                    long userNotificationEventId) {
122                    return getService().createUserNotificationEvent(userNotificationEventId);
123            }
124    
125            /**
126            * @throws PortalException
127            */
128            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
129                    com.liferay.portal.model.PersistedModel persistedModel)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    return getService().deletePersistedModel(persistedModel);
132            }
133    
134            /**
135            * Deletes the user notification event from the database. Also notifies the appropriate model listeners.
136            *
137            * @param userNotificationEvent the user notification event
138            * @return the user notification event that was removed
139            */
140            public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
141                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
142                    return getService().deleteUserNotificationEvent(userNotificationEvent);
143            }
144    
145            /**
146            * Deletes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param userNotificationEventId the primary key of the user notification event
149            * @return the user notification event that was removed
150            * @throws PortalException if a user notification event with the primary key could not be found
151            */
152            public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
153                    long userNotificationEventId)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    return getService().deleteUserNotificationEvent(userNotificationEventId);
156            }
157    
158            public static void deleteUserNotificationEvent(java.lang.String uuid,
159                    long companyId) {
160                    getService().deleteUserNotificationEvent(uuid, companyId);
161            }
162    
163            public static void deleteUserNotificationEvents(
164                    java.util.Collection<java.lang.String> uuids, long companyId) {
165                    getService().deleteUserNotificationEvents(uuids, companyId);
166            }
167    
168            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
169                    return getService().dynamicQuery();
170            }
171    
172            /**
173            * Performs a dynamic query on the database and returns the matching rows.
174            *
175            * @param dynamicQuery the dynamic query
176            * @return the matching rows
177            */
178            public static <T> java.util.List<T> dynamicQuery(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
180                    return getService().dynamicQuery(dynamicQuery);
181            }
182    
183            /**
184            * Performs a dynamic query on the database and returns a range of the matching rows.
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. 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.
188            * </p>
189            *
190            * @param dynamicQuery the dynamic query
191            * @param start the lower bound of the range of model instances
192            * @param end the upper bound of the range of model instances (not inclusive)
193            * @return the range of matching rows
194            */
195            public static <T> java.util.List<T> dynamicQuery(
196                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
197                    int end) {
198                    return getService().dynamicQuery(dynamicQuery, start, end);
199            }
200    
201            /**
202            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param dynamicQuery the dynamic query
209            * @param start the lower bound of the range of model instances
210            * @param end the upper bound of the range of model instances (not inclusive)
211            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
212            * @return the ordered range of matching rows
213            */
214            public static <T> java.util.List<T> dynamicQuery(
215                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
216                    int end,
217                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
218                    return getService()
219                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
220            }
221    
222            /**
223            * Returns the number of rows matching the dynamic query.
224            *
225            * @param dynamicQuery the dynamic query
226            * @return the number of rows matching the dynamic query
227            */
228            public static long dynamicQueryCount(
229                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
230                    return getService().dynamicQueryCount(dynamicQuery);
231            }
232    
233            /**
234            * Returns the number of rows matching the dynamic query.
235            *
236            * @param dynamicQuery the dynamic query
237            * @param projection the projection to apply to the query
238            * @return the number of rows matching the dynamic query
239            */
240            public static long dynamicQueryCount(
241                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
242                    com.liferay.portal.kernel.dao.orm.Projection projection) {
243                    return getService().dynamicQueryCount(dynamicQuery, projection);
244            }
245    
246            public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
247                    long userNotificationEventId) {
248                    return getService().fetchUserNotificationEvent(userNotificationEventId);
249            }
250    
251            /**
252            * Returns the user notification event with the matching UUID and company.
253            *
254            * @param uuid the user notification event's UUID
255            * @param companyId the primary key of the company
256            * @return the matching user notification event, or <code>null</code> if a matching user notification event could not be found
257            */
258            public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
259                    java.lang.String uuid, long companyId) {
260                    return getService()
261                                       .fetchUserNotificationEventByUuidAndCompanyId(uuid, companyId);
262            }
263    
264            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
265                    return getService().getActionableDynamicQuery();
266            }
267    
268            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
269                    long userId, boolean actionRequired, boolean archived) {
270                    return getService()
271                                       .getArchivedUserNotificationEvents(userId, actionRequired,
272                            archived);
273            }
274    
275            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
276                    long userId, boolean actionRequired, boolean archived, int start,
277                    int end) {
278                    return getService()
279                                       .getArchivedUserNotificationEvents(userId, actionRequired,
280                            archived, start, end);
281            }
282    
283            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
284                    long userId, boolean archived) {
285                    return getService().getArchivedUserNotificationEvents(userId, archived);
286            }
287    
288            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
289                    long userId, boolean archived, int start, int end) {
290                    return getService()
291                                       .getArchivedUserNotificationEvents(userId, archived, start,
292                            end);
293            }
294    
295            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
296                    long userId, int deliveryType, boolean actionRequired, boolean archived) {
297                    return getService()
298                                       .getArchivedUserNotificationEvents(userId, deliveryType,
299                            actionRequired, archived);
300            }
301    
302            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
303                    long userId, int deliveryType, boolean actionRequired,
304                    boolean archived, int start, int end) {
305                    return getService()
306                                       .getArchivedUserNotificationEvents(userId, deliveryType,
307                            actionRequired, archived, start, end);
308            }
309    
310            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
311                    long userId, int deliveryType, boolean archived) {
312                    return getService()
313                                       .getArchivedUserNotificationEvents(userId, deliveryType,
314                            archived);
315            }
316    
317            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
318                    long userId, int deliveryType, boolean archived, int start, int end) {
319                    return getService()
320                                       .getArchivedUserNotificationEvents(userId, deliveryType,
321                            archived, start, end);
322            }
323    
324            public static int getArchivedUserNotificationEventsCount(long userId,
325                    boolean actionRequired, boolean archived) {
326                    return getService()
327                                       .getArchivedUserNotificationEventsCount(userId,
328                            actionRequired, archived);
329            }
330    
331            public static int getArchivedUserNotificationEventsCount(long userId,
332                    boolean archived) {
333                    return getService()
334                                       .getArchivedUserNotificationEventsCount(userId, archived);
335            }
336    
337            public static int getArchivedUserNotificationEventsCount(long userId,
338                    int deliveryType, boolean actionRequired, boolean archived) {
339                    return getService()
340                                       .getArchivedUserNotificationEventsCount(userId,
341                            deliveryType, actionRequired, archived);
342            }
343    
344            public static int getArchivedUserNotificationEventsCount(long userId,
345                    int deliveryType, boolean archived) {
346                    return getService()
347                                       .getArchivedUserNotificationEventsCount(userId,
348                            deliveryType, archived);
349            }
350    
351            /**
352            * Returns the Spring bean ID for this bean.
353            *
354            * @return the Spring bean ID for this bean
355            */
356            public static java.lang.String getBeanIdentifier() {
357                    return getService().getBeanIdentifier();
358            }
359    
360            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
361                    long userId, boolean delivered) {
362                    return getService().getDeliveredUserNotificationEvents(userId, delivered);
363            }
364    
365            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
366                    long userId, boolean delivered, boolean actionRequired) {
367                    return getService()
368                                       .getDeliveredUserNotificationEvents(userId, delivered,
369                            actionRequired);
370            }
371    
372            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
373                    long userId, boolean delivered, boolean actionRequired, int start,
374                    int end) {
375                    return getService()
376                                       .getDeliveredUserNotificationEvents(userId, delivered,
377                            actionRequired, start, end);
378            }
379    
380            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
381                    long userId, boolean delivered, int start, int end) {
382                    return getService()
383                                       .getDeliveredUserNotificationEvents(userId, delivered,
384                            start, end);
385            }
386    
387            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
388                    long userId, int deliveryType, boolean delivered) {
389                    return getService()
390                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
391                            delivered);
392            }
393    
394            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
395                    long userId, int deliveryType, boolean delivered, boolean actionRequired) {
396                    return getService()
397                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
398                            delivered, actionRequired);
399            }
400    
401            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
402                    long userId, int deliveryType, boolean delivered,
403                    boolean actionRequired, int start, int end) {
404                    return getService()
405                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
406                            delivered, actionRequired, start, end);
407            }
408    
409            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
410                    long userId, int deliveryType, boolean delivered, int start, int end) {
411                    return getService()
412                                       .getDeliveredUserNotificationEvents(userId, deliveryType,
413                            delivered, start, end);
414            }
415    
416            public static int getDeliveredUserNotificationEventsCount(long userId,
417                    boolean delivered) {
418                    return getService()
419                                       .getDeliveredUserNotificationEventsCount(userId, delivered);
420            }
421    
422            public static int getDeliveredUserNotificationEventsCount(long userId,
423                    boolean delivered, boolean actionRequired) {
424                    return getService()
425                                       .getDeliveredUserNotificationEventsCount(userId, delivered,
426                            actionRequired);
427            }
428    
429            public static int getDeliveredUserNotificationEventsCount(long userId,
430                    int deliveryType, boolean delivered) {
431                    return getService()
432                                       .getDeliveredUserNotificationEventsCount(userId,
433                            deliveryType, delivered);
434            }
435    
436            public static int getDeliveredUserNotificationEventsCount(long userId,
437                    int deliveryType, boolean delivered, boolean actionRequired) {
438                    return getService()
439                                       .getDeliveredUserNotificationEventsCount(userId,
440                            deliveryType, delivered, actionRequired);
441            }
442    
443            public static com.liferay.portal.model.PersistedModel getPersistedModel(
444                    java.io.Serializable primaryKeyObj)
445                    throws com.liferay.portal.kernel.exception.PortalException {
446                    return getService().getPersistedModel(primaryKeyObj);
447            }
448    
449            /**
450            * Returns the user notification event with the primary key.
451            *
452            * @param userNotificationEventId the primary key of the user notification event
453            * @return the user notification event
454            * @throws PortalException if a user notification event with the primary key could not be found
455            */
456            public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
457                    long userNotificationEventId)
458                    throws com.liferay.portal.kernel.exception.PortalException {
459                    return getService().getUserNotificationEvent(userNotificationEventId);
460            }
461    
462            /**
463            * Returns the user notification event with the matching UUID and company.
464            *
465            * @param uuid the user notification event's UUID
466            * @param companyId the primary key of the company
467            * @return the matching user notification event
468            * @throws PortalException if a matching user notification event could not be found
469            */
470            public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
471                    java.lang.String uuid, long companyId)
472                    throws com.liferay.portal.kernel.exception.PortalException {
473                    return getService()
474                                       .getUserNotificationEventByUuidAndCompanyId(uuid, companyId);
475            }
476    
477            /**
478            * Returns a range of all the user notification events.
479            *
480            * <p>
481            * 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.
482            * </p>
483            *
484            * @param start the lower bound of the range of user notification events
485            * @param end the upper bound of the range of user notification events (not inclusive)
486            * @return the range of user notification events
487            */
488            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
489                    int start, int end) {
490                    return getService().getUserNotificationEvents(start, end);
491            }
492    
493            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
494                    long userId) {
495                    return getService().getUserNotificationEvents(userId);
496            }
497    
498            /**
499            * @deprecated As of 6.2.0 {@link #getArchivedUserNotificationEvents(long,
500            boolean)}
501            */
502            @Deprecated
503            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
504                    long userId, boolean archived) {
505                    return getService().getUserNotificationEvents(userId, archived);
506            }
507    
508            /**
509            * @deprecated As of 6.2.0 {@link #getArchivedUserNotificationEvents(long,
510            boolean, int, int)}
511            */
512            @Deprecated
513            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
514                    long userId, boolean archived, int start, int end) {
515                    return getService()
516                                       .getUserNotificationEvents(userId, archived, start, end);
517            }
518    
519            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
520                    long userId, int deliveryType) {
521                    return getService().getUserNotificationEvents(userId, deliveryType);
522            }
523    
524            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
525                    long userId, int deliveryType, int start, int end) {
526                    return getService()
527                                       .getUserNotificationEvents(userId, deliveryType, start, end);
528            }
529    
530            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
531                    long userId, int start, int end) {
532                    return getService().getUserNotificationEvents(userId, start, end);
533            }
534    
535            /**
536            * Returns the number of user notification events.
537            *
538            * @return the number of user notification events
539            */
540            public static int getUserNotificationEventsCount() {
541                    return getService().getUserNotificationEventsCount();
542            }
543    
544            public static int getUserNotificationEventsCount(long userId) {
545                    return getService().getUserNotificationEventsCount(userId);
546            }
547    
548            /**
549            * @deprecated As of 6.2.0 {@link
550            #getArchivedUserNotificationEventsCount(long, boolean)}
551            */
552            @Deprecated
553            public static int getUserNotificationEventsCount(long userId,
554                    boolean archived) {
555                    return getService().getUserNotificationEventsCount(userId, archived);
556            }
557    
558            public static int getUserNotificationEventsCount(long userId,
559                    int deliveryType) {
560                    return getService().getUserNotificationEventsCount(userId, deliveryType);
561            }
562    
563            public static com.liferay.portal.model.UserNotificationEvent sendUserNotificationEvents(
564                    long userId, java.lang.String portletId, int deliveryType,
565                    boolean actionRequired,
566                    com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
567                    throws com.liferay.portal.kernel.exception.PortalException {
568                    return getService()
569                                       .sendUserNotificationEvents(userId, portletId, deliveryType,
570                            actionRequired, notificationEventJSONObject);
571            }
572    
573            public static com.liferay.portal.model.UserNotificationEvent sendUserNotificationEvents(
574                    long userId, java.lang.String portletId, int deliveryType,
575                    com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
576                    throws com.liferay.portal.kernel.exception.PortalException {
577                    return getService()
578                                       .sendUserNotificationEvents(userId, portletId, deliveryType,
579                            notificationEventJSONObject);
580            }
581    
582            /**
583            * Sets the Spring bean ID for this bean.
584            *
585            * @param beanIdentifier the Spring bean ID for this bean
586            */
587            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
588                    getService().setBeanIdentifier(beanIdentifier);
589            }
590    
591            /**
592            * Updates the user notification event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
593            *
594            * @param userNotificationEvent the user notification event
595            * @return the user notification event that was updated
596            */
597            public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
598                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
599                    return getService().updateUserNotificationEvent(userNotificationEvent);
600            }
601    
602            public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
603                    java.lang.String uuid, long companyId, boolean archive) {
604                    return getService().updateUserNotificationEvent(uuid, companyId, archive);
605            }
606    
607            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
608                    java.util.Collection<java.lang.String> uuids, long companyId,
609                    boolean archive) {
610                    return getService()
611                                       .updateUserNotificationEvents(uuids, companyId, archive);
612            }
613    
614            public static UserNotificationEventLocalService getService() {
615                    if (_service == null) {
616                            _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
617    
618                            ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
619                                    "_service");
620                    }
621    
622                    return _service;
623            }
624    
625            /**
626             * @deprecated As of 6.2.0
627             */
628            @Deprecated
629            public void setService(UserNotificationEventLocalService service) {
630            }
631    
632            private static UserNotificationEventLocalService _service;
633    }